Jupyter kernel restarts when the `ipynb` file is renamed
See original GitHub issueApplies To
- Notebooks (.ipynb files)
- Interactive Window and/or Cell Scripts (.py files with #%% markers)
What happened?
When I rename a notebook I’m working in (by right-clicking the file in the left pane) the Jupyter server restarts. In JupyterLab you can rename a ipynb
file while working on it and I expected the same behaviour in VSCode.
VS Code Version
1.69.2
Jupyter Extension Version
v2022.6.1201981810
Jupyter logs
No response
Coding Language and Runtime Version
Python 3.9.2
Language Extension Version (if applicable)
No response
Anaconda Version (if applicable)
No response
Running Jupyter locally or remotely?
Local
Issue Analytics
- State:
- Created a year ago
- Comments:10 (9 by maintainers)
Top Results From Across the Web
jupyter kernal keeps dying · Issue #1892 · jupyter/notebook
I am trying to work with jupyter notebook, but when I open a file I receive the following error: The kernel has died,...
Read more >python - kernel keeps dying in jupyter notebook
Try running the code that is causing the kernel to die in a terminal or in ipython. One common issue I have identified...
Read more >Run Jupyter notebooks in your workspace - Azure
Learn how run a Jupyter notebook without leaving your workspace in Azure Machine Learning studio.
Read more >Notebooks — JupyterLab 3.6.0b0 documentation
Jupyter notebooks are documents that combine live runnable code with narrative text (Markdown), equations (LaTeX), images, interactive visualizations and other ...
Read more >How to Write and Run Code in Jupyter Notebook
That's just good practice whenever you create any files that contain code. Renaming the Jupyter notebook. Image Source: Screenshot of Jupyter ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@IanMatthewHuff I’d like to keep this open and sepearate from #8215 They are different.
A
.I’ve assigned this to you and me, as we’ll need to work on this together. As it touches both kernel picker as well as kernel state/execution layers. THis PR https://github.com/microsoft/vscode-jupyter/pull/10573 will be required to resolve the problem described in this issue
Can you use
vscode.workspace.onDidRenameFiles
for this?