When you start Jupyter Notebook from the Mac Terminal, it opens up the notebook on your default web browser.
If you are wondering how to quit Jupyter Notebook gracefully and properly, follow the below steps,
- Close or Logout the Jupyter Notebook webpage that's running on the localhost:8888 URL.
- Now go to the Terminal Window where you ran the command to run the notebook.
- Press the keys Control + C, you will be asked "Shutdown this notebook server (y/[n])?", type y and enter.
- You would see some console logs like below and should return back to your zsh prompt.
^C [I 00:52:00.605 NotebookApp] interrupted Serving notebooks from local directory: /Users/c2ctech 0 active kernels Jupyter Notebook 6.5.4 is running at: http://localhost:8888/?token=83c11e00ff3bd1fe7a97e977b25b4aa53f75718cdad205d7 or http://127.0.0.1:8888/?token=83c11e00ff3bd1fe7a97e977b25b4aa53f75718cdad205d7 Shutdown this notebook server (y/[n])? y [C 00:52:02.668 NotebookApp] Shutdown confirmed [I 00:52:02.670 NotebookApp] Shutting down 0 kernels [I 00:52:02.671 NotebookApp] Shutting down 0 terminals Code2care@Mac %
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: rakesh@code2care.org
More Posts related to MacOS,
- How to show line numbers in Nano on Mac
- How to install Jupyter Notebook on macOS Sonoma
- How to Disable Remote Management using Mac Terminal
- Test internet speed using macOS Terminal command
- Docker Desktop needs privileged access macOS
- Google Search Hot Trends Screensaver for Mac OS X
- How to do calculations in Mac Terminal
- How to make TextEdit the default text Editor on Mac
- How to Show Full Website Address on Safari for Mac (Ventura/Sonoma)
- The Zsh Shell - Mac Tutorial
- Opening mac Terminal
- How to change the name of your Mac running on macOS Ventura 13
- How to find the Battery Cycle Count on macOS Ventura
- How to set an emoji as Zsh terminal prompt in macOS
- How to access Trash Folder using Mac Terminal Command
- macOS Ventura XCode Command Line Tools Installation
- Hide Bluetooth icon on Mac Menu Bar macOS Ventura 13
- How to run .sh file in Mac Terminal
- Terminal Command to get the list of available shells in macOS
- How to see Storage Information on macOS Ventura
- How to Go To /usr/local/bin on Mac Terminal?
- How to do screen recording on Mac
- How to Find File and Directory Size in Mac Terminal
- Open .bash_profile File in TextEdit using Terminal
- Remove Now Playing icon from macOS Big Sur Menu Bar
More Posts:
- How to check if Key Exists in Python Dictionary? - Python
- How to install fps unlocker for Roblox on Mac - MacOS
- How to Split a String using Rust Language - Rust
- Java Generics: Type parameter cannot be instantiated directly - Java
- Eclipse : Workspace was written with an older version of the product and will be updated - Eclipse
- Java 8 Predicate Functional Interface with Examples (Lambda) - Java
- SharePoint Server 2016 IT Preview - new improved Features and Enhancements - SharePoint
- How to Move Columns in Microsoft Excel on Mac - MacOS