Use jupyter notebook from a machine in the local area.
A memo that made the following jupter available from another machine in order to check the operation in a different environment
The method is the same Even the one introduced by Anaconda. It is the same even if you introduce jupter with pip
Just put jupyter_notebook_config.py in your home .jupyter directory and write the settings. ~/.jupyter/jupyter_notebook_config.py
Let me make:
jupyter notebook --generate-config
You can write it manually
Password sha creation
$ ipython
In [1]: from IPython.lib import passwd
In [2]: passwd()
Enter password:
Verify password:
Out[2]: 'sha1:abc345fgyy...........................'
Make a note of this sha1: value as it will be used
jupyter_notebook_config.py
c = get_config()
c.IPKernelApp.pylab = 'inline'
c.NotebookApp.ip = '0.0.0.0'
c.NotebookApp.open_browser = False
c.NotebookApp.port = 8888
c.NotebookApp.password = u'sha1:abc345fgyy........................'
Description: c.NotebookApp.ip is a subnet mask specification 0.0.0.0 is all. In 255.255.255.0, it is 256 Network. Used for 192.168.x.x network etc.
c.NotebookApp.open_browser is whether to start browser when server is raised c.NotebookApp.port is the connection port. Feel free to use 8080 or 8880
After that, from the browser of another host server_address:8888 If you connect with, you will be asked for your password,
Recommended Posts