anaconda ipython notebook not starting in server setup -


i trying install anaconda on terminal.com. followed instructions laid out in site: https://gist.github.com/iamatypeofwalrus/5183133

the installation successful. able login python typing ipython @ terminal. when entered $ ipython notebook

i got following error message on terminal

[i 10:35:24.760 notebookapp] using existing profile dir: u'/root/.ipython/profile_default' [i 10:35:24.872 notebookapp] using mathjax cdn: https://cdn.mathjax.org/mathjax/latest /mathjax.js [i 10:35:24.891 notebookapp] port 8888 in use, trying random port. traceback (most recent call last):   file "/root/anaconda/bin/ipython", line 6, in <module>     sys.exit(start_ipython())   file "/opt/ipython/ipython/__init__.py", line 120, in start_ipython     return launch_new_instance(argv=argv, **kwargs)   file "/opt/ipython/ipython/config/application.py", line 548, in launch_instance     app.initialize(argv)   file "<string>", line 2, in initialize   file "/opt/ipython/ipython/config/application.py", line 74, in catch_config_error     return method(app, *args, **kwargs)   file "/opt/ipython/ipython/terminal/ipapp.py", line 322, in initialize     super(terminalipythonapp, self).initialize(argv)   file "<string>", line 2, in initialize   file "/opt/ipython/ipython/config/application.py", line 74, in catch_config_error     return method(app, *args, **kwargs)   file "/opt/ipython/ipython/core/application.py", line 378, in initialize     self.parse_command_line(argv)   file "/opt/ipython/ipython/terminal/ipapp.py", line 317, in parse_command_line     return super(terminalipythonapp, self).parse_command_line(argv)   file "<string>", line 2, in parse_command_line   file "/opt/ipython/ipython/config/application.py", line 74, in catch_config_error     return method(app, *args, **kwargs)   file "/opt/ipython/ipython/config/application.py", line 460, in parse_command_line     return self.initialize_subcommand(subc, subargv)   file "<string>", line 2, in initialize_subcommand   file "/opt/ipython/ipython/config/application.py", line 74, in catch_config_error     return method(app, *args, **kwargs)   file "/opt/ipython/ipython/config/application.py", line 398, in initialize_subcommand     self.subapp.initialize(argv)   file "<string>", line 2, in initialize   file "/opt/ipython/ipython/config/application.py", line 74, in catch_config_error     return method(app, *args, **kwargs)   file "/opt/ipython/ipython/html/notebookapp.py", line 829, in initialize     self.init_webapp()    file "/opt/ipython/ipython/html/notebookapp.py", line 718, in init_webapp     self.http_server.listen(port, self.ip)   file "/root/.local/lib/python2.7/site-packages/tornado/tcpserver.py", line 125, in listen     sockets = bind_sockets(port, address=address)   file "/root/.local/lib/python2.7/site-packages/tornado/netutil.py", line 137, in bind_soc kets     sock.bind(sockaddr)   file "/root/anaconda/lib/python2.7/socket.py", line 224, in meth     return getattr(self._sock,name)(*args) error: [errno 99] cannot assign requested address  if suspect ipython bug, please report at:     https://github.com/ipython/ipython/issues or send email mailing list @ ipython-dev@scipy.org  can print more detailed traceback right "%tb", or use "%debug" interactively debug it.  extra-detailed tracebacks bug-reporting purposes can enabled via:     c.application.verbose_crash=true   

can please suggest doing wrong? port 8888 open(i gave access open port.)

also, check if ipython works server setup, created instance (a new snapshot altogether) doing given in github link given @ first line, entered following: $ ipython notebook --profile=nbserver

the server started. had error when tried open on browser. see on terminal

2014-08-18 10:50:54.605 [notebookapp] using existing profile dir: u'/root/.ipython/profile_nbserver' 2014-08-18 10:50:54.612 [notebookapp] using mathjax cdn: https://c328740.ssl.cf1.rackcdn.com/mathjax/latest/mathjax.js 2014-08-18 10:50:54.631 [notebookapp] serving notebooks local directory: /root/.ipython/profile_nbserver 2014-08-18 10:50:54.631 [notebookapp] 0 active kernels 2014-08-18 10:50:54.631 [notebookapp] ipython notebook running at: https://[all ip addresses on system]:1111/ 2014-08-18 10:50:54.631 [notebookapp] use control-c stop server , shut down kernels (twice skip confirmation). warning:tornado.general:ssl error on 7 ('10.0.218.170', 55369): [errno 1] _ssl.c:510: error:1407609c:ssl routines:ssl23_get_client_hello:http request 

and see on browser @ local system when try open it:

502 bad gateway  openresty/1.5.11.1 

thanks, rouse

i had similar problem getting ipython / jupyter work ubuntu server, using anaconda distribution. getting
error: [errno 99] cannot assign requested address

i able fix variation on trtm's answer. solution indicate ip address of server in config file. location of config file depends on version of ipython or jupyter notebook using.

the name of file ipython_notebook_config.py or jupyter_notebook_config.py. file may not present. finding or creating depends on version, edit same.

for ipython / jupyter version < 4.0
create file with:

ipython profile create     

file location be: ~/.ipython/profile_default/ipython_notebook_config.py

for jupyter version >= 4.0
create config file with:

jupyter notebook --generate-config     

file location be: ~/.jupyter/jupyter_notebook_config.py

to edit file, add line. substitute whatever ip address server set listen to.

c.notebookapp.ip = '192.168.1.10'    

i able open notebook directing browser http://192.168.1.10:8888


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -