python - ipython: access notebook server remotely via a web browser -


i want access notebook server remotely via web browser, following shows how did setup notebook server:

1.generate config file

$ jupyter-notebook --generate-config $ cd ~/.jupyter 

2.use following command create ssl certificate(linux , windows).

req -x509 -nodes -days 365 -newkey rsa:1024 -keyout mycert.pem -out mycert.pem 

3.edit profile's configuration file, jupyter_notebook_config.py password has been generated..

c = get_config()  # must give path certificate file. c.notebookapp.certfile = u'/home/azureuser/.jupyter/mycert.pem'  # create own password indicated above c.notebookapp.password = u'sha1:b86e933199ad:a02e9592e5 etc... '  # network , browser details. use fixed port (9999) matches # our azure setup, we've allowed :wqtraffic on port c.notebookapp.ip = '*' c.notebookapp.port = 9999 c.notebookapp.open_browser = false 

4.start $ jupyter-notebook server

you should able access jupyter notebook @ address https://[public-ip-address]:9999.

start notebook:

$  ~ jupyter-notebook  [i 16:46:58.627 notebookapp] serving notebooks local directory: /home/user [i 16:46:58.627 notebookapp] 0 active kernels  [i 16:46:58.627 notebookapp] jupyter notebook running at: https://server_ip:9999/ [i 16:46:58.627 notebookapp] use control-c stop server , shut down kernels (twice skip confirmation). 

but, when open browser(at home, notebook server in lab) @ https://my_server_ip:9999, page can not open. , chrome-browser returns:

err_address_unreachable 

what should do?

those instructions followed bit dated specifically:

  1. anaconda @ version 4.
  2. jupyter comes pre-installed new anaconda
  3. jupyter defaults port "8888"
  4. you should mention how modifications note configuration. ended going nano it.
  5. you can't use "sudo" conda.

if want install ipython notebook scratch on vps, , access via ssh wrote updated tutorial here:

https://www.digitalocean.com/community/tutorials/how-to-set-up-a-jupyter-notebook-to-run-ipython-on-ubuntu-16-04

after installing , running ipython notebook using command line on server, can connect notebook using ssh tunnelling putty (on windows) or ssh -l command on unix-like systems (ie mac , linux)


Comments

Popular posts from this blog

c# - How Configure Devart dotConnect for SQLite Code First? -

java - Copying object fields -

c++ - Clear the memory after returning a vector in a function -