Just swtiched from a MBP to a ThinkPad, Windows 10.
Fresh download of Python 3.6. Fresh download of jupyter, pip, not conda. Tried to start kernels and the console kept looping through the below.
Cleared cache, attempted to upgrade jupyter, jupyter_client, switched browsers, all to no avail.
Any advice?
[I 10:50:01.427 NotebookApp] Starting buffering for 2ae61f61-fa7f-44a1-9679-2369afa9e37a:187C42A5D6EE454A809E226343F1188C
[I 10:50:02.436 NotebookApp] Adapting to protocol v5.1 for kernel 2ae61f61-fa7f-44a1-9679-2369afa9e37a
[I 10:50:02.468 NotebookApp] Restoring connection for 2ae61f61-fa7f-44a1-9679-2369afa9e37a:187C42A5D6EE454A809E226343F1188C
[I 10:50:02.484 NotebookApp] Starting buffering for 2ae61f61-fa7f-44a1-9679-2369afa9e37a:187C42A5D6EE454A809E226343F1188C
[I 10:50:03.501 NotebookApp] Adapting to protocol v5.1 for kernel 2ae61f61-fa7f-44a1-9679-2369afa9e37a
[I 10:50:03.502 NotebookApp] Restoring connection for 2ae61f61-fa7f-44a1-9679-2369afa9e37a:187C42A5D6EE454A809E226343F1188C
Related
I have been struggling with this problem the last few days. I am running Manjaro Linux on my laptop and I have recently installed Jupyter Notebook and Jupyterlab using pip.
However, when I try to run it, I get the following output:
[I 2021-05-20 16:21:19.980 LabApp] JupyterLab extension loaded from /usr/lib/python3.9/site-packages/jupyterlab
[I 2021-05-20 16:21:19.980 LabApp] JupyterLab application directory is /usr/share/jupyter/lab
[I 16:21:20.005 NotebookApp] Serving notebooks from local directory: /home/veducha
[I 16:21:20.005 NotebookApp] Jupyter Notebook 6.4.0 is running at:
[I 16:21:20.005 NotebookApp] http://localhost:8888/?token=ffd911982ac39542bc13b182354204b7caec5b86dc5ffad4
[I 16:21:20.005 NotebookApp] or http://127.0.0.1:8888/?token=ffd911982ac39542bc13b182354204b7caec5b86dc5ffad4
[I 16:21:20.005 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 16:21:20.056 NotebookApp]
To access the notebook, open this file in a browser:
file:///home/veducha/.local/share/jupyter/runtime/nbserver-72176-open.html
Or copy and paste one of these URLs:
http://localhost:8888/?token=ffd911982ac39542bc13b182354204b7caec5b86dc5ffad4
or http://127.0.0.1:8888/?token=ffd911982ac39542bc13b182354204b7caec5b86dc5ffad4
followed by a tab opening on my browser saying that it is unable to connect to the localhost.
I have tried different using browsers, and some of the answers given in other posts (downgrading tornado, for example) do not seem to work since now you're required to have the latest version of tornado.
Can anyone please help me?
Thanks,
E.
I want to connect Google Colab to my local jupyter runtime. I installed the below extension as suggested by colab.
pip install --upgrade jupyter_http_over_ws>=0.0.7 && jupyter serverextension enable --py jupyter_http_over_ws
Then I run the command and started a jupyter notebook. After that I try to connect google colab to the local runtime with the prompted URL. But then I got the follow issue. Please help me to solve this.
F:\Education\SEMESTER 7\CO421 FINAL YEAR PROJECT\PROJECT\josh>jupyter notebook --NotebookApp.allow_origin='https://colab.research.google.com'--port=8888 --NotebookApp.port_retries=0
jupyter_http_over_ws extension initialized. Listening on /http_over_websocket
[I 12:01:45.043 NotebookApp] Serving notebooks from local directory: F:\Education\SEMESTER 7\CO421 FINAL YEAR PROJECT\PROJECT\josh
[I 12:01:45.043 NotebookApp] Jupyter Notebook 6.1.4 is running at:
[I 12:01:45.043 NotebookApp] http://localhost:8888/?token=9308f0fdb2a8ebe003eec56aa2684dfb7c51c873ba0d9214
[I 12:01:45.043 NotebookApp] or http://127.0.0.1:8888/?token=9308f0fdb2a8ebe003eec56aa2684dfb7c51c873ba0d9214
[I 12:01:45.043 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 12:01:45.125 NotebookApp]
To access the notebook, open this file in a browser:
file:///C:/Users/prasa/AppData/Roaming/jupyter/runtime/nbserver-6268-open.html
Or copy and paste one of these URLs:
http://localhost:8888/?token=9308f0fdb2a8ebe003eec56aa2684dfb7c51c873ba0d9214
or http://127.0.0.1:8888/?token=9308f0fdb2a8ebe003eec56aa2684dfb7c51c873ba0d9214
[W 12:02:15.646 NotebookApp] Blocking Cross Origin API request for /http_over_websocket. Origin: https://colab.research.google.com, Host: localhost:8888
[W 12:02:15.647 NotebookApp] 403 GET /http_over_websocket?min_version=0.0.7&jupyter_http_over_ws_auth_url=http%3A%2F%2Flocalhost%3A8888%2F%3Ftoken%3D5d6bb0b08b718df4fMUpVa4LvtUpaHGkcUqPkMpyiaoG8817 (::1) 2.99ms referer=None
I didn't run jupyter notebook for a long time, Today when I try to launch to notebook , I can't run it and I encountered this:
[I 19:05:29.939 NotebookApp] 0 active kernels
[I 19:05:29.939 NotebookApp] The Jupyter Notebook is running at:
[I 19:05:29.939 NotebookApp] http://localhost:9999/
[I 19:05:29.939 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
Opening in existing browser session.
Then can not open in browser. I looked up other similar question but I didn't find to solution.
I have instaled anaconda and python works fine in Sypder , IPython etc . However I am not able to run python notebook.
Kernel gets created , it also connects but it shows the dark circle busy symbol throughout . There is no problem with the firewall or antivirus .
I have tried by disabling both .
I am also not able to open python terminal from notebook there is some powershell error.
Can anyone suggest something ?
Edit 1 : Added the snapshot and the log
Log Anaconda Prompt :
(base) C:\Users\Project>jupyter notebook
[I 13:11:26.561 NotebookApp] JupyterLab extension loaded from C:\Users\Project\A
naconda3\lib\site-packages\jupyterlab
[I 13:11:26.561 NotebookApp] JupyterLab application directory is C:\Users\Projec
t\Anaconda3\share\jupyter\lab
[I 13:11:26.569 NotebookApp] Serving notebooks from local directory: C:\Users\Pr
oject
[I 13:11:26.570 NotebookApp] The Jupyter Notebook is running at:
[I 13:11:26.570 NotebookApp] http://localhost:8888/?token=28e7406ee648d631648f9b
8c53e1f3027f5eb30516ccf15f
[I 13:11:26.571 NotebookApp] Use Control-C to stop this server and shut down all
kernels (twice to skip confirmation).
[C 13:11:26.768 NotebookApp]
To access the notebook, open this file in a browser:
file:///C:/Users/Project/AppData/Roaming/jupyter/runtime/nbserver-3064-o
pen.html
Or copy and paste one of these URLs:
http://localhost:8888/?token=28e7406ee648d631648f9b8c53e1f3027f5eb30516c
cf15f
[I 13:11:56.237 NotebookApp] Creating new notebook in
[I 13:12:02.401 NotebookApp] Kernel started: 55d8fb5e-2fe7-4d4b-a1d3-a11b0b7e7e7
d
[I 13:12:05.242 NotebookApp] Adapting to protocol v5.1 for kernel 55d8fb5e-2fe7-
4d4b-a1d3-a11b0b7e7e7d
And the image where kernel is always busy
kernel busy
I was also getting the same issue, I tried a lot of different stuff but nothing seemed to help me out. Ultimately, a Kernel Restart instead of Kernel Interrupt helped me out! The kernel restarted and I was able to run the kernels as usual.
I think this is just a workaround if someone finds the real solution please do let us know!
I has the same issue because I started it as below
jupyter notebook --gateway-url=http://my-domain.com:8888
but I remove geteway-url param then the issue was gone
I know that you didn't make this very same mistake like me but I hope this gives you some clues
I am running Ubuntu 64-bit and using IPython from the Anaconda distribution. When I type "ipython notebook" in terminal, everything starts up as it should. But when I create a new notebook, or open an existing one, the kernel dies, tries to restart, and fails.
Here is the info from terminal for the entire session, with the errors:
[W 08:54:43.010 NotebookApp] ipywidgets package not installed. Widgets are unavailable.
[I 08:54:43.018 NotebookApp] Serving notebooks from local directory: /home/eric
[I 08:54:43.018 NotebookApp] 0 active kernels
[I 08:54:43.018 NotebookApp] The IPython Notebook is running at: http://localhost:8888/
[I 08:54:43.018 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
Created new window in existing browser session.
[I 08:54:47.720 NotebookApp] Creating new notebook in
[W 08:54:48.468 NotebookApp] 404 GET /nbextensions/widgets/notebook/js/extension.js?v=20150825085443 (127.0.0.1) 5.44ms referer=http://localhost:8888/notebooks/Untitled2.ipynb?kernel_name=python2
[I 08:54:48.529 NotebookApp] Kernel started: e595c923-cc96-4ab7-ae39-d2fe4eac1261
[I 08:54:51.531 NotebookApp] KernelRestarter: restarting kernel (1/5)
[W 08:54:58.554 NotebookApp] Timeout waiting for kernel_info reply from e595c923-cc96-4ab7-ae39-d2fe4eac1261
[I 08:55:00.535 NotebookApp] KernelRestarter: restarting kernel (1/5)
WARNING:root:kernel e595c923-cc96-4ab7-ae39-d2fe4eac1261 restarted
*** stack smashing detected ***: /home/eric/anaconda/bin/python terminated
Aborted (core dumped)
When I use IPython (without the html) from the terminal, everything works fine. I have reinstalled IPython, but that did not change anything. Any help is very much appreciated. Thanks!
Try to run
import socket
print( '127.0.0.1 ' + socket.gethostname() + '.local' )
And add output to /etc/hosts
It will help if problem in socket.gethostbyname_ex
Related question gethostbyname_ex(hostname) extremely slow
Also this may help
conda remove pyzmq
conda install pyzmq=14.6.0
https://github.com/jupyter/notebook/issues/297