Install jupyter notebook on ubuntu how to#
Now we will learn how to connect to the Jupyter Notebook web interface using SSH tunneling. This step is only for those who are connecting to a Jupyter Notebook installed on a remote server. Step 5-2: Connecting to a remote Server Using SSH Tunneling To stop the Jupyter Notebook process, press CTRL+C, type Y, and hit ENTER to confirm. We will run it again once we have SSH tunneling working. Let’s keep it simple and stop the Jupyter Notebook process. If you are running Jupyter Notebook on a remote server, you will need to connect to the server using SSH tunneling as outlined in the Step 5-2 below.Īt this point, you can keep the SSH connection open and keep Jupyter Notebook running or can exit the app and re-run it once you set up SSH tunneling. If you are running Jupyter Notebook on a local Linux computer (not on a remote server), you can simply navigate to localhost :8888 to connect to Jupyter Notebook. (ipy-jupyter-venv3) liping:~$ jupyter-notebook (ipy-jupyter-venv) liping:~$ jupyter-notebook Step 5: Run Jupyter Notebook #for python2.x Installed kernelspec myipy_jupter_env3 in /home/liping/.local/share/jupyter/kernels/myipy_jupter_env3
Install jupyter notebook on ubuntu install#
(ipy-jupyter-venv3) liping: ~$ python3 -m ipykernel install -user -name myipy_jupter_env3 -display-name "ipy-jupyter-venv3" Installed kernelspec myipy_jupter_env in /home/liping/.local/share/jupyter/kernels/myipy_jupter_env (ipy-jupyter-venv) liping: ~$ python -m ipykernel install -user -name myipy_jupter_env -display-name "ipy-jupyter-venv" We are using virutalenv, so we need to install IPython kernel in the virtualenv we created in Step 0 above. However, if you want to use a kernel with a different version of Python, or in a virtualenv or conda environment, you’ll need to install that manually. The Jupyter Notebook and other frontends automatically ensure that the IPython kernel is available. home/liping/ipy-jupyter-venv3/bin/jupyter-notebook (ipy-jupyter-venv3) liping: ~$ which jupyter-notebook
![install jupyter notebook on ubuntu install jupyter notebook on ubuntu](https://i.stack.imgur.com/oQ7Qe.png)
home/liping/ipy-jupyter-venv/bin/jupyter-notebook (ipy-jupyter-venv) liping: ~$ which jupyter-notebook home/liping/ipy-jupyter-venv3/bin/ipython3 (ipy-jupyter-venv3) liping: ~$ which ipython3 home/liping/ipy-jupyter-venv/bin/ipython (ipy-jupyter-venv) liping: ~$ which ipython home/liping/ipy-jupyter-venv3/bin/python3 (ipy-jupyter-venv3) liping: ~$ which python3 (ipy-jupyter-venv) liping: ~$ which python (ipy-jupyter-venv3) liping: ~$ pip3 install jupyter (ipy-jupyter-venv) liping: ~$ pip install jupyter Use the following command to install Jupyter Notebook #for python 2.x (ipy-jupyter-venv3) liping: ~$ pip3 install ipython (ipy-jupyter-venv) liping: ~$ pip install ipython Use the following command to install IPython #for python 2.x (ipy-jupyter-venv3)$ # Your prompt should change $ source ~/ipy-jupyter-venv3/bin/activate # If using bash (ipy-jupyter-venv)$ # Your prompt should change $ source ~/ipy-jupyter-venv/bin/activate # If using bash For example, In our cases, it would be rm -rf ipy-jupyter-venv or rm -rf ipy-jupyter-venv3.)īefore installing IPython and Jupyter, be sure to activate your python virtual environment first. ( Note: To delete a virtual environment, just delete the corresponding folder. Virtualenv -system-site-packages -p python3 ~/ipy-jupyter-venv3 Virtualenv -system-site-packages -p python ~/ipy-jupyter-venv Create a Virtualenv environment in the directory for python2.x and python 3.x:.$ sudo apt-get install openjdk-8-jdk git python-dev python3-dev python-numpy python3-numpy build-essential python-pip python3-pip python-virtualenv swig python-wheel libcurl3-dev Install pip and Virtualenv for python 2.x and python 3.x:.
![install jupyter notebook on ubuntu install jupyter notebook on ubuntu](https://thecustomizewindows.com/wp-content/uploads/2018/09/Install-Jupyter-Notebook-and-TensorFlow-On-Ubuntu-18-04-Server.png)
If you have not installed virtualenv yet, you need to do so before proceed.Ĭheck my post for more details about how to setup python virtual environment and why it is better to install python libraries in Python virtual environment.
![install jupyter notebook on ubuntu install jupyter notebook on ubuntu](https://kickstart.best/wp-content/uploads/2020/02/image-12-768x548.png)
Step 0: install virtualenv and setup virtualenv environment This post introduces how to install IPython and Jupyter Notebook in virtualenv on Ubuntu 16.04 (both local Desktop and remote server.)