question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Failed to connect to Jupyter notebook.

See original GitHub issue

Hi, I try to connect to a server running on port 8888 (can be a local server or a forwarded ssh port).

I tried to specify multiple URI, like http://localhost:8888/ and http://127.0.0.1:8888/, but I always get the same error Failed to connect to Jupyter notebook..

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:27 (12 by maintainers)

github_iconTop GitHub Comments

1reaction
louisabrahamcommented, Jan 27, 2019

Hi, sorry I didn’t have time.

I just tested and it works. I did the following:

  • ssh -L 8887:localhost:8888 remote
  • (on remote) jupyter notebook
  • I copied the url http://localhost:8888/?token={long hexa string} and replaced 8888 by 8887
  • Python: Specify Jupyter server URI > Type in the URI for the Jupyter server
  • I pasted the url
  • Just ran a cell and it worked (I called multiprocessing.cpu_count() to be sure)

I don’t have the Don Jayamanne extension anymore.

1reaction
IanMatthewHuffcommented, Jan 25, 2019

@EED85 Thanks for getting back here. I’ve reopened the issue. Sorry about how hard this is to diagnose, it’s just tricky when I don’t have a local repro of the issues yet. I appreciate the help.

One think to check here. The Jupyter support is actually part of the main Python extension currently. The Jupyter extension with Don Jayamanne is not the same thing. That extension is actually discontinued as the functionality is rolling into the main extension. Could you try the scenario again after disabling the Jupyter extension? The two of them do similar things and they may be interfering with each other.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Jupyter Notebook Kernel Not Connecting: Connection Failed
the original issue was caused by using pip in a conda environment to install some unrelated package (google.colab), which then messed up the ......
Read more >
Anaconda jupyter notebook "connection failed" error
I'm facing the same error after re-installing Anaconda and found the solution here: https://github.com/jupyter/notebook/issues/4909.
Read more >
Connection to the notebook server could not be established........
Hi guys, i am trying to open the d2l notebook for but kernel does not connect. I uninstalled and reinstalled everything but getting...
Read more >
How to Fix Kernel Error in Jupyter Notebook
So, a kernel error occurs when Jupyter fails to connect with a specific version of Python. When the system encounters difficulties locating ...
Read more >
Unable to connect to Jupyter notebook server (Error 404) from ...
A connection to the notebook server could not be established. The notebook will continue trying to reconnect. Check your network connection or ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found