Giter Club home page Giter Club logo

Comments (8)

lbustelo avatar lbustelo commented on July 4, 2024

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.

thibaudh avatar thibaudh commented on July 4, 2024

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.

lbustelo avatar lbustelo commented on July 4, 2024

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.

thibaudh avatar thibaudh commented on July 4, 2024

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.

lbustelo avatar lbustelo commented on July 4, 2024

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.

lbustelo avatar lbustelo commented on July 4, 2024

@thibaudh Any update here?

from declarativewidgets.

thibaudh avatar thibaudh commented on July 4, 2024

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 blockers for us.

Thanks,
Thibaud

from declarativewidgets.

lbustelo avatar lbustelo commented on July 4, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.