Jupyter - How to install Jupyter on Windows?

Steps to install Jupyter on Windows

 

Install Python (If Not Installed)

Jupyter runs on Python, so you need to install Python first.

  • Download Python from Python.org
  • Check the box “Add Python to PATH” during installation.
  • Verify installation by running:
python --version

Install Jupyter Notebook

Once Python is installed, open Command Prompt (cmd) or PowerShell, and install Jupyter using pip:

pip install jupyter

Start Jupyter Notebook

After installation, launch Jupyter by running:

jupyter notebook

This will open Jupyter Notebook in your default web browser (http://localhost:8888).





Running Python Code in Jupyter

  • Click New → Python 3 to create a new notebook.
  • Write Python code in the cell and press Shift + Enter to execute.

Example:

print("Hello, Jupyter! Welcome to Earth!")




Alternative: Install Jupyter via Anaconda (Recommended)

If you prefer a more convenient setup, you can use Anaconda, which comes with Jupyter and many data science libraries.

  • Download Anaconda from Anaconda website
  • Install and open Anaconda Navigator
  • Launch Jupyter Notebook from Anaconda Navigator


Stopping Jupyter Notebook

To stop Jupyter Notebook, go to the terminal (where it’s running) and press:

Ctrl + C

Then type Y and press Enter to confirm.


Running Jupyter in Visual Studio Code (VS Code)

You can also run Jupyter inside VS Code:

  1. Install Python extension from the VS Code marketplace.
  2. Install Jupyter inside VS Code:
    pip install notebook
    
  3. Open a .ipynb file or create a new Jupyter Notebook.