Welcome to CS With James
In this tutorial I will discuss installation of the Jupyter Notebook and how to remotely access to it.
Install is pretty easy. In the terminal
pip3 install jupyter
this is it for installation. To run the Jupyter, from the terminal navigate to the folder that you want to run the Jupyter and type
Now you are running the Jupyter in your machine. Go to your preferred browser and type
it will show you the Jupyter interface.
However, you can remote access to your Jupyter Notebook. In this case I can use my MacBook Air to code but I can utilize my powerful Desktop CPU and GPU. Once the Jupyter Notebook is started from the remote computer.
You have to set a password for the remote access.
jupyter notebook password
will allow you to type the password into the system. Once the password is set, stop the jupyter notebook if it is running otherwise run the jupyter notebook from the desired location
From the remote computer type
ssh -N -f -L localhost:8888:localhost:8888 <Log in ID>@<Your IP>
ssh -N -f -L localhost:8888:localhost:8888 James@188.8.131.52
and input the password after that if you browse into the
localhost:8888from remote computer then you can have access to your Desktop Computer.
If the computer says the port is using by another processor, you can kill it by
lsof -i :8888
Kill -9 <PID>
I like to use Jupyter to code outside because I can utilize my desktop computer’s CPU and GPU for Machine Learning. Moreover, the Jupyter can run your Python Code Partially, for the Data Scientist this is must have, because it will save your time that you waiting for code to run.