How to install Jupyter Notebook on macOS Sonoma

If you got a new Mac/Macbook or updated to macOS Sonoma, and you want to install Jupyter Notebook locally on your Mac then you can follow the below steps.

Step 1: Make sure Python 3.x is installed on your Mac

    Run the below command to see if Python 3.x is installed on your Mac by trying the --version command.

    % python --version
    Python 3.9.6

    If you get an error, that python is not found, then makes sure to install it first.

    % python --version
    zsh: command not found: python

    Also, make sure the pip3 command works.

    % pip3 --version
    pip 21.2.4 from /Library/Developer/CommandLineTools/Library/Frameworks/
    Python3.framework/Versions/3.9/lib/python3.9/site-packages/pip (python 3.9)

Step 2: Install Notebook using pip3 command

    Macbook % pip3 install jupyter
    Defaulting to user installation because normal site-packages is not writeable
    Collecting jupyter
      Downloading jupyter-1.0.0-py2.py3-none-any.whl (2.7 kB)

Step 3: Run Notebook using python3 command

    % python3 -m notebook
    [I 2023-09-28 17:03:15.573 ServerApp] jupyterlab | extension was successfully loaded.
    [I 2023-09-28 17:03:15.574 ServerApp] notebook | extension was successfully loaded.
    [I 2023-09-28 17:03:15.575 ServerApp] Serving notebooks from local directory: /Users/code2care
    [I 2023-09-28 17:03:15.575 ServerApp] Jupyter Server 2.7.3 is running at:
    [I 2023-09-28 17:03:15.575 ServerApp] http://localhost:8888/tree?token=99a42be453b83ce732f15ea836f8017b8f297fad75bb678d
    [I 2023-09-28 17:03:15.575 ServerApp]
    [I 2023-09-28 17:03:15.575 ServerApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
    Installing and Running Jupyter Notebook on macOS Sonoma

This is not an AI-generated article but is demonstrated by a human on an M1 Mac running macOS Sonoma 14.0.

Please support independent contributors like Code2care by donating a coffee.

Buy me a coffee!

Buy Code2care a Coffee!

Facing issues? Have Questions? Post them here! I am happy to answer!

Author Info:

Rakesh (He/Him) has over 14+ years of experience in Web and Application development. He is the author of insightful How-To articles for Code2care.

Follow him on: X

You can also reach out to him via e-mail:

Copyright © Code2care 2024 | Privacy Policy | About Us | Contact Us | Sitemap