Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Restarting Jupyter kernel is stuck and never finishes #16328

Open
1 of 2 tasks
marhoy opened this issue Dec 20, 2024 · 0 comments
Open
1 of 2 tasks

Restarting Jupyter kernel is stuck and never finishes #16328

marhoy opened this issue Dec 20, 2024 · 0 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug

Comments

@marhoy
Copy link

marhoy commented Dec 20, 2024

Applies To

  • Notebooks (.ipynb files)
  • Interactive Window and/or Cell Scripts (.py files with #%% markers)

What happened?

Not sure if it related, but dependencies in my project is manager by uv. I have installed ipykernel (8.30.0) as a dev-dependency in the project which uses Python-3.12.8. In the Notebook, I have selected the .venv-kernel as my kernel.

When I start using the Notebook, everything works fine. But after running / restarting it a couple of times, it gets stuck on restarting the kernel. The notification window shows:

Image

And in the Jupyter Output, the last thing to be shown is:

11:00:30.125 [info] Restart requested ~/Projects/olt-chatbot/Testing3.ipynb
11:00:30.146 [info] Process Execution: ~/Projects/olt-chatbot/.venv/bin/python -c "import ipykernel; print(ipykernel.__version__); print("5dc3a68c-e34e-4080-9c3e-2a532b2ccb4d"); print(ipykernel.__file__)"

The problem doesn't occur if I just open the Notebook and then reload it a lot of times. It typically happens after having worked with the Notebook for some minutes, running some code and restarting the Notebooks a couple of times.

I'm sorry I'm not able to describe the problem any better, will continue to investigate reasons...

VS Code Version

Version: 1.96.2 (user setup) Commit: fabdb6a30b49f79a7aba0f2ad9df9b399473380f Date: 2024-12-19T10:22:47.216Z Electron: 32.2.6 ElectronBuildId: 10629634 Chromium: 128.0.6613.186 Node.js: 20.18.1 V8: 12.8.374.38-electron.0 OS: Windows_NT x64 10.0.22631

Jupyter Extension Version

2024.11.0

Jupyter logs

Coding Language and Runtime Version

Python v3.12.8

Language Extension Version (if applicable)

Python extension 2024.22.0

Anaconda Version (if applicable)

No response

Running Jupyter locally or remotely?

N/A or Not sure

@marhoy marhoy added the bug Issue identified by VS Code Team member as probable bug label Dec 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue identified by VS Code Team member as probable bug
Projects
None yet
Development

No branches or pull requests

2 participants