How to use Jupyter notebook remotely

It is for the case when you want to use/access Jupyter notebook in the remote computer/server from your local/home computer.

Make sure you have installed Jupyter notebook in both remote and local computers.

1. In the remote computer, open your Jupyter notebook you want to open in the corresponding directory in the ternimal

jupyter notebook --no-browser --port=8888

2. In your local computer's terminal
ssh -N -f -L localhost:8888:localhost:8888 [username]@[your_remote_host_name]

3. You can now access the remote Jupyter notebook by typing
localhost:8888
in your browser!

No comments:

Post a Comment