Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

ipython notebook listening on all IP addresses?

When I launch IPython/Jupyter Notebook, I get the following warnings:

WARNING: The notebook server is listening on all IP addresses and not using encryption. This is not recommended.
WARNING: The notebook server is listening on all IP addresses and not using authentication. This is highly insecure and not recommended.

What does "listening on all IP addresses" mean? And how do I fix this?

like image 343
user1956609 Avatar asked Feb 11 '16 17:02

user1956609


People also ask

What does %% capture do?

Capturing Output With %%capture IPython has a cell magic, %%capture , which captures the stdout/stderr of a cell. With this magic you can discard these streams or store them in a variable. By default, %%capture discards these streams. This is a simple way to suppress unwanted output.

What is the difference between Jupyter Notebook and IPython notebook?

The IPython Notebook is now known as the Jupyter Notebook. It is an interactive computational environment, in which you can combine code execution, rich text, mathematics, plots and rich media. For more details on the Jupyter Notebook, please see the Jupyter website.

How do I keep the Jupyter Notebook running on a server?

This can be done by typing jupyter notebook in the terminal, which will open a browser. Then, navigate to the respective jupyter notebook file in the browser and open it. Click Cell > Run All on the toolbar. All done!


1 Answers

It means anyone knows your IP and the port you used in jupyter would be able to visit your jupyter notebook. For example, if you are connecting to the Internet behind a router, other computers could visit your notebook via: http://[your_ip]:8888 to visit your notebook. 8888 is the default port of jupyter.

If you want to stop bind on all your IPs, you can specify the IP you want to bind in console:

jupyter notebook --ip=x.x.x.x

x.x.x.x is the IP you want to bind.

like image 112
kingbase Avatar answered Oct 17 '22 13:10

kingbase