Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Exposing python jupyter on LAN

I've installed jupyter on local network LAN but im unable to access http://<IP>:8888 from another macine on LAN. I've opened ports 8888 and port range 49152 to 65535 with iptables (this range is specified at http://jupyter-notebook.readthedocs.io/en/latest/public_server.html)

This guide http://jupyter-notebook.readthedocs.io/en/latest/public_server.html describes exposing a notebook publicly but I'm just attempting to share over LAN.

Have I missed a step ?

like image 456
blue-sky Avatar asked Aug 25 '16 22:08

blue-sky


People also ask

How do I access my jupyter notebook over the network?

Enter the password; copy the output and assign the output to the attribute c. NotebookApp. password . Now run the server and open the URL http://IP:8888 from another PC or mobile to browse notebooks after entering the correct password.

Can you run jupyter notebook locally?

To launch a Jupyter notebook, open your terminal and navigate to the directory where you would like to save your notebook. Then type the command jupyter notebook and the program will instantiate a local server at localhost:8888 (or another specified port).

How do I share a local jupyter notebook?

Sharing Locally You can export to a variety of formats from within the notebook by navigating to File -> Download As. You'll want to export your notebook as a Jupyter Interactive Notebook ( . ipynb file format) if you'd like the person you're sharing it with to interact with the notebook.


1 Answers

Try jupyter notebook --ip <your_LAN_ip> --port 8888 Then visit http://your_LAN_ip:8888 from another computer.

It's recommended that you use a password when accessing your notebook server. To set up a password, just run jupyter notebook password. To make it even more secure, you can use SSL for your server by passing the arguments --certfile and --keyfile to jupyter notebook. You can read more about setting that up here.

like image 142
perfect5th Avatar answered Sep 21 '22 23:09

perfect5th