Upgraded to ipywidgets5-- help needed! Kernel dies...

1,465 views
Skip to first unread message

Tom Brander

unread,
Apr 21, 2016, 4:50:40 PM4/21/16
to Project Jupyter
and as expected it also updated Jupyter now on startup I get:

tom@tom-sam:~$ jupyter notebook
[W 15:41:49.839 NotebookApp] server_extensions is deprecated, use nbserver_extensions
[W 15:41:50.070 NotebookApp] Widgets are unavailable. Please install widgetsnbextension or ipywidgets 4.0
[W 15:41:50.077 NotebookApp] Error loading server extension nbextensions
    Traceback (most recent call last):
      File "/usr/local/lib/python2.7/dist-packages/notebook/notebookapp.py", line 1042, 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 "/home/tom/.local/share/jupyter/extensions/nbextensions.py", line 8, in <module>
        from notebook.nbextensions import _get_nbext_dir as get_nbext_dir
    ImportError: cannot import name _get_nbext_dir


Further when I start a notebook the kernel immediately dies;

[I 15:45:47.591 NotebookApp] Kernel started: feabded5-ea34-475c-9c5b-1210922c8c7e
Traceback (most recent call last):
  File "/usr/lib/python2.7/runpy.py", line 162, in _run_module_as_main
    "__main__", fname, loader, pkg_name)
  File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
    exec code in run_globals
  File "/usr/local/lib/python2.7/dist-packages/ipykernel/__main__.py", line 3, in <module>
    app.launch_new_instance()
  File "/usr/local/lib/python2.7/dist-packages/traitlets/config/application.py", line 591, in launch_instance
    app.initialize(argv)
  File "<decorator-gen-122>", line 2, in initialize
  File "/usr/local/lib/python2.7/dist-packages/traitlets/config/application.py", line 75, in catch_config_error
    return method(app, *args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/ipykernel/kernelapp.py", line 390, in initialize
    self.init_extensions()
  File "/usr/local/lib/python2.7/dist-packages/ipykernel/kernelapp.py", line 362, in init_extensions
    extension_man.load_extension('ipywidgets')
  File "/usr/local/lib/python2.7/dist-packages/IPython/core/extensions.py", line 84, in load_extension
    __import__(module_str)
  File "/usr/local/lib/python2.7/dist-packages/ipywidgets/__init__.py", line 22, in <module>
    from .widgets import *
  File "/usr/local/lib/python2.7/dist-packages/ipywidgets/widgets/__init__.py", line 1, in <module>
    from .widget import Widget, CallbackDispatcher, register, widget_serialization, handle_version_comm_opened
  File "/usr/local/lib/python2.7/dist-packages/ipywidgets/widgets/widget.py", line 117, in <module>
    class Widget(LoggingConfigurable):
  File "/usr/local/lib/python2.7/dist-packages/ipywidgets/widgets/widget.py", line 154, in Widget
    in which to find _model_name. If empty, look in the global registry.""").tag(sync=True)
AttributeError: 'Unicode' object has no attribute 'tag'
[W 15:45:49.862 NotebookApp] 404 GET /notebooks/Documents/InfluenceH/Propensity/biblio.bib (127.0.0.1): No such file or directory: Documents/InfluenceH/Propensity/biblio.bib
[W 15:45:49.863 NotebookApp] 404 GET /notebooks/Documents/InfluenceH/Propensity/biblio.bib (127.0.0.1) 1.50ms referer=http://localhost:8888/notebooks/Documents/InfluenceH/Propensity/Prob_testV2_analysis_TomB.ipynb
[I 15:45:50.591 NotebookApp] KernelRestarter: restarting kernel (1/5)


Jürgen Hasch

unread,
Apr 21, 2016, 5:13:50 PM4/21/16
to Project Jupyter
Looks like you have installed nbextensions from IPython-contrib. Some calls have changed in the notebook, so you need to update the extensions, too.
See https://github.com/ipython-contrib/IPython-notebook-extensions/pull/581

Tom Brander

unread,
Apr 21, 2016, 5:22:45 PM4/21/16
to Project Jupyter
Thanks for the quick response...
hmm I ran sudo pip install https://github.com/ipython-contrib/IPython-notebook-extensions/archive/master.zip --user --upgrade

Getting the same result? kernel dies>>> current TB:
[I 16:18:22.160 NotebookApp] The Jupyter Notebook is running at: http://localhost:8888/
[I 16:18:22.160 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
Created new window in existing browser session.
[W 16:18:49.056 NotebookApp] 404 GET /nbextensions/latex_envs/latex_envs.js?v=20160421161821 (127.0.0.1) 6.48ms referer=http://localhost:8888/notebooks/Documents/InfluenceH/Propensity/Prob_testV2_analysis_TomB.ipynb
[W 16:18:49.215 NotebookApp] 404 GET /nbextensions/hide_input.js?v=20160421161821 (127.0.0.1) 2.62ms referer=http://localhost:8888/notebooks/Documents/InfluenceH/Propensity/Prob_testV2_analysis_TomB.ipynb
[W 16:18:49.407 NotebookApp] 404 GET /nbextensions/codefolding.js?v=20160421161821 (127.0.0.1) 1.59ms referer=http://localhost:8888/notebooks/Documents/InfluenceH/Propensity/Prob_testV2_analysis_TomB.ipynb
[W 16:18:49.416 NotebookApp] 404 GET /nbextensions/widgets/notebook/js/extension.js?v=20160421161821 (127.0.0.1) 1.47ms referer=http://localhost:8888/notebooks/Documents/InfluenceH/Propensity/Prob_testV2_analysis_TomB.ipynb
[I 16:18:50.533 NotebookApp] Kernel started: 000a77e3-611f-4cf0-8faa-7f4fdc5a1ca8
[W 16:18:52.098 NotebookApp] 404 GET /notebooks/Documents/InfluenceH/Propensity/biblio.bib (127.0.0.1): No such file or directory: Documents/InfluenceH/Propensity/biblio.bib
[W 16:18:52.099 NotebookApp] 404 GET /notebooks/Documents/InfluenceH/Propensity/biblio.bib (127.0.0.1) 1.48ms referer=http://localhost:8888/notebooks/Documents/InfluenceH/Propensity/Prob_testV2_analysis_TomB.ipynb
[I 16:18:53.534 NotebookApp] KernelRestarter: restarting kernel (1/5)

Sylvain Corlay

unread,
Apr 21, 2016, 5:38:58 PM4/21/16
to jup...@googlegroups.com
Hi Tom,

I am sorry you are having this issue. The problem does not seem to come from ipywidgets, but rather that the notebook update broke some other extensions that you may have installed.

Sylvain

--
You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+u...@googlegroups.com.
To post to this group, send email to jup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/520e7397-669c-49ea-8243-85acc454d21a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Tom Brander

unread,
Apr 21, 2016, 5:54:33 PM4/21/16
to Project Jupyter
Any suggestions/ideas how to to clean/eliminate the offending extensions? Ie what files to search for and nuke? It is just beyond my depth..

Sylvain Corlay

unread,
Apr 21, 2016, 5:59:49 PM4/21/16
to jup...@googlegroups.com
The kernel dying problem is also very surprising. The tag function was added in a version of traitlets that is required by both ipywidgets and the current version of ipykernel.

Can you give me the versions of 

 - notebook
 - ipywidgets
 - traitlets
 - ipykernel

that you see when you type `jupyter troubleshoot`?

Sylvain

Tom Brander

unread,
Apr 21, 2016, 6:40:34 PM4/21/16
to jup...@googlegroups.com
sadly it just tells me that Jupiter troubleshoot is not a Jupyter command


You received this message because you are subscribed to a topic in the Google Groups "Project Jupyter" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/jupyter/7fd_-nBgiEE/unsubscribe.
To unsubscribe from this group and all its topics, send an email to jupyter+u...@googlegroups.com.

To post to this group, send email to jup...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.
--

Tom Brander
phn: 205-267-1089

Tom Brander

unread,
Apr 21, 2016, 6:48:22 PM4/21/16
to Project Jupyter
looks like I have this: (see belo version output:

Which would seem to indicate that I have multiple Jypyters,, and the 4.2 update is not the one being used,, How best to fix?


positional arguments:
  subcommand     the subcommand to launch

optional arguments:
  -h, --help     show this help message and exit
  --version      show the jupyter command's version and exit
  --config-dir   show Jupyter config dir
  --data-dir     show Jupyter data dir
  --runtime-dir  show Jupyter runtime dir
  --paths        show all Jupyter paths. Add --json for machine-readable
                 format.
  --json         output paths as machine-readable json

Available subcommands: console kernelspec migrate nbconvert nbextension
notebook qtconsole serverextension trust
tom@tom-sam:~$ jupyter --version
4.0.6


Tom Brander

unread,
Apr 21, 2016, 6:49:57 PM4/21/16
to Project Jupyter
Maybe I need to use pip3 to upgrade!

Tom Brander

unread,
Apr 21, 2016, 6:56:12 PM4/21/16
to Project Jupyter
That seems to have helped some will have to dive a bit more,, that confusion is rough on Jupyter...

Tom Brander

unread,
Apr 21, 2016, 10:39:45 PM4/21/16
to Project Jupyter
so, the core question is: how do you deal with Jupiter with two versions on Python and Pip? Along with the extensions?

Christopher Barker

unread,
Apr 24, 2016, 4:32:27 PM4/24/16
to Project Jupyter
OK, 

I seem to be having a similar problem -- can't get a python3 kernel to start up at all.

The killer here is that I"m intending to use this to teach a class in a couple days.

 the end of the stack trace is:

"""

  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/ipywidgets/widgets/widget.py", line 117, in <module>

    class Widget(LoggingConfigurable):

  File "/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages/ipywidgets/widgets/widget.py", line 154, in Widget

    in which to find _model_name. If empty, look in the global registry.""").tag(sync=True)

AttributeError: 'Unicode' object has no attribute 'tag'

"""


so something with the widgets and traitlets or????


This is an OS-X (10.9.5) system with python.org python 3.5 and jupyter installed with "pip install jupyter" -- it seemed to install all the dependencies from wheels, etc. I'm not entirely sure what older versions of what I had on here before -- certainly ipython, but I think only the bare command line version -- i.e. the notebook wasn't there. but maybe it was?? I do have a conda install on this machine, but I'm pretty sure it's entirely off the PATH.


jupyter troubleshoot returns:


$ jupyter troubleshoot

$PATH:

/Library/Frameworks/Python.framework/Versions/3.5/bin

/usr/bin

/bin

/usr/sbin

/sbin

/usr/local/bin

/opt/X11/bin

/usr/local/git/bin

/usr/texbin


sys.path:

/Library/Frameworks/Python.framework/Versions/3.5/bin

/Users/Chris/PythonStuff/pyugrid

/Users/Chris/PythonStuff/UWPCE/SystemDevelopment/Examples/documentation/Capitalize

/Library/Frameworks/Python.framework/Versions/3.5/lib/python35.zip

/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5

/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/plat-darwin

/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/lib-dynload

/Library/Frameworks/Python.framework/Versions/3.5/lib/python3.5/site-packages


sys.executable:

/Library/Frameworks/Python.framework/Versions/3.5/bin/python


sys.version:

3.5.0 (v3.5.0:374f501f4567, Sep 12 2015, 11:00:19) 

[GCC 4.2.1 (Apple Inc. build 5666) (dot 3)]


platform.platform():

Darwin-13.4.0-x86_64-i386-64bit


which -a jupyter:

/Library/Frameworks/Python.framework/Versions/3.5/bin/jupyter


pip list:

alabaster (0.7.7)

ApiDoc (1.2)

appnope (0.1.0)

Babel (2.3.3)

Capitalize (0.1.1, /Users/Chris/PythonStuff/UWPCE/SystemDevelopment/Examples/documentation/Capitalize)

decorator (4.0.2)

docutils (0.12)

entrypoints (0.2.1)

gnureadline (6.3.3)

hieroglyph (0.7.1)

imagesize (0.7.0)

ipykernel (4.3.1)

ipython (4.0.0)

ipython-genutils (0.1.0)

ipywidgets (5.0.0)

Jinja2 (2.8)

jsonschema (2.3.0)

jupyter (1.0.0)

jupyter-client (4.2.2)

jupyter-console (4.1.1)

jupyter-core (4.1.0)

libsass (0.11.1)

MarkupSafe (0.23)

mistune (0.7.2)

nbconvert (4.2.0)

nbformat (4.0.1)

nose2 (0.6.4)

notebook (4.2.0)

numpy (1.10.1)

path.py (8.1.1)

pep8 (1.6.2)

pexpect (3.3)

pickleshare (0.5)

pip (8.1.1)

ptyprocess (0.5.1)

py (1.4.30)

Pygments (2.1.3)

pymongo (3.2.2)

pyparsing (2.1.1)

pytest (2.8.2)

pytz (2016.3)

pyugrid (0.1.7, /Users/Chris/PythonStuff/pyugrid)

PyYAML (3.10)

pyzmq (15.2.0)

qtconsole (4.2.1)

requests (2.9.1)

scss (0.8.73)

setuptools (18.4)

simplegeneric (0.8.1)

six (1.10.0)

snowballstemmer (1.2.1)

Sphinx (1.4.1)

sphinx-rtd-theme (0.1.9)

terminado (0.6)

tornado (4.3)

traitlets (4.0.0)

widgetsnbextension (1.0.0)



This all looks reasonable to me, but I"m not sure what version conflicts, etc, may be going on.

Anyway, I"m dead int eh water here -- HELP!

would a complete clean out and re-install maybe help?

-CHB

Thomas Kluyver

unread,
Apr 24, 2016, 4:35:34 PM4/24/16
to Project Jupyter

On 24 April 2016 at 21:32, Christopher Barker <pyth...@gmail.com> wrote:
so something with the widgets and traitlets or????


Try upgrading traitlets to the latest version (4.2.1).

Christopher Barker

unread,
Apr 24, 2016, 4:38:06 PM4/24/16
to Project Jupyter
OK,

so on a hunch, I did :

pip install -U ipywidgets


and got the latest ipywidgets (and a reamarkable amount of other stuff), and the problem seems to be resolved. So maybe a bug in the version requirements for jupyter?


this is the new output of jupyter troubleshoot:


$ jupyter troubleshoot


<same as before>


pip list:

alabaster (0.7.7)

ApiDoc (1.2)

appnope (0.1.0)

Babel (2.3.3)

backports.shutil-get-terminal-size (1.0.0)

Capitalize (0.1.1, /Users/Chris/PythonStuff/UWPCE/SystemDevelopment/Examples/documentation/Capitalize)

decorator (4.0.9)

docutils (0.12)

entrypoints (0.2.1)

gnureadline (6.3.3)

hieroglyph (0.7.1)

imagesize (0.7.0)

ipykernel (4.3.1)

ipython (4.2.0)

ipython-genutils (0.1.0)

ipywidgets (5.0.0)

Jinja2 (2.8)

jsonschema (2.5.1)

jupyter (1.0.0)

jupyter-client (4.2.2)

jupyter-console (4.1.1)

jupyter-core (4.1.0)

libsass (0.11.1)

MarkupSafe (0.23)

mistune (0.7.2)

nbconvert (4.2.0)

nbformat (4.0.1)

nose2 (0.6.4)

notebook (4.2.0)

numpy (1.10.1)

path.py (8.1.1)

pep8 (1.6.2)

pexpect (4.0.1)

pickleshare (0.7.2)

pip (8.1.1)

ptyprocess (0.5.1)

py (1.4.30)

Pygments (2.1.3)

pymongo (3.2.2)

pyparsing (2.1.1)

pytest (2.8.2)

pytz (2016.3)

pyugrid (0.1.7, /Users/Chris/PythonStuff/pyugrid)

PyYAML (3.10)

pyzmq (15.2.0)

qtconsole (4.2.1)

requests (2.9.1)

scss (0.8.73)

setuptools (20.9.0)

simplegeneric (0.8.1)

six (1.10.0)

snowballstemmer (1.2.1)

Sphinx (1.4.1)

sphinx-rtd-theme (0.1.9)

terminado (0.6)

tornado (4.3)

traitlets (4.2.1)

widgetsnbextension (1.0.0)


We'll see if this is stable....

-CHB

Christopher Barker

unread,
Apr 24, 2016, 4:43:09 PM4/24/16
to Project Jupyter
indeed, I had traitlets 4.0.0, and now, after upgrading ipywidgets, it pulled in  a newer traitlets, Nd I now have 4.2.1.

and it seems to be working 

THANKS!


note that I didn't actually get a new version of ipywidgets, but it did upgrade some of its dependencies, including traitlets. 

so there's some kind of  bug in the dependencies somewhere in here....



Thomas Kluyver

unread,
Apr 24, 2016, 4:57:15 PM4/24/16
to Project Jupyter
On 24 April 2016 at 21:43, Christopher Barker <pyth...@gmail.com> wrote:
so there's some kind of  bug in the dependencies somewhere in here....

ipywidgets 5.0 appears to have a dependency on traitlets >=4.2, so I'm not sure how you ended up with the combination of packages you had before. But I believe pip's dependency resolution is not as well worked out as that of apt or conda.

Thomas

Sylvain Corlay

unread,
Apr 24, 2016, 5:17:53 PM4/24/16
to jup...@googlegroups.com
Yes, it is weird. However, it is not the first time such an issue is reported.

I wonder if the earlier versions of these libraries were installed with the `--user` option. If so, the version installed with --user will have priority over the one installed in sys-prefix, and are shared by all the installations of Python you may have.

Sylvain

--
You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+u...@googlegroups.com.
To post to this group, send email to jup...@googlegroups.com.

Christopher Barker

unread,
Apr 24, 2016, 6:34:49 PM4/24/16
to jup...@googlegroups.com
On Sun, Apr 24, 2016 at 2:17 PM, Sylvain Corlay <sylvain...@gmail.com> wrote:
Yes, it is weird. However, it is not the first time such an issue is reported.

I wonder if the earlier versions of these libraries were installed with the `--user` option.

not in my case, no. So that's not it.

I wonder if it has to do with the installing jupyter when I already had some of the dependencies installed, but not with --upgrade. perhaps if I had done:

pip install -U jupyter

it would have all worked.

at least if the upgrade gets propagated down all the way, which I think it does with pip.

-CHB







 
If so, the version installed with --user will have priority over the one installed in sys-prefix, and are shared by all the installations of Python you may have.

Sylvain

On Sun, Apr 24, 2016 at 4:56 PM, Thomas Kluyver <tak...@gmail.com> wrote:
On 24 April 2016 at 21:43, Christopher Barker <pyth...@gmail.com> wrote:
so there's some kind of  bug in the dependencies somewhere in here....

ipywidgets 5.0 appears to have a dependency on traitlets >=4.2, so I'm not sure how you ended up with the combination of packages you had before. But I believe pip's dependency resolution is not as well worked out as that of apt or conda.

Thomas

--
You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+u...@googlegroups.com.
To post to this group, send email to jup...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jupyter/CAOvn4qitK45SDSAF_a%3D_aRfw6q4KTNNfojobzWVXEic%3DvtycXA%40mail.gmail.com.

For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+u...@googlegroups.com.
To post to this group, send email to jup...@googlegroups.com.

For more options, visit https://groups.google.com/d/optout.



--
Christopher Barker, PhD

Python Language Consulting
  - Teaching
  - Scientific Software Development
  - Desktop GUI and Web Development
  - wxPython, numpy, scipy, Cython

Elsa Roussel

unread,
May 25, 2016, 10:44:42 AM5/25/16
to Project Jupyter
I have the same pbm but it seems the package configuration is alright :

no kernel seems to start, the error trac end by
File "/home/zetomate/OutilsDev/Panda_Jupyter/lib/python3.5/site-packages/ipywidgets/widgets/widget.py", line 154, in Widget
    in which to find _model_name. If empty, look in the global registry.""").tag(sync=True)
AttributeError: 'Unicode' object has no attribute 'tag'
[W 16:21:55.733 NotebookApp] KernelRestarter: restart failed
[W 16:21:55.733 NotebookApp] Kernel d63aea2a-6390-48cb-99a8-3423fed880b2 died, removing from map.
ERROR:root:kernel d63aea2a-6390-48cb-99a8-3423fed880b2 restarted failed!
[W 16:21:55.754 NotebookApp] Kernel deleted before session
"
referring to 
"
#-------------------------------------------------------------------------
    # Traits
    #-------------------------------------------------------------------------
    _model_module = Unicode('jupyter-js-widgets', help="""A requirejs module name
        in which to find _model_name. If empty, look in the global registry.""").tag(sync=True)
"

I've got an arch distribution and i'm starting jupyter notebook though a virtualenv (i though it could be link)

and jupyter troubleshoot give :

"
sys.version:
3.5.1 (default, Mar  3 2016, 09:29:07) 
[GCC 5.3.0]

platform.platform():
Linux-4.5.4-1-ARCH-x86_64-with-arch-Arch-Linux

which -a jupyter:
/home/zetomate/OutilsDev/Panda_Jupyter/bin/jupyter
/usr/bin/jupyter

pip list:
backports.shutil-get-terminal-size (1.0.0)
Cython (0.24)
decorator (4.0.9)
entrypoints (0.2.2)
ipdb (0.10.0)
ipykernel (4.3.1)
ipython (4.2.0)
ipython-genutils (0.1.0)
ipywidgets (5.1.5)
Jinja2 (2.8)
jsonschema (2.5.1)
jupyter (1.0.0)
jupyter-client (4.2.2)
jupyter-console (4.1.1)
jupyter-core (4.1.0)
MarkupSafe (0.23)
mistune (0.7.2)
nbconvert (4.2.0)
nbformat (4.0.1)
notebook (4.2.0)
numpy (1.11.0)
pandas (0.18.1)
pexpect (4.1.0)
pickleshare (0.7.2)
pip (8.1.2)
ptyprocess (0.5.1)
Pygments (2.1.3)
python-dateutil (2.5.3)
pytz (2016.4)
pyzmq (15.2.0)
qtconsole (4.2.1)
setuptools (21.2.1)
simplegeneric (0.8.1)
six (1.10.0)
terminado (0.6)
tornado (4.3)
traitlets (4.2.1)
wheel (0.24.0)
widgetsnbextension (1.2.3)
"

would you have any idea of the cause ? it's a probably a version conflict but widgetsnbextension, traitlets, pandas, jupyter-*, ipykernel or ipdb are up to date, so i'm not sure...

Thomas Kluyver

unread,
May 25, 2016, 11:18:08 AM5/25/16
to Project Jupyter
On 25 May 2016 at 15:44, Elsa Roussel <elsa.rou...@gmail.com> wrote:
AttributeError: 'Unicode' object has no attribute 'tag'

This error looks like it's finding an older version of traitlets. I see pip list says you have the latest, but maybe it's finding an older version somewhere.

MinRK

unread,
May 26, 2016, 5:50:00 AM5/26/16
to Project Jupyter

You can use

python -m site

to summarise some PATH information. You can also check where traitlets is coming from with:

python -c "import traitlets; print(traitlets)"

It is possible that there is an easy-install.pth file corrupting your import path. This is a common problem caused by buggy versions of setuptools.

-MinRK


--
You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+u...@googlegroups.com.
To post to this group, send email to jup...@googlegroups.com.

Shahreen Sumaria

unread,
Aug 24, 2016, 9:10:56 AM8/24/16
to Project Jupyter
I repeatedly get this error message "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" 
Eventhough the widgetsnbextension has been enabled.

Any suggestions?

Sylvain Corlay

unread,
Aug 24, 2016, 9:14:39 AM8/24/16
to Project Jupyter
Hi Shahreen, 

How did you install ipywidgets? Do they actually display regardless of the message?

Thanks,

Sylvain

Shahreen Sumaria

unread,
Aug 24, 2016, 10:21:20 AM8/24/16
to Project Jupyter
Hello Sylvain,
I used pip install ipywidgets. Surprisingly, I am able to import the library. When I run any widget methods in jupyter I get the error message to enable widgetnbextensions. And nothing to display.
Thanks heaps.
Shahreen.

Sylvain Corlay

unread,
Aug 24, 2016, 10:43:20 AM8/24/16
to jup...@googlegroups.com
OK, after you install ipywidgets you need to install the notebook extension with `jupyter nbextension enable --py --sys-prefix widgetsnbextension`.

--
You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+unsubscribe@googlegroups.com.

To post to this group, send email to jup...@googlegroups.com.

Shahreen Sumaria

unread,
Aug 24, 2016, 8:22:17 PM8/24/16
to Project Jupyter
I have already done that. Nbextension has been enabled, I checked. That is why I have a problem troubleshooting. When I run the same code in the pycharm console I get the following error: "TraitError: The 'kernel' trait of a Comm instance must be a Kernel, but a value of type 'NoneType' (i.e. None) was specified." This is after I import the ipywidgets library. 


On Thursday, 25 August 2016 00:43:20 UTC+10, Sylvain Corlay wrote:
OK, after you install ipywidgets you need to install the notebook extension with `jupyter nbextension enable --py --sys-prefix widgetsnbextension`.
On Wed, Aug 24, 2016 at 4:21 PM, Shahreen Sumaria <shahreen...@gmail.com> wrote:
Hello Sylvain,
I used pip install ipywidgets. Surprisingly, I am able to import the library. When I run any widget methods in jupyter I get the error message to enable widgetnbextensions. And nothing to display.
Thanks heaps.
Shahreen.

--
You received this message because you are subscribed to the Google Groups "Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jupyter+u...@googlegroups.com.

To post to this group, send email to jup...@googlegroups.com.

Shahreen Sumaria

unread,
Aug 24, 2016, 10:15:09 PM8/24/16
to Project Jupyter
Screen Shot 2016-08-25 at 12.08.59 pm.png
Screen Shot 2016-08-25 at 12.09.25 pm.png
Screen Shot 2016-08-25 at 12.12.16 pm.png

Aaron Polhamus

unread,
Sep 19, 2016, 1:39:02 PM9/19/16
to Project Jupyter
@Chrisopher Baker: `pip install -U ipywidgets` resolved this issue for me. I uninstall my pip version of ipython to run the condas executable by default and that's when I started seeing this error. the ipywidgets upgrade with pip resolved it, though this feels dodgy somehow, given that I'm trying to migrate to condas. anyhow, thanks for the nice fix! 
Reply all
Reply to author
Forward
0 new messages