Open Sjlver opened 2 weeks ago
Thank you for reporting this issue. Please can you verify this issue repros with
Create a new folder, a venv, start code, create a notebook. Add some content to the notebook. My test case contains the two cells below. Do a bit of editing, including adding things that would cause syntax errors.
So I can try to repro this at my end, please can you
start code
? Do you run cell 1 and then cell 2 and no more executions if, not please can you elaborateThis issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.
Happy Coding!
Sorry for the delay on this; I wasn't able to try again sooner.
I can confirm that this still happens if all extensions except Python and Jupyter are disabled.
I'm currently using the latest versions (I think):
Version: 1.95.2 (user setup)
Commit: e8653663e8840adaf45af01eab5c627a5af81807
Date: 2024-11-07T11:07:22.054Z
Electron: 32.2.1
ElectronBuildId: 10427718
Chromium: 128.0.6613.186
Node.js: 20.18.0
V8: 12.8.374.38-electron.0
OS: Windows_NT x64 10.0.22631
Name: Jupyter
Id: ms-toolsai.jupyter
Description: Jupyter notebook support, interactive programming and computing that supports Intellisense, debugging and more.
Version: 2024.10.0
Publisher: Microsoft
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=ms-toolsai.jupyter
Name: Python
Id: ms-python.python
Description: Python language support with extension access points for IntelliSense (Pylance), Debugging (Python Debugger), linting, formatting, refactoring, unit tests, and more.
Version: 2024.20.0
Publisher: Microsoft
VS Marketplace Link: https://marketplace.visualstudio.com/items?itemName=ms-python.python
By start code
, I mean typing code .
into my WSL2 terminal, after having activated the venv. This starts VSCode.
Normally, it takes some time for the problem to manifest. I've seen it once on the very first run of a cell. More often, I work in notebooks for a few minutes, and then I notice the problem. I haven't found a deterministic trigger yet, sorry.
I found that this reproduces consistently if I just wait for a while (a few minutes). No other user action seems to be needed.
I've just tested this with a notebook where the single cell was:
Console shows both:
ERR adding EXISTING notebook file:///home/jbw/redacted/py/test.ipynb : Error: adding EXISTING notebook file:///home/jbw/projects/healthlearn/py/test.ipynb
ERR NO notebook document for 'file:///home/jbw/redacted/py/test.ipynb': Error: NO notebook document for 'file:///home/jbw/projects/healthlearn/py/test.ipynb'
Jupyter: show output
Visual Studio Code (1.95.2, wsl, desktop)
Jupyter Extension Version: 2024.10.0.
Python Extension Version: 2024.20.0.
Pylance Extension not installed.
Platform: linux (x64).
Temp Storage folder ~/.vscode-server/data/User/globalStorage/ms-toolsai.jupyter/version-2024.10.0
Workspace folder ~/redacted/py, Home = /home/jbw
20:26:07.341 [info] Starting Kernel (Python Path: ~/redacted/py/.venv/bin/python, Venv, 3.10.12) for '~/redacted/py/test.ipynb' (disableUI=true)
20:26:08.067 [info] Process Execution: ~/redacted/py/.venv/bin/python -m pip list
20:26:08.086 [info] Process Execution: ~/redacted/py/.venv/bin/python -c "import ipykernel; print(ipykernel.__version__); print("5dc3a68c-e34e-4080-9c3e-2a532b2ccb4d"); print(ipykernel.__file__)"
20:26:08.100 [info] Process Execution: ~/redacted/py/.venv/bin/python -m ipykernel_launcher --f=/home/~/.local/share/jupyter/runtime/kernel-v342e11cad248a2f91373b16eb1accfcb7d8f1aa52.json
> cwd: //home/~/redacted/py
20:26:09.064 [info] Kernel successfully started
20:26:09.072 [info] Process Execution: ~/redacted/py/.venv/bin/python /home/~/.vscode-server/extensions/ms-toolsai.jupyter-2024.10.0-linux-x64/pythonFiles/printJupyterDataDir.py
20:29:04.834 [info] Dispose Kernel '~/redacted/py/test.ipynb' associated with '~/redacted/py/test.ipynb'
@DonJayamanne Would you mind re-opening this auto-closed issue? Thanks! Let me know if you need further information from me.
Same issue here. I'm constantly running into it, few cells into execution, or 1-2 min, it crashes seemingly out of nowhere. It's not workload specific.
I have limited time to troubleshoot, not in a position to disable all extensions. I'll post more info when I can (my workaround is to not use jupyter in VSCode), just wanted to chime in so it gets visibility since it's quite annoying.
Hi, I am seeing the same issue and heard reports from at least four colleagues about the same thing. I see similar behavior: a few minutes after opening the Notebook, it crashes out of nowhere, I can't see related error messages and when I try to execute cells again I get the No Document message. I noticed that syntax highlighting turns off so I thought it is related to pylance. Disabling pylance, however, does not resolve it.
Please can you disable all extensions except for Python, Jupyter and Notebook Renderers. Let me know if that makes a difference.
Applies To
What happened?
The notebook hangs (Go To button has a spinner, all other buttons do nothing).
This issue was originally reported at https://github.com/microsoft/pylance-release/issues/6330. I'm moving it here since it also happens with Pylance disabled. Apologies if this isn't the right place.
It is tricky to provide exact reproduction instructions, even though the problem starts to happen quite consistently after a few minutes. My best guess is that the problem happens when a syntax error is introduced:
Notebook state:
Something like this appears in the "Problems" tab:
Python language server output shows
2024-10-29 10:24:14.352 [info] [Error - 10:24:14 AM] (29738) Received change text document command for closed file file:///home/jbw/repro/repro.ipynb.py#W1sdnNjb2RlLXJlbW90ZQ%3D%3D
Dev tools show:
VS Code Version
Version: 1.94.2 (user setup) Commit: 384ff7382de624fb94dbaf6da11977bba1ecd427 Date: 2024-10-09T16:08:44.566Z Electron: 30.5.1 ElectronBuildId: 10262041 Chromium: 124.0.6367.243 Node.js: 20.16.0 V8: 12.4.254.20-electron.0 OS: Windows_NT x64 10.0.22631
Jupyter Extension Version
2024.9.1
Jupyter logs
No response
Coding Language and Runtime Version
Python 3.10.12
Language Extension Version (if applicable)
2024.16.1
Anaconda Version (if applicable)
No response
Running Jupyter locally or remotely?
Local