How do I import a jupyter notebook ? or open?

Asked

Viewed 2,940 times

1

I am unable to import or open a file notebook.ipynb

I tried to go to the file directory at the prompt and type : jupyter notebook filename And claims that the file is not found.

  • I tried to go to the file directory at the prompt and type : jupyter notebook filename E claims that the file is not found.

  • What is "cures of fundamentals"?

2 answers

1

In the directory where is the file you want to open, in the command line, type: jupyter notebook, and then you have a new service "listening" at gate 8888, see:

$ jupyter notebook
[I 10:51:49.289 NotebookApp] Serving notebooks from local directory: /home/sidon
[I 10:51:49.290 NotebookApp] 0 active kernels 
[I 10:51:49.290 NotebookApp] The Jupyter Notebook is running at: http://localhost:8888/?token=b7808c09d59aee2e93462fb522a71faab25eff1294882789
[I 10:51:49.290 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 10:51:49.290 NotebookApp] 

    Copy/paste this URL into your browser when you connect for the first time,
    to login with a token:
        http://localhost:8888/?token=b7808c09d59aee2e93462fb522a71faab25eff1294882789
[I 10:51:49.920 NotebookApp] Accepting one-time-token-authenticated connection from ::1
[W 10:51:50.563 NotebookApp] 404 GET /api/kernels/7977e2c8-73bf-4713-81ce-125211de1f82/channels?session_id=DA68001D28A447BF9F79B9315E67F6FA (::1): Kernel does not exist: 7977e2c8-73bf-4713-81ce-125211de1f82
[W 10:51:50.598 NotebookApp] 404 GET /api/kernels/7977e2c8-73bf-4713-81ce-125211de1f82/channels?session_id=DA68001D28A447BF9F79B9315E67F6FA (::1) 60.22ms referer=None
[W 10:51:58.606 NotebookApp] Replacing stale connection: 7977e2c8-73bf-4713-81ce-125211de1f82:DA68001D28A447BF9F79B9315E67F6FA

As the output of the command says, now just go in a browser and access the address: http://localhost:8888/?token=b7808c09d59aee2e93462fb522a71faab25eff1294882789 (The token is only for the first time), then you will see all the files of the directory, in the browser, now just double click on the file you want to open.

To install jupyter, see that link.

0

I was trying to care for the command line and it’s not working! but, I’ve given up on it, and imported in the traditional way by pressing the add file button .

Browser other questions tagged

You are not signed in. Login or sign up in order to post.