jupyter / notebook

Jupyter Interactive Notebook
https://jupyter-notebook.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
11.74k stars 4.98k forks source link

Jupiter notebook not opening #5692

Open aym183 opened 4 years ago

aym183 commented 4 years ago

![Uploading Screens

Screenshot 2020-08-25 at 02 06 42

hot 2020-08-25 at 02.06.56.png…]()

My notebook has not been launching from the past few days. What should I do?

kevin-bates commented 4 years ago

Please provide the output of what your Notebook server command window, as well as the output of this command: jupyter troubleshoot

Thanks.

aym183 commented 4 years ago
Screenshot 2020-08-25 at 02 06 42 Screenshot 2020-08-25 at 02 06 56

its just been showing this

aym183 commented 4 years ago
Screenshot 2020-08-26 at 06 27 17 Screenshot 2020-08-26 at 06 28 19 Screenshot 2020-08-26 at 06 28 26 Screenshot 2020-08-26 at 06 28 34 Screenshot 2020-08-26 at 06 28 41 Screenshot 2020-08-26 at 06 28 45 Screenshot 2020-08-26 at 06 28 49 Screenshot 2020-08-26 at 06 28 56 Screenshot 2020-08-26 at 06 29 02 Screenshot 2020-08-26 at 06 29 05 Screenshot 2020-08-26 at 06 29 08

this is the output of my Notebook server command window, as well as the output of the command: jupyter troubleshoot

kevin-bates commented 4 years ago

Thank you - this is odd that things are so silent. Since you have two Notebook servers, I would suggest stopping both, then starting a new instance and we'll go from there. Please do the following:

jupyter notebook stop 8888
jupyter notebook stop 8889

Each Notebook server instance should now be stopped. Next, close all of your notebook tabs (and preferably your browser).

Then, start your notebook server using:

jupyter notebook --debug

This will run your Notebook server in debug mode and provide additional information to your command window. It should also open your browser and allow you to proceed. It should start again on port 8888.

If things still aren't working, please scrape (select/copy/paste) the contents of your command window into this issue, then run the following command:

jupyter kernelspec list

and append its output (again via scrape) to your latest comment.

aym183 commented 4 years ago
Screenshot 2020-08-26 at 06 51 11 Screenshot 2020-08-26 at 06 51 18 Screenshot 2020-08-26 at 06 51 25 Screenshot 2020-08-26 at 06 51 30

I did all of the steps you mentioned but the result was the same as last time and my notebook was not launching.

aym183 commented 4 years ago
Screenshot 2020-08-26 at 07 05 17

If I change my kernel to Python 3, it launches but get stuck after a few seconds

kevin-bates commented 4 years ago

Ok - there's been some progress.

If I change my kernel to Python 3

Based on the information you provided, the python3 kernel is the only kernel you have available in this environment. What kernel were you expecting to use? And how was it being identified to you in the notebook?

..., it launches but get stuck after a few seconds

There are no indications of any cells actively running or any indicators of issues in either the command window or your browser window so I'm not sure what is "stuck". In fact, looking back at the command window, I don't see any indication of kernel ever being started! There is no POST request. Since the browser screenshot clearly shows python3 as running, yet your notebook server command window shows no indication of such an event, I need to ask what URL you're using in your browser? You might also try a different browser - this looks like Safari.

It should be one of these: image

If it is not, could you please paste one into another browser window and try? Then provide the additional contents of the Notebook server command window?

As an observation, the cell history counters appear to be extremely high and non-sequential, implying that you're jumping around in the notebook executing various cells - which is okay - but I'm just wondering if you're expecting a behavior that isn't the way things work. Usually, cells are ordered in the sequence of their expected execution, although during a notebook's development or exploration phase, which appears to be the case here, that becomes a "looser" best practice.

aym183 commented 4 years ago
Screenshot 2020-08-26 at 18 35 56 Screenshot 2020-08-26 at 18 35 29

I used chrome and pasted the URL listed above and it shows the same thing as last time

aym183 commented 4 years ago
Screenshot 2020-08-26 at 18 39 28

the notebook then launched but the page froze again

aym183 commented 4 years ago
Screenshot 2020-08-26 at 18 45 29 Screenshot 2020-08-26 at 18 45 37 Screenshot 2020-08-26 at 18 46 13

I launched a new notebook and it was working perfectly fine but, whenever I try to launch my main notebook the page freezes

kevin-bates commented 4 years ago

I believe the kernel name displays as Kernel during its startup and, once started, displays the name of the kernel (Python 3). As you can see, there's a 'loading' status and I wonder if you're experiencing longer startup times. Does "Python 3" eventually display? Might your resources be limited on this particular machine? Are there any new entries on your server command window during this period?

The first images in this https://github.com/jupyter/notebook/issues/5692#issuecomment-680963268 show you have two kernels running, both 'Python 3'.

Both notebook images look fine. Untitled1 is waiting for you to input your next cell. The main notebook shows the kernel just became ready and probably changed 'Kernel' to 'Python 3'. As a result, I see nothing to grab onto to help here and until there is some definitive issue or more information is provided, I don't know how I can help you.

Might you be able to attach your problematic notebook to this issue? (You'll likely need to append '.txt' to the notebook file since GitHub doesn't recognize '.ipynb' extensions.)