If you have access to a remote machine with Anaconda3 installed, in this post I will show you how to run a Jupyter notebook in remote with ease.
For the impatient user (and myself) I have created a script, named Remote Jupyter Notebook (
rjn) that makes this process faster.
This script will first check if a Jupyter session is already running in your remote machine, and if not, it will start one. Then, it will create an ssh tunnel between your local machine and the remote one in order to enable your browser to access the notebook locally.
To install the script, you just need to execute the following commands into the terminal of your local machine:
wget https://raw.githubusercontent.com/aldolipani/RemoteJupyterNotebook/master/rjn chmod +x rjn mv rjn /usr/local/bin
To run the script you now need to execute:
This command will return something like this:
Remote Jupyter Notebook v0.1 username@hostname's password: No Jupyter sessions found, one is being created! Your Jupyter session is now running at this url: http://localhost:8888/?token=4_r4nd0m_t0k3n To not lose the connection, please do not close this program!
Your Jupyter notebook is now ready to be used at the returned link.