To install Jupyter Notebook on Ubuntu (Linux)
To install Jupyter Notebook on Ubuntu 24, follow these steps:
Update the system:
sudo apt update && sudo apt upgrade -yInstall Python and pip (Ubuntu 24 typically comes with Python pre-installed):
sudo apt install python3 python3-pip -yInstall Jupyter Notebook:
pip3 install jupyterVerify the installation:
jupyter notebook --versionLaunch Jupyter Notebook:
jupyter notebookThis will start the Jupyter server and open a browser window. If it doesn’t, navigate to
http://localhost:8888in your browser.
Optional: Install in a virtual environment (recommended to avoid package conflicts):
- Install virtualenv:
sudo apt install python3-venv -y - Create and activate a virtual environment:
python3 -m venv jupyter_env source jupyter_env/bin/activate - Install Jupyter Notebook inside the virtual environment:
pip install jupyter - Run Jupyter Notebook as above.
Notes:
- Ensure you have an active internet connection.
- If you encounter permission issues with
pip, usepip3 install --user jupyter. - To stop the Jupyter server, press
Ctrl+Cin the terminal.
Comments
Post a Comment