Giter VIP home page Giter VIP logo

Widget Javascript not detected. It may not be installed properly. Did you enable the widgetsnbextension? If not, then run "jupyter nbextension enable --py --sys-prefix widgetsnbextension" about ipython-file-upload HOT 12 CLOSED

peteut avatar peteut commented on July 19, 2024
Widget Javascript not detected. It may not be installed properly. Did you enable the widgetsnbextension? If not, then run "jupyter nbextension enable --py --sys-prefix widgetsnbextension"

from ipython-file-upload.

Comments (12)

peteut avatar peteut commented on July 19, 2024 1

@denfromufa Did you install the widget prior usage w/ import fileupload; fileupload.nbinstall()?
I'm relying on install_nbextension to install it. The relevant code is here.

from ipython-file-upload.

den-run-ai avatar den-run-ai commented on July 19, 2024

once I reloaded notebook and jupyter localhost server the _upload() does not generate anything. I'm using Yandex.Browser (enhanced Chromium).

here is the output of !pip install -U fileupload which shows that all requirements were satisfied:

Requirement already up-to-date: fileupload in c:\python\python27_32b\lib\site-packages
Requirement already up-to-date: ipywidgets>=4.0 in c:\python\python27_32b\lib\site-packages (from fileupload)
Requirement already up-to-date: notebook>=4.0 in c:\python\python27_32b\lib\site-packages (from fileupload)
Requirement already up-to-date: traitlets>=4.0 in c:\python\python27_32b\lib\site-packages (from fileupload)
Requirement already up-to-date: ipython>=4.0.0 in c:\python\python27_32b\lib\site-packages (from ipywidgets>=4.0->fileupload)
Requirement already up-to-date: ipykernel>=4.2.2 in c:\python\python27_32b\lib\site-packages (from ipywidgets>=4.0->fileupload)
Requirement already up-to-date: widgetsnbextension>=1.2.2 in c:\python\python27_32b\lib\site-packages (from ipywidgets>=4.0->fileupload)
Requirement already up-to-date: tornado>=4 in c:\python\python27_32b\lib\site-packages (from notebook>=4.0->fileupload)
Requirement already up-to-date: jupyter-client in c:\python\python27_32b\lib\site-packages (from notebook>=4.0->fileupload)
Requirement already up-to-date: nbformat in c:\python\python27_32b\lib\site-packages (from notebook>=4.0->fileupload)
Requirement already up-to-date: jupyter-core in c:\python\python27_32b\lib\site-packages (from notebook>=4.0->fileupload)
Requirement already up-to-date: nbconvert in c:\python\python27_32b\lib\site-packages (from notebook>=4.0->fileupload)
Requirement already up-to-date: ipython-genutils in c:\python\python27_32b\lib\site-packages (from notebook>=4.0->fileupload)
Requirement already up-to-date: jinja2 in c:\python\python27_32b\lib\site-packages (from notebook>=4.0->fileupload)
Requirement already up-to-date: pickleshare in c:\python\python27_32b\lib\site-packages (from ipython>=4.0.0->ipywidgets>=4.0->fileupload)
Requirement already up-to-date: simplegeneric>0.8 in c:\python\python27_32b\lib\site-packages (from ipython>=4.0.0->ipywidgets>=4.0->fileupload)
Requirement already up-to-date: backports.shutil-get-terminal-size in c:\python\python27_32b\lib\site-packages (from ipython>=4.0.0->ipywidgets>=4.0->fileupload)
Requirement already up-to-date: decorator in c:\python\python27_32b\lib\site-packages (from ipython>=4.0.0->ipywidgets>=4.0->fileupload)
Requirement already up-to-date: setuptools>=18.5 in c:\python\python27_32b\lib\site-packages\setuptools-21.0.0-py2.7.egg (from ipython>=4.0.0->ipywidgets>=4.0->fileupload)
Requirement already up-to-date: pygments in c:\python\python27_32b\lib\site-packages (from nbconvert->notebook>=4.0->fileupload)
Requirement already up-to-date: mistune!=0.6 in c:\python\python27_32b\lib\site-packages (from nbconvert->notebook>=4.0->fileupload)
Requirement already up-to-date: entrypoints in c:\python\python27_32b\lib\site-packages (from nbconvert->notebook>=4.0->fileupload)
Requirement already up-to-date: MarkupSafe in c:\python\python27_32b\lib\site-packages (from jinja2->notebook>=4.0->fileupload)
Requirement already up-to-date: pathlib2 in c:\python\python27_32b\lib\site-packages (from pickleshare->ipython>=4.0.0->ipywidgets>=4.0->fileupload)
Requirement already up-to-date: configparser in c:\python\python27_32b\lib\site-packages (from entrypoints->nbconvert->notebook>=4.0->fileupload)
Requirement already up-to-date: six in c:\python\python27_32b\lib\site-packages (from pathlib2->pickleshare->ipython>=4.0.0->ipywidgets>=4.0->fileupload)

from ipython-file-upload.

den-run-ai avatar den-run-ai commented on July 19, 2024

@peteut which widget you mean?

from ipython-file-upload.

peteut avatar peteut commented on July 19, 2024

@denfromufa fileupload is a simple python package, the example shows a simple use case. fileupload.nbinstall() needs to be invoked once to get the JS file installed. Is there a better way to get the JS file installed?

from ipython-file-upload.

den-run-ai avatar den-run-ai commented on July 19, 2024

@peteut I followed your installation steps including fileupload.nbinstall() but still got the issues listed above.

https://github.com/peteut/ipython-file-upload/blob/master/README.rst

from ipython-file-upload.

peteut avatar peteut commented on July 19, 2024

@denfromufa I tested it on Debian GNU/Linux for now, what platform are you on?

from ipython-file-upload.

den-run-ai avatar den-run-ai commented on July 19, 2024

Python 2.7.11 |Anaconda 4.0.0 (32-bit)| (default, Mar 4 2016,
15:18:41) [MSC v.1500 32 bit (Intel)]
Type "copyright", "credits" or "license" for more information.

IPython 4.2.0 -- An enhanced Interactive Python.

On Tue, May 3, 2016 at 5:04 PM, Alain Péteut [email protected]
wrote:

@denfromufa https://github.com/denfromufa I tested it on Debian
GNU/Linux for now, what platform are you on?


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#7 (comment)

from ipython-file-upload.

den-run-ai avatar den-run-ai commented on July 19, 2024

this widget is working great for me, like it did ~ year ago:

https://github.com/ipython/ipywidgets/blob/master/docs/source/examples/File%20Upload%20Widget.ipynb

I think your package fileupload is over-complicating something!

On Tue, May 3, 2016 at 5:06 PM, Denis Akhiyarov [email protected]
wrote:

Python 2.7.11 |Anaconda 4.0.0 (32-bit)| (default, Mar 4 2016, 15:18:41) [MSC v.1500 32 bit (Intel)]
Type "copyright", "credits" or "license" for more information.

IPython 4.2.0 -- An enhanced Interactive Python.

On Tue, May 3, 2016 at 5:04 PM, Alain Péteut [email protected]
wrote:

@denfromufa https://github.com/denfromufa I tested it on Debian
GNU/Linux for now, what platform are you on?


You are receiving this because you were mentioned.
Reply to this email directly or view it on GitHub
#7 (comment)

from ipython-file-upload.

jcb91 avatar jcb91 commented on July 19, 2024

@peteut you might want to add support for the new (jupyter 4.2) method for javascript installation as well as retaining a more universal version (see, e.g. this page on readthedocs)

It seems fairly clear that the issue is whether the javascript is being copied to the correct directory for the server to find it.

@denfromufa do you get any output from fileupload.nbinstall()? Are there any notebook server logs (particularly when running notebook with the --debug flag)?

from ipython-file-upload.

peteut avatar peteut commented on July 19, 2024

@jcb91 Thanks for the hint, this is the way to go.

from ipython-file-upload.

peteut avatar peteut commented on July 19, 2024

master is now updated to use ipywidgets>=5.1.

from ipython-file-upload.

den-run-ai avatar den-run-ai commented on July 19, 2024

@jcb91 @peteut latest fixes worked great! also had to use "sudo" system python.

#13

from ipython-file-upload.

Related Issues (19)

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.