The fastest way to install Jupyter Notebook on Mac

The easiest path is to install Python first using Homebrew, then use Python's package manager to install Jupyter Notebook. Homebrew is a package manager for Mac that handles downloading and setting up software from the command line. If you already have Python 3.7 or newer installed, you can skip the Python step and go straight to the Jupyter installation.

The whole process takes about 10 minutes and requires only three commands typed into Terminal. You do not need to be a programmer — Terminal is just Mac's text-based way of giving your computer instructions, and you can copy and paste the exact commands shown here.

Key Takeaways

  • Install Homebrew first by pasting one command into Terminal, then use it to install Python 3.
  • Once Python is installed, type one command to install Jupyter Notebook through pip, Python's package manager.
  • Launch Jupyter by typing jupyter notebook in Terminal, which opens it in your web browser.
  • Jupyter runs locally on your Mac and saves files as .ipynb documents that contain both code and notes together.

Installing Homebrew and Python

Open Terminal on your Mac by pressing Command + Space, typing "Terminal", and pressing Enter. Copy this entire line and paste it into Terminal, then press Enter:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Terminal will ask for your Mac password. Type it (you will not see the characters appear) and press Enter. Homebrew will download and install itself — this takes a few minutes. When it finishes, you will see a message saying "Installation successful!"

Next, install Python 3 by typing this command and pressing Enter:

brew install python3

Homebrew will download and set up Python. When it finishes, verify the installation worked by typing:

python3 --version

Terminal should show a version number like "Python 3.11.5" or similar. If you see a version number, Python is ready.

Installing Jupyter Notebook with pip

Now that Python is installed, use its package manager called pip to download Jupyter Notebook. Type this command and press Enter:

pip3 install jupyter

pip will download Jupyter Notebook and several other packages it needs to run. This takes a few minutes depending on your internet speed. When the text stops scrolling and you see a new command prompt, the installation is complete.

To verify Jupyter installed correctly, type:

jupyter --version

Terminal should show a version number. If you see one, Jupyter Notebook is ready to use.

Launching Jupyter Notebook for the first time

Type this command and press Enter:

jupyter notebook

Jupyter will start and automatically open in your default web browser. You will see a file browser showing the folders and files on your Mac. This is Jupyter's interface — it runs in your browser but stores everything locally on your computer.

To create a new notebook, click the "New" button in the top right corner and select "Python 3". A blank notebook will open with an empty cell ready for code. Type Python code in a cell and press Shift + Enter to run it. The output appears directly below.

Where Jupyter saves your work

Jupyter saves notebooks as .ipynb files in whatever folder Terminal was in when you typed the launch command. If you launched from your home directory (the default), notebooks save there. You can navigate to different folders using Jupyter's file browser before creating a new notebook.

To save a notebook you are working on, press Command + S or use the File menu. Jupyter saves automatically every few minutes as well. Each notebook is a single .ipynb file that contains your code, output, and any text notes you write.

Stopping Jupyter and relaunching later

To stop Jupyter, go back to Terminal and press Control + C. Terminal will ask "Shutdown this notebook server?" — type "y" and press Enter. Jupyter closes and you return to the command prompt.

To start Jupyter again later, open Terminal and type jupyter notebook again. It will launch in your browser at the same location. Your old notebooks remain saved as .ipynb files and will appear in the file browser when you launch.

Updating Jupyter when new versions arrive

Occasionally Jupyter releases updates. To update to the latest version, open Terminal and type:

pip3 install --upgrade jupyter

This downloads and installs any newer version. You do not need to uninstall the old version first — pip handles the replacement automatically. Your existing notebooks are not affected by updates.

Frequently Asked Questions

What if Terminal says "command not found" when I type jupyter notebook?

This usually means pip did not install Jupyter correctly or Terminal cannot find it. Try typing the full path: /usr/local/bin/jupyter notebook. If that works, Jupyter is installed but not in Terminal's search path. If it still does not work, reinstall Jupyter by typing pip3 install --force-reinstall jupyter.

Can I use Jupyter Notebook with Python 2 instead of Python 3?

Python 2 is no longer supported and Jupyter has dropped compatibility with it. You need Python 3.7 or newer. If you have Python 2 installed, install Python 3 alongside it using Homebrew — they can coexist without conflict.

How do I change which folder Jupyter opens in?

Navigate to the folder you want in Terminal first, then type jupyter notebook. Jupyter will open showing that folder's contents. For example, type cd Documents to move to your Documents folder, then launch Jupyter from there.

Is Jupyter Notebook the same as JupyterLab?

JupyterLab is a newer interface for the same Jupyter system with more features and a different layout. If you want JupyterLab instead, type pip3 install jupyterlab and launch it with jupyter lab. Both can be installed at the same time.

Do I need an internet connection to use Jupyter Notebook?

Jupyter runs entirely on your Mac and does not need the internet to function. It uses your browser as the interface, but everything happens locally. You only need internet if you install packages from online repositories or want to share notebooks with others.