How do I launch jupyter notebook from my terminal?
Asked Answered
N

5

25

Trying to Launch jupyter notebook from terminal. I am currently on my terminal in the correct folder, and I have python 3.5 installed along with conda. But it is not launching.

Netherlands answered 19/8, 2019 at 2:0 Comment(1)
Euporie may be a good alternative euporie.readthedocs.io/en/latest/index.htmlMitra
A
18

Jupyter Notebooks allow you to open IPYNB notebooks in the location you prefer. I generally recommend the following:

  1. First create a folder at your preferred destination
  2. Then go to terminal/cmd prompt and navigate to your above made destination
  3. Once in the destination then type in jupyter notebook

This will then automatically trigger the browser and open the Home tab, you can start a new notebook with your preferred kernel, rename and save the notebook, which it saves at the location where you navigated through the terminal

This helps you organize your relevant/related notebooks in the same place in a structured manner.

Example shown below:

enter image description here

Ames answered 19/8, 2019 at 5:44 Comment(0)
H
8

In the terminal and in the folder where your ipynb file is located, enter:

jupyter notebook NAMEOFFILE.ipynb
Hedvig answered 3/2, 2021 at 19:17 Comment(2)
It doesn't work for me when I try with a specific file: it opens on browser a URL of type file:///tmp/tmpuchfjlw0.html and nothing happens. With directories it worked though. Tested on notebook==6.5.3.Lanthanum
Works for me. Jupyter Server 2.7.3Dixil
P
6

Just type the command in the terminal to open the jupyter notebook.

$ jupyter notebook
Planogamete answered 19/8, 2019 at 5:30 Comment(0)
O
0

In Windows we can't use the python3.12 command in this format as we use it in Linux or UNIX systems we have to use py -3.12 in this format to execute a specific python version.

Installing Jupyter Notebook

python -m pip install jupyter

or

py -3.12 -m pip install jupyter

Launching Jupyter Notebook

python -m jupyter notebook

or

py -3.12 -m jupyter notebook
Ongun answered 16/7 at 16:57 Comment(0)
R
-1

This worked for me

~/.local/bin/jupyter-notebook --port 8887
Raconteur answered 19/8, 2023 at 17:36 Comment(1)
This does not provide an answer to the question. Once you have sufficient reputation you will be able to comment on any post; instead, provide answers that don't require clarification from the asker. - From ReviewIntrude

© 2022 - 2024 — McMap. All rights reserved.