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.

Connecting to existing remote server. Can't find Python Kernel

See original GitHub issue

Environment data

  • VS Code version: 1.60.0
  • Jupyter Extension version: v2021.8.2031190714
  • Python Extension version: v2021.9.1191016588
  • OS: Catalina 10.15.7
  • Python and/or Anaconda version: 3.9.6
  • Type of virtual environment used: venv
  • Jupyter server running: Remote

Expected behaviour

Find and attach to kernel

Actual behaviour

Prompts me to Select kernel for ‘test.ipynb’

Steps to reproduce:

  1. Run jupyter-lab --no-browser
  2. CTRL+SHIFT+P
  3. “Jupyter: Specify local or remote Jupyter Server for connections” image
  4. Click “Existing”
  5. Paste localhost URL image
  6. Try running cell

Logs

jupyter-lab --no-browser [I 2021-09-06 16:53:36.870 ServerApp] jupyterlab | extension was successfully linked. [I 2021-09-06 16:53:37.082 ServerApp] nbclassic | extension was successfully linked. [I 2021-09-06 16:53:37.136 ServerApp] nbclassic | extension was successfully loaded. [I 2021-09-06 16:53:37.138 LabApp] JupyterLab extension loaded from /usr/local/lib/python3.9/site-packages/jupyterlab [I 2021-09-06 16:53:37.138 LabApp] JupyterLab application directory is /usr/local/share/jupyter/lab [I 2021-09-06 16:53:37.143 ServerApp] jupyterlab | extension was successfully loaded. [I 2021-09-06 16:53:37.144 ServerApp] Serving notebooks from local directory: /Users/ischan/workspace/lb-requests [I 2021-09-06 16:53:37.144 ServerApp] Jupyter Server 1.9.0 is running at: [I 2021-09-06 16:53:37.144 ServerApp] http://localhost:8888/lab?token=4d0134d6bd27db80a8b41e48148e4f7f0492153ca1a2b93b [I 2021-09-06 16:53:37.144 ServerApp] or http://127.0.0.1:8888/lab?token=4d0134d6bd27db80a8b41e48148e4f7f0492153ca1a2b93b [I 2021-09-06 16:53:37.144 ServerApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation). [C 2021-09-06 16:53:37.150 ServerApp]

To access the server, open this file in a browser:
    file:///Users/ischan/Library/Jupyter/runtime/jpserver-1687-open.html
Or copy and paste one of these URLs:
    http://localhost:8888/lab?token=4d0134d6bd27db80a8b41e48148e4f7f0492153ca1a2b93b
 or http://127.0.0.1:8888/lab?token=4d0134d6bd27db80a8b41e48148e4f7f0492153ca1a2b93b

[I 2021-09-06 16:53:53.664 ServerApp] Creating new notebook in / [I 2021-09-06 16:53:53.719 ServerApp] Kernel started: f572c4b6-c7c6-43a7-ad1a-71edc479596d [W 2021-09-06 16:53:53.756 ServerApp] delete /default-01fa697e-ca16-4281-a1b0-88af3ed71d9b.ipynb [I 2021-09-06 16:53:54.361 ServerApp] Kernel shutdown: f572c4b6-c7c6-43a7-ad1a-71edc479596d

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
IvanAntipovcommented, Sep 8, 2021

I have the same problem. In my case, the list of available kernels is completely empty. I can’t connect to an existing kernel, nor create a new one. I tested on different Jupyter servers, so the problem is on VS Code side. Problem several weeks ago everything worked well.

0reactions
isaacdchancommented, Sep 9, 2021

Yes now it doesn’t prompt. me to select a kernel the code cell just runs. I’ll close the issue and reopen if it resurfaces.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Cannot find python kernels corresponding to Virtual ...
I've selected "default", letting VSCode starting a server on the local (remote) host, and then the interpeter / kernel was enabled.
Read more >
cant find python kernels or connect to remote jupyter serevr ...
Issue Type: Bug I have been working with notebooks for quite long. For the last couple of weeks, in specific, i have been...
Read more >
How to Install, Run, and Connect to Jupyter Notebook on a ...
To run the Jupyter Notebook server, enter the following command: jupyter notebook.
Read more >
IPython Console — Spyder 5 documentation
To connect to a kernel on a remote machine,. Launch a Spyder kernel on the remote host if one is not already running,...
Read more >
Remote Jupyter Kernel - Paperspace Docs
One way to confirm you are connected to the remote kernel is to confirm you have access to the kernel file system by...
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