To install Jupyter Notebook on Ubuntu (Linux)

To install Jupyter Notebook on Ubuntu 24, follow these steps:

  1. Update the system:

    sudo apt update && sudo apt upgrade -y
    
  2. Install Python and pip (Ubuntu 24 typically comes with Python pre-installed):

    sudo apt install python3 python3-pip -y
    
  3. Install Jupyter Notebook:

    pip3 install jupyter
    
  4. Verify the installation:

    jupyter notebook --version
    
  5. Launch Jupyter Notebook:

    jupyter notebook
    

    This will start the Jupyter server and open a browser window. If it doesn’t, navigate to http://localhost:8888 in your browser.

Optional: Install in a virtual environment (recommended to avoid package conflicts):

  1. Install virtualenv:
    sudo apt install python3-venv -y
    
  2. Create and activate a virtual environment:
    python3 -m venv jupyter_env
    source jupyter_env/bin/activate
    
  3. Install Jupyter Notebook inside the virtual environment:
    pip install jupyter
    
  4. Run Jupyter Notebook as above.

Notes:

  • Ensure you have an active internet connection.
  • If you encounter permission issues with pip, use pip3 install --user jupyter.
  • To stop the Jupyter server, press Ctrl+C in the terminal.

Comments

Popular posts from this blog

Terminal-Based Writing

Markdown Quick Tutorial