python - ipython server can't launch: No module named notebook.notebookapp -
i've been trying setup ipython server following several tutorials (since none case). couple days ago, did manage point launching not able access via url. today it's not launching anymore , can't find specific error get:
traceback (most recent call last): file "/usr/local/bin/ipython", line 9, in <module> load_entry_point('ipython==4.0.0-dev', 'console_scripts', 'ipython')() file "/usr/local/lib/python2.7/dist-packages/ipython-4.0.0_dev-py2.7.egg/ipython/__init__.py", line 118, in start_ipython return launch_new_instance(argv=argv, **kwargs) file "/usr/local/lib/python2.7/dist-packages/traitlets-4.0.0-py2.7.egg/traitlets/config/application.py", line 591, in launch_instance app.initialize(argv) file "<string>", line 2, in initialize file "/usr/local/lib/python2.7/dist-packages/traitlets-4.0.0-py2.7.egg/traitlets/config/application.py", line 75, in catch_config_error return method(app, *args, **kwargs) file "/usr/local/lib/python2.7/dist-packages/ipython-4.0.0_dev-py2.7.egg/ipython/terminal/ipapp.py", line 302, in initialize super(terminalipythonapp, self).initialize(argv) file "<string>", line 2, in initialize file "/usr/local/lib/python2.7/dist-packages/traitlets-4.0.0-py2.7.egg/traitlets/config/application.py", line 75, in catch_config_error return method(app, *args, **kwargs) file "/usr/local/lib/python2.7/dist-packages/ipython-4.0.0_dev-py2.7.egg/ipython/core/application.py", line 386, in initialize self.parse_command_line(argv) file "/usr/local/lib/python2.7/dist-packages/ipython-4.0.0_dev-py2.7.egg/ipython/terminal/ipapp.py", line 297, in parse_command_line return super(terminalipythonapp, self).parse_command_line(argv) file "<string>", line 2, in parse_command_line file "/usr/local/lib/python2.7/dist-packages/traitlets-4.0.0-py2.7.egg/traitlets/config/application.py", line 75, in catch_config_error return method(app, *args, **kwargs) file "/usr/local/lib/python2.7/dist-packages/traitlets-4.0.0-py2.7.egg/traitlets/config/application.py", line 487, in parse_command_line return self.initialize_subcommand(subc, subargv) file "<string>", line 2, in initialize_subcommand file "/usr/local/lib/python2.7/dist-packages/traitlets-4.0.0-py2.7.egg/traitlets/config/application.py", line 75, in catch_config_error return method(app, *args, **kwargs) file "/usr/local/lib/python2.7/dist-packages/traitlets-4.0.0-py2.7.egg/traitlets/config/application.py", line 418, in initialize_subcommand subapp = import_item(subapp) file "build/bdist.linux-x86_64/egg/ipython_genutils/importstring.py", line 31, in import_item importerror: no module named notebook.notebookapp
so setup, have installed anaconda distrib of ipython, pyzmq & tornado libraries. have created profile nbserver , config file follows - ipython.config.py:
c = get_config() c.ipkernalapp.pylab = 'inline' c.notebookapp.certfile = u'/home/ludo/.ipython/profile_nbserver/mycert.pem' c.notebookapp.ip = '*' c.notebookapp.open_browser = false c.notebookapp.password = u'sha1:e6cb2aa9a[...]' c.notebookapp.port = 9999 c.notebookmanager.notebook_dir = u'/var/www/ipynb/' c.notebookapp.base_project_url = '/ipynb/' c.notebookapp.base_kernel_url = '/ipynb/' c.notebookapp.webapp_settings = {'static_url_prefix':'/ipynb/static/'}
i don't know clues anymore - , i'm lacking greater understanding of how works figure out. ultimate goal use answer this question on complete setup behind apache , connect colaboratory - seems should launch first.
many :)
this should fix issue:
pip install jupyter
Comments
Post a Comment