Upgrade problems (config migration?)

115 views
Skip to first unread message

Andrew Jaffe

unread,
Aug 12, 2015, 5:36:58 AM8/12/15
to Project Jupyter
Hi all, 

I was a very happy user of the latest IPython 3 on a mac, using the python.org framework build of Python 2.7. 

I was excited to see the Jupyter announcement, and so immediately did "pip install -U jupyter".

Console ipython works fine.

Unfortunately, I've run into problems with the notebook.

After upgrading, if I try to run the notebook interface, the "home" screen seems to work fine. However, if I actually try to open a notebook (existing or new), the actual notebook page hangs. I attach a screenshot, where I've also turned on the safari Develop>Show Error Console in case that's useful.




For what it's worth, I do have some ipython customisations -- if I get rid of ~/.ipython and ~/.jupyter and start over, it *does* work, but I'd rather not lose them (at least the ipython history database). It's mostly some small matplotlib stuff, but one in particular that I don't use often is a perhaps-old version of IHaskell which I can imagine might be brittle.

Also, if I try to just manually overwrite the config with `jupyter notebook --generate-config`, that fails as well, when I try to answer the overwrite prompt:

dyn1244-28:~% jupyter notebook --generate-config
[I 10:34:21.340 NotebookApp] The port 8888 is already in use, trying another random port.
Overwrite /Users/jaffe/.jupyter/jupyter_notebook_config.py with default config? [y/N]y
Traceback (most recent call last):
  File "/Library/Frameworks/Python.framework/Versions/2.7/bin/jupyter-notebook", line 6, in <module>
    main()
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/jupyter_core/application.py", line 261, in launch_instance
    return super(JupyterApp, cls).launch_instance(argv=argv, **kwargs)
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/traitlets/config/application.py", line 592, in launch_instance
    app.start()
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/notebook/notebookapp.py", line 1057, in start
    super(NotebookApp, self).start()
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/jupyter_core/application.py", line 254, in start
    self.write_default_config()
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/jupyter_core/application.py", line 135, in write_default_config
    answer = ask()
  File "/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/jupyter_core/application.py", line 131, in ask
    return input(prompt).lower() or 'n'
  File "<string>", line 1, in <module>
NameError: name 'y' is not defined


Help!

Andrew



Andrew Jaffe

unread,
Aug 12, 2015, 5:46:18 AM8/12/15
to Project Jupyter


On Wednesday, 12 August 2015 10:36:58 UTC+1, Andrew Jaffe wrote:
Hi all, 

I was a very happy user of the latest IPython 3 on a mac, using the python.org framework build of Python 2.7. 

I was excited to see the Jupyter announcement, and so immediately did "pip install -U jupyter".

Unfortunately, I've run into problems with the notebook.


For what it's worth, I do have some ipython customisations -- if I get rid of ~/.ipython and ~/.jupyter and start over, it *does* work, but I'd rather not lose them (at least the ipython history database). It's mostly some small matplotlib stuff, but one in particular that I don't use often is a perhaps-old version of IHaskell which I can imagine might be brittle.

For further information, here's what I've got in my .ipython and below. Note that I tried moving nbextensions and kernels aside (appending .tmp) and it doesn't help...

dyn1244-28:~/.ipython% ls -al

total 8

drwxr-xr-x   11 jaffe  501     374 12 Aug 09:53 ./

drwxr-xr-x@ 112 jaffe  jaffe  3808 12 Aug 10:02 ../

-rw-r--r--    1 jaffe  501     195 14 Feb  2014 README

drwxr-xr-x   66 jaffe  501    2244  8 Jul  2014 cython/

drwxrwxrwx    2 jaffe  501      68 23 Jan  2015 extensions/

drwxr-xr-x    3 jaffe  501     102 26 Mar 18:11 kernels.tmp/

drwxr-xr-x    4 jaffe  501     136  1 Dec  2014 nbextensions.tmp/

drwxr-xr-x   18 jaffe  501     612 12 Aug 09:36 profile_default/

drwxr-xr-x   14 jaffe  501     476 15 Jul  2014 profile_haskell/

drwxr-xr-x    7 jaffe  501     238 14 Feb  2014 profile_iptest/

drwxr-xr-x   11 jaffe  501     374 11 May  2014 profile_julia/

dyn1244-28:~/.ipython% ls -al profile_default/

total 11800

drwxr-xr-x   18 jaffe  501      612 12 Aug 09:36 ./

drwxr-xr-x   11 jaffe  501      374 12 Aug 09:53 ../

drwxr-xr-x    7 jaffe  501      238 18 Sep  2013 db/

-rw-r--r--    1 jaffe  501  5844992 12 Aug 09:36 history.sqlite

-rw-r--r--    1 jaffe  501    36958 14 Jan  2015 ipcluster_config.py

-rw-r--r--    1 jaffe  501    13932 14 Jan  2015 ipcontroller_config.py

-rw-r--r--    1 jaffe  501    15003 14 Jan  2015 ipengine_config.py

-rw-r--r--    1 jaffe  501     3797 14 Jan  2015 iplogger_config.py

-rw-r--r--@   1 jaffe  501    14126 28 Jul  2012 ipython_config.py

-rw-r--r--    1 jaffe  501    21283 19 Mar 00:13 ipython_console_config.py

-rw-r--r--@   1 jaffe  501    15063 30 Mar 18:15 ipython_kernel_config.py

-rw-r--r--    1 jaffe  501    31841 14 Jan  2015 ipython_nbconvert_config.py

-rw-r--r--@   1 jaffe  501    24712 12 Aug 10:01 ipython_notebook_config.py

drwxr-xr-x  212 jaffe  501     7208 23 Jan  2015 log/

drwx------    3 jaffe  501      102 25 Sep  2012 pid/

drwx------   76 jaffe  501     2584 12 Aug 09:25 security/

drwxr-xr-x    3 jaffe  501      102 19 Dec  2011 startup/

drwxr-xr-x    4 jaffe  501      136  7 Sep  2014 static/

dyn1244-28:~/.ipython% 

 



 

Andrew Jaffe

unread,
Aug 12, 2015, 6:07:06 AM8/12/15
to Project Jupyter
Hi all,

Sorry for the several self-responses... 

On Wednesday, 12 August 2015 10:46:18 UTC+1, Andrew Jaffe wrote:

On Wednesday, 12 August 2015 10:36:58 UTC+1, Andrew Jaffe wrote:
Hi all, 

Unfortunately, I've run into problems with the notebook.


For what it's worth, I do have some ipython customisations -- if I get rid of ~/.ipython and ~/.jupyter and start over, it *does* work, but I'd rather not lose them (at least the ipython history database). It's mostly some small matplotlib stuff, but one in particular that I don't use often is a perhaps-old version of IHaskell which I can imagine might be brittle.

For further information, here's what I've got in my .ipython and below. Note that I tried moving nbextensions and kernels aside (appending .tmp) and it doesn't help...

A (partial?) solution: The problem appears to  be ~/.ipython/profile_default/static which contained stuff from https://github.com/ipython-contrib/IPython-notebook-extensions/wiki/. When I get rid of that, things seem to work...

Andrew



 

Matthias Bussonnier

unread,
Aug 12, 2015, 11:59:32 AM8/12/15
to jup...@googlegroups.com
Hi Andrew,

From the screenshot you posted, the issue is in your custom.js, in a
macro-cell extension.
Do you want to open an issue on jupyter/notebook with the content of
your custom.js so that we can fix it ?

--
M
> --
> 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/e4a72eb7-366e-4258-ae8b-69f59d776f90%40googlegroups.com.
>
> For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages