Use jupyter notebook by connecting from another host

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

Use jupyter notebook by connecting from another host
Use BigQuery from your local Jupyter Notebook
Use pip with Jupyter Notebook
Use Cython with Jupyter Notebook
How to use Jupyter Notebook
Use markdown with jupyter notebook (with shortcut)
Easy to use Jupyter notebook (Python3.5)
Use nb extensions with Anaconda's Jupyter notebook
Use apache Spark with jupyter notebook (IPython notebook)
Use Jupyter Lab and Jupyter Notebook with EC2
How to use jupyter notebook with ABCI
Jupyter Notebook Basics of how to use
Use vim keybindings on Docker-launched Jupyter Notebook
How to use Jupyter notebook [Super Basic]
Jupyter Notebook Settings-How to use (EC2 Amazon Linux 2)
Launch Jupyter notebook / termial by right-clicking [Win / Linux]
Jupyter Notebook memo
Introducing Jupyter Notebook
Powerful Jupyter Notebook
Jupyter notebook password
Jupyter Notebook memo
Run Tensorflow from Jupyter Notebook on Bash on Ubuntu on Windows
Open Jupyter Lab (or Jupyter Notebook) by specifying a directory
Import specific cells from other notebooks with Jupyter notebook
How to instantly launch Jupyter Notebook from the terminal