Jupyter Notebook is an open-source web application that allows you to share code equations, visualizations, text, etc. It supports various programming languages like Python, Julia, R, and much more. Many beginners face difficulty in opening Jupyter Notebook from the Terminal. In this tutorial, you will learn how to Open Jupyter Notebook from the Terminal through the steps.
Steps to Open Jupyter Notebook from Terminal
To open Jupyter Notebook from the Terminal, you can follow these steps.
Step 1: Open the Terminal application on your computer. You can usually find it in the Utilities folder on macOS or in the Start menu on Windows (cmd).
Step 2: Go to the directory where you want to launch Jupyter Notebook. You can use the cd
command to change directories.
Step 3: Once you are in the desired directory, type the following command and press Enter:
jupyter notebook

This will start the Jupyter Notebook server and open your default web browser with the Jupyter Notebook interface.
Step 4: In your web browser, you will see the list of files and folders in the current directory. You can navigate to the desired notebook file (.ipynb) or create a new notebook by clicking on the “New” button and selecting “Python 3” or any other available kernel.
Step 5: You can now use Jupyter Notebook to write and execute code, create visualizations, and document your work using Markdown cells.
You should also note that the Jupyter Notebook should be installed. To install it use the below pip command.
Python 3.xx
pip3 install jupyter
Python 2. xx
pip install jupyter
Conclusion
These are the steps to open the Jupyter Notebook from the terminal. Now you can write any code in the code cell and execute the code. Please note that closing the terminal will also shut down the Jupyter Notebook Server. You can safely close the notebook by pressing the Ctrl+C command.
Leave a Reply