ipython notebook doesn't work in ligo-py27, ligo-py36
For me, at least.
- I installed conda on my macbookpro 10.13 (High Sierra) (actually, two of them - my home one from 2013, slowly dying, and my office one from 2017, quickly dying).
- After activating either of ligo-py27 or ligo-py36 , I type "ipython notebook" and get:
ImportError: No module named notebook.notebookapp - I type "jupyter notebook" and it does work (opens a window on my browser), but I am not in the ligo-py* environment, and can't import anything interesting.
- It clearly is invoking my pre-conda python installation(s).
- If I then do "conda install ipython" and "conda install jupyter", it all works as it should.
- Let me know if you need details such as the full error dump... well, here it is:
(ligo-py36) gwave-88:PE_sample_release_for_O2Catalogue ajw$ ipython notebook
[TerminalIPythonApp] WARNING | Subcommand `ipython notebook` is deprecated and will be removed in future versions.
[TerminalIPythonApp] WARNING | You likely want to use `jupyter notebook` in the future
Traceback (most recent call last):
File "/Users/ajw/miniconda3/envs/ligo-py36/bin/ipython", line 11, in <module>
sys.exit(start_ipython())
File "/Users/ajw/miniconda3/envs/ligo-py36/lib/python3.6/site-packages/IPython/__init__.py", line 125, in start_ipython
return launch_new_instance(argv=argv, **kwargs)
File "/Users/ajw/miniconda3/envs/ligo-py36/lib/python3.6/site-packages/traitlets/config/application.py", line 657, in launch_instance
app.initialize(argv)
File "</Users/ajw/miniconda3/envs/ligo-py36/lib/python3.6/site-packages/decorator.py:decorator-gen-112>", line 2, in initialize
File "/Users/ajw/miniconda3/envs/ligo-py36/lib/python3.6/site-packages/traitlets/config/application.py", line 87, in catch_config_error
return method(app, *args, **kwargs)
File "/Users/ajw/miniconda3/envs/ligo-py36/lib/python3.6/site-packages/IPython/terminal/ipapp.py", line 308, in initialize
super(TerminalIPythonApp, self).initialize(argv)
File "</Users/ajw/miniconda3/envs/ligo-py36/lib/python3.6/site-packages/decorator.py:decorator-gen-7>", line 2, in initialize
File "/Users/ajw/miniconda3/envs/ligo-py36/lib/python3.6/site-packages/traitlets/config/application.py", line 87, in catch_config_error
return method(app, *args, **kwargs)
File "/Users/ajw/miniconda3/envs/ligo-py36/lib/python3.6/site-packages/IPython/core/application.py", line 450, in initialize
self.parse_command_line(argv)
File "/Users/ajw/miniconda3/envs/ligo-py36/lib/python3.6/site-packages/IPython/terminal/ipapp.py", line 303, in parse_command_line
return super(TerminalIPythonApp, self).parse_command_line(argv)
File "</Users/ajw/miniconda3/envs/ligo-py36/lib/python3.6/site-packages/decorator.py:decorator-gen-4>", line 2, in parse_command_line
File "/Users/ajw/miniconda3/envs/ligo-py36/lib/python3.6/site-packages/traitlets/config/application.py", line 87, in catch_config_error
return method(app, *args, **kwargs)
File "/Users/ajw/miniconda3/envs/ligo-py36/lib/python3.6/site-packages/traitlets/config/application.py", line 514, in parse_command_line
return self.initialize_subcommand(subc, subargv)
File "/Users/ajw/miniconda3/envs/ligo-py36/lib/python3.6/site-packages/IPython/core/application.py", line 243, in initialize_subcommand
return super(BaseIPythonApplication, self).initialize_subcommand(subc, argv)
File "</Users/ajw/miniconda3/envs/ligo-py36/lib/python3.6/site-packages/decorator.py:decorator-gen-3>", line 2, in initialize_subcommand
File "/Users/ajw/miniconda3/envs/ligo-py36/lib/python3.6/site-packages/traitlets/config/application.py", line 87, in catch_config_error
return method(app, *args, **kwargs)
File "/Users/ajw/miniconda3/envs/ligo-py36/lib/python3.6/site-packages/traitlets/config/application.py", line 445, in initialize_subcommand
subapp = import_item(subapp)
File "/Users/ajw/miniconda3/envs/ligo-py36/lib/python3.6/site-packages/ipython_genutils/importstring.py", line 31, in import_item
module = __import__(package, fromlist=[obj])
ModuleNotFoundError: No module named 'notebook'
Edited by Duncan Macleod