THE FOUNDER’S GUIDE:
How to Install the Jupyter Notebook Server on Mac
The condensed tutorial with copy and paste code and screenshots
“The expanded version of this article uses concise explanations to help you learn what’s happening 💡”
Open Terminal:
- Press “Command ⌘ + Spacebar”
- Enter “Terminal”
- Press “Return”
Install Jupyter Notebook:
- Copy the command from below these instructions
- Terminal
- Press “Return”
python -m pip install jupyter
Install the WebSocket Extension:
- Copy the command from below these instructions
- Paste the command into Terminal
- Press “Return”
python -m pip install jupyter_http_over_ws
Create the Configuration File:
- Copy the command from below these instructions
- Paste the command into Terminal
- Press “Return”
jupyter notebook --generate-config
Open the Jupyter Directory:
- Copy the command from below these instructions
- Paste the command into Terminal
- Press “Return”
cd $HOME\.jupyter
Create the SSL Certificate:
- Copy the command from below these instructions
- Paste the command into Terminal
- Press “Enter”
- Enter “US” into “Country Name”
- Press “Enter”
- Enter “.” into the remaining fields
- Press “Enter”
openssl req -x509 -nodes -days 365 -newkey rsa:2048 -keyout mykey.key -out mycert.pem
Create the JSON File:
- Copy the command from below these instructions
- Paste the command into Terminal
- Press “Return”
echo "" >> jupyter_notebook_config.json
Open the JSON File:
- Copy the command from below these instructions
- Paste the command into Terminal
- Press “Return”
open -a textedit jupyter_notebook_config.json
Edit the JSON File:
- Copy the code from below these instructions
- Paste the code into TextEdit
- Change “Admin” to the Mac username
- Click the “File” menu
- Click “Save”
Create the Password:
- Copy the command from below these instructions
- Paste the command into Terminal
- Press “Return”
jupyter notebook password
Open the Launch Agents Directory:
- Copy the command from below these instructions
- Paste the command into Terminal
- Press “Return”
cd $HOME/library/launchagents/
Check the Executable File:
- Copy the command from below these instructions
- Paste the command into Terminal
- Press “Return”
- Write down the Jupyter Notebook path
which jupyter-notebook
Create the Plist File:
- Copy the command from below these instructions
- Paste the command into Terminal
- Press “Return”
echo “” > com.jupyter.notebook.plist
Open the Plist File:
- Copy the command from below these instructions
- Paste the command into Terminal
- Press “Return”
open -a textedit com.jupyter.notebook.plist
Edit the Plist File:
- Copy the code from below these instructions
- Paste the code into TextEdit
- Change “Admin” to the Mac username
- Replace the Jupyter Notebook path
- Click the “File” menu
- Click “Save”
Log into the Router:
- Open the web browser
- Copy the router IP address from below these instructions
- Paste the router IP address into the web browser
- Press “Enter”
- Log into the router
192.168.0.1
Set up Port Forwarding:
- Find the “Port Forwarding” page
- Paste the IPv4 address into the “Enter IP Address” text field
- Copy the port from below these instructions
- Paste the port into the “WAN Starting Port” text field
- Paste the port into the “WAN Ending Port” text field
- Select “All IP Addresses”
- Click “Apply”
8886
Get the Private IP Address:
- Copy the command from below these instructions
- Paste the command into Terminal
- Press “Return”
- Write down the private IP address
ipconfig getifaddr en0
Get the DNS Servers:
- Click the “Apple” menu
- Click “System Preferences”
- Click “Network”
- Click “Advanced”
- Click “DNS”
- Write down the DNS IP addresses
Set the Static IP Address:
- Click the “TCP/IP” tab
- Set “Configure IPv4” to “Manually”
- Enter the private IP address from earlier
Set the DNS Servers:
- Click the “DNS” tab
- Click the “+” button in DNS Servers
- Enter the DNS IP addresses from earlier
- Click “OK”
- Click “Apply”
Access the Server From the Local Network:
- Log into a different computer or laptop
- Connect to the same WiFi network
- Enter the IPv4 Address into the web browser
- Prepend “https://” to the IP address
- Append “8886” to the IP address
- Press “Enter”
- Type “thisisunsafe”
- Enter the password
- Click “Log In”
Get the Public IP Address:
- Copy the URL from below these instructions
- Paste the URL into the web browser
- Write down the public IP address
https://www.google.com/search?q=whatsmyip
Access the Server From a Remote Network:
- Log into a different computer or laptop
- Connect to a different WiFi network
- Enter the public IP address into the web browser
- Prepend “https://” to the IP address
- Append “8886” to the IP address
- Press “Enter”
- Type “thisisunsafe”
- Enter the password
- Click “Log In”
“Hopefully, this article helped you get the 👯♀️🏆👯♀️, remember to subscribe to get more content 🏅”
Next Steps:
This article is part of a mini-series that helps readers set up everything they need to start learning about artificial intelligence, machine learning, deep learning, and or data science. It includes articles that contain instructions with copy and paste code and screenshots to help readers get the outcome as soon as possible. It also includes articles that contain instructions with explanations and screenshots to help readers learn about what’s happening.
Linux:
01. Install and Manage Multiple Python Versions
02. Install the NVIDIA CUDA Driver, Toolkit, cuDNN, and TensorRT
03. Install the Jupyter Notebook Server
04. Install Virtual Environments in Jupyter Notebook
05. Install the Python Environment for AI and Machine LearningWSL2:
01. Install Windows Subsystem for Linux 2
02. Install and Manage Multiple Python Versions
03. Install the NVIDIA CUDA Driver, Toolkit, cuDNN, and TensorRT
04. Install the Jupyter Notebook Server
05. Install Virtual Environments in Jupyter Notebook
06. Install the Python Environment for AI and Machine Learning
07. Install Ubuntu Desktop With a Graphical User Interface (Bonus)Windows 10:
01. Install and Manage Multiple Python Versions
02. Install the NVIDIA CUDA Driver, Toolkit, cuDNN, and TensorRT
03. Install the Jupyter Notebook Server
04. Install Virtual Environments in Jupyter Notebook
05. Install the Python Environment for AI and Machine LearningMac:
01. Install and Manage Multiple Python Versions
02. Install the Jupyter Notebook Server
03. Install Virtual Environments in Jupyter Notebook
04. Install the Python Environment for AI and Machine Learning