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:
- anaconda @ version 4.
- jupyter comes pre-installed new anaconda
- jupyter defaults port "8888"
- you should mention how modifications note configuration. ended going nano it.
- you can't use "sudo" conda.
if want install ipython notebook scratch on vps, , access via ssh wrote updated tutorial here:
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
Post a Comment