Comments (8)
Made some updates to README. Please make sure that you are installing and running on a Python3 environment.
I just went through the same exercise of having a Python 2.7 env where I was running Jupyter and pip installing packages and it was failing... The actual failure could be seen in loading the extension on IPython 3.2.1 running using python 2.7.
[W 15:35:57.201 NotebookApp] Error loading server extension urth.widgets.urth_import
Traceback (most recent call last):
File "/usr/local/lib/python2.7/dist-packages/IPython/html/notebookapp.py", line 998, in init_server_extensions
mod = importlib.import_module(modulename)
File "/usr/lib/python2.7/importlib/__init__.py", line 37, in import_module
__import__(name)
File "/usr/local/lib/python2.7/dist-packages/urth/widgets/urth_import.py", line 14, in <module>
from contextlib import redirect_stdout
ImportError: cannot import name redirect_stdout
One more thing... make sure that you are using Chrome. Until issue #21 is fixed, its the only browser that will work. I mention since your error is loading web components-lite.min.js and that tells me that you are not using Chrome.
from declarativewidgets.
So I switched to Chrome and IPython 3.2 (running on python 3.5) and got a little further :) Now, I get the following errors:
GET http://localhost:8888/urth_components/urth-core-bind/urth-core-bind.html 404 (Not Found)
GET http://localhost:8888/urth_components/urth-core-channels/urth-core-channels.html 404 (Not Found)
GET http://localhost:8888/urth_components/urth-core-function/urth-core-function.html 404 (Not Found)
GET http://localhost:8888/urth_components/urth-core-dataframe/urth-core-dataframe.html 404 (Not Found)
I can see all those files in ~/.ipython/nbextensions/urth_widgets/urth_components/
. I have tried to symlink .ipython/nbextensions/urth_widgets/urth_components/
to .ipython/nbextensions/urth_components/
but that did not help.
Did you hit that problem too?
from declarativewidgets.
Ah! Don't do any symlink. The extension adds a route for '/urth_components' and it serves elements.
The extended link element on the notebook will trigger installation using bower.
You are probably missing 'bower'. Try that and I'll revise the README.
Gino B.
On Oct 14, 2015, at 11:44 AM, Thibaud [email protected] wrote:
So I switched to Chrome and IPython 3.2 (running on python 3.5) and got a little further :) I get the following errors:
GET http://localhost:8888/urth_components/urth-core-bind/urth-core-bind.html 404 (Not Found)
GET http://localhost:8888/urth_components/urth-core-channels/urth-core-channels.html 404 (Not Found)
GET http://localhost:8888/urth_components/urth-core-function/urth-core-function.html 404 (Not Found)
GET http://localhost:8888/urth_components/urth-core-dataframe/urth-core-dataframe.html 404 (Not Found)
I can see all those files in ~/.ipython/nbextensions/urth_widgets/urth_components/. I have tried to symlink .ipython/nbextensions/urth_widgets/urth_components/ to .ipython/nbextensions/urth_components/ but that did not help.Did you hit that problem too?
β
Reply to this email directly or view it on GitHub.
from declarativewidgets.
I have installed bower. Bower does appear to be initialized properly, but the urth_components still fail to load unfortunately...
Bower root is: /urth_components
main.js?v=20151016101012:10 Custom JS loaded
init.js?v=20151016101012:52 GET http://localhost:8888/urth_components/urth-core-bind/urth-core-bind.html 404 (Not Found)
init.js?v=20151016101012:52 GET http://localhost:8888/urth_components/urth-core-channels/urth-core-channels.html 404 (Not Found)
init.js?v=20151016101012:52 GET http://localhost:8888/urth_components/urth-core-import/urth-core-import.html 404 (Not Found)
One more thing: So far, I have been installing the widget extension using pip: pip install urth-widgets-nbexts-0.1.dev0.tar.gz
. However, today I tried python3 setup.py install
and I got an install time error. I am not sure whether the two problems are related.
...
running install_scripts
Installing notebook extension
removing /Users/tbh/.ipython/nbextensions/urth_widgets
copying urth_widgets -> /Users/tbh/.ipython/nbextensions/urth_widgets
error: [Errno 2] No such file or directory: 'urth_widgets'
Thanks for helping me. I feel like we are close :)
from declarativewidgets.
Try installing with pip3 both Jupyter and the extension. Please attach your server logs. Hoping the is something there that can help.
Gino B.
On Oct 16, 2015, at 12:17 PM, Thibaud [email protected] wrote:
I have installed bower. Bower does appear to be initialized properly, but the urth_components still fail to load unfortunately...
Bower root is: /urth_components
main.js?v=20151016101012:10 Custom JS loaded
init.js?v=20151016101012:52 GET http://localhost:8888/urth_components/urth-core-bind/urth-core-bind.html 404 (Not Found)
init.js?v=20151016101012:52 GET http://localhost:8888/urth_components/urth-core-channels/urth-core-channels.html 404 (Not Found)
init.js?v=20151016101012:52 GET http://localhost:8888/urth_components/urth-core-import/urth-core-import.html 404 (Not Found)
One more thing: So far, I have been installing the widget extension using pip: pip install urth-widgets-nbexts-0.1.dev0.tar.gz. However, today I tried python3 setup.py install and I got an install time error. I am not sure whether the two problems are related....
running install_scripts
Installing notebook extension
removing /Users/tbh/.ipython/nbextensions/urth_widgets
copying urth_widgets -> /Users/tbh/.ipython/nbextensions/urth_widgets
error: [Errno 2] No such file or directory: 'urth_widgets'
Thanks for helping me. I feel like we are close :)β
Reply to this email directly or view it on GitHub.
from declarativewidgets.
@thibaudh Any update here?
from declarativewidgets.
Victory! After reinstalling ipython using pip3 install "ipython[notebook]==3.2.2", then installing the dashboard and the declarative widgets with
pip3 install dist/...`, it finally works. Thanks for your help!
So there seems to be a subtle difference between installing extensions with pip and using ./setup.py install
. The setup.py
way has never worked for me.
One more question: how high on your priority lists are:
- Crossbrowser support (Firefox and Safary)?
- Python 2.7 support?
These might be blockers for us.
Thanks,
Thibaud
from declarativewidgets.
Great!!!
Safari and Firefox should be working on master.
About Python 2.7... We moved to Python 3 because, AFAIK, it is the Python platform of Jupyter going forward. If you want to open an issue on Python 2.7, go ahead and we'll move the conversation there.
Gino B.
On Oct 19, 2015, at 11:36 AM, Thibaud [email protected] wrote:
Victory! After reinstalling ipython using pip3 install "ipython[notebook]==3.2.2", then installing the dashboard and the declarative widgets withpip3 install dist/...`, it finally works. Thanks for your help!
So there seems to be a subtle difference between installing extensions with pip and using ./setup.py install. The setup.py way has never worked for me.
One more question: how high on your priority lists are:
Crossbrowser support (Firefox and Safary)?
Python 2.7 support? These might be blocker for us.
Thanks,
Thibaudβ
Reply to this email directly or view it on GitHub.
from declarativewidgets.
Related Issues (20)
- declarativewidgets not working HOT 5
- Documentation not found HOT 1
- Need to modify scala build to install toree from apache's dist server and not pypi HOT 3
- R declarative widgets donβt actually depend on SparkR HOT 4
- Move to https://github.com/jupyter-widgets? HOT 7
- Error enabling on OSX with matplotlib 2.0 installed
- Associated repo website is 404 HOT 2
- Changing DataFrame Limit HOT 3
- widgets failing to load after notebook closed and reopened HOT 1
- dom-bind-behavior bug against Polymer 1.9
- urth-import fails with POLYMER package ECONFLICT
- urth-viz-table, selectionIndex property doesn't work
- Install declarativewidgets without "pip install"
- Link to latest docs is broken HOT 2
- Edit license and rename file to LICENSE
- Date Picker
- Broken links
- Is declarative widgets maintained? HOT 13
- Some extension like Explorer visualization HOT 1
- Why was it retired? Are there any follow-up projects like this? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from declarativewidgets.