@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! 

On Thursday, April 21, 2016 at 1:50:40 PM UTC-7, Tom Brander wrote:
>
> 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)
>
>
>

-- 
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+unsubscr...@googlegroups.com.
To post to this group, send email to jupyter@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jupyter/0766d508-ab52-4802-bc4b-8817ab0c54ba%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to