-
Notifications
You must be signed in to change notification settings - Fork 287
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
Debugging Jupyter notebooks is unresponsive #9443
Comments
Thanks for the bug. Can you print out the following?
There are issues with the latest IPython on Python 3.10 with regards to debugging. See this issue here: Otherwise if you could include your jupyter output, that might show where it's hanging. |
Hi, I asked a colleague which has the same laptop and the same OS to repeat the experiment in order to discard there was something related to the Apple M1 chip. He uses VS Code for other languages and had no python tools, so he installed them from scratch. And it worked on his computer!! He executed the following statements:
and the results are:
So I tried to update my ipykernel version and ipython to his versions. I couldn't do with conda install but I was able with pip install. However, nothing really changed. I attach the Jupyter output as you asked, however, it's totally empty :-/ |
Jupyter output is totally empty? What is this setting set to?
It should default to info. There should be a LOT of output in that tab. |
Totally empty. It just shows me the variable explorer, but not the logs, even though I have configured it. This is my settings.json variables related to jupyter:
Not sure what to change or what else can I test, I'm running out of ideas :-/ |
I believe you're looking at the wrong tab. There's a 'jupyter' tab that has the variables in it. There's an output tab with a 'jupyter' in the dropdown. That output tab is the one that should contain the debug output we generate. Can you change the logging level to 'verbose' too? That will show more information. |
The plot problem would be separate. We can look into that after we solve the debugging issue. Or you can log another issue for it. This message here:
This means we started debugging but didn't exit correctly. Did it work partially? Can you include the full log output? It might indicate what happened before. |
I mentioned the plot issue because maybe it points us that the problem is in the Jupyter extension. I will try to uninstall it and install it again to see if there is any change. About that message: it appeared the second time I tried to debug the cell. First time I used the hover button at the right, thus receiving the message:
then I pressed the debugging button at left, and received:
So the first time there was not any debugging process (I closed vs code and open it and restarted the python kernel before recording) and the second time it seems that the button triggered the debugging process but it didn't start successfully, so some things were initiated and others not |
The button should cause us to attach to the kernel. The message I mentioned means we think we're already attached to the kernel. The full output log should show why we think that's the case (or at least more information). |
This is the log since I pressed the Restart kernel button. The last event (the warning) happened when I clicked the debug button
|
The beginning of the log would still be helpful. It tells me what the version of the python extension is and what support there is for some things that might be affecting this. I'm starting to suspect this too:
There are 4 (sometimes 5) channels that get opened with a kernel. One of them is the 'control' channel. That's the channel used for 'debug' messages. Not sure why/how the 'control' channel wouldn't be there. But I need to know if your implementation is using our direct kernel support (where we allocate control channel) or is it talking through a jupyter that's running. The beginning of your log will tell me that. |
Ah sorry, I though the rest of the log was unrelated and I didn't want to add more clutter. I'm going to paste the full logs since the opening of the file Visual Studio Code (1.66.0, undefined, desktop)
Jupyter Extension Version: 2022.3.1000901801.
Python Extension Version: 2022.4.1.
Workspace folder ~/Documents/Code/prueba_vs
Error 17:56:04: Exception while attempting zmq : [Error: No native build was found for platform=darwin arch=arm64 runtime=electron abi=101 uv=1 armv=8 libc=glibc node=16.13.0 electron=17.2.0
loaded from: /Users/a0827436/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/node_modules/zeromq
at Function.load.path (/Users/a0827436/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/node_modules/node-gyp-build/index.js:1:3073)
at load (/Users/a0827436/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/node_modules/node-gyp-build/index.js:1:625)
at Object.<anonymous> (/Users/a0827436/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/node_modules/zeromq/lib/native.js:1:198)
at Module.u._compile (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/loader.js:4:1313)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1216:10)
at Module.load (node:internal/modules/cjs/loader:1035:32)
at Module._load (node:internal/modules/cjs/loader:876:12)
at Function.c._load (node:electron/js2c/asar_bundle:5:13331)
at Function.i._load (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:104:32156)
at Function.E._load (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:104:28749)
at Function.g._load (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:99:61429)
at Module.require (node:internal/modules/cjs/loader:1059:19)
at h (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/loader.js:4:699)
at Object.<anonymous> (/Users/a0827436/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/node_modules/zeromq/lib/index.js:1:144)
at Module.u._compile (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/loader.js:4:1313)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1216:10)
at Module.load (node:internal/modules/cjs/loader:1035:32)
at Module._load (node:internal/modules/cjs/loader:876:12)
at Function.c._load (node:electron/js2c/asar_bundle:5:13331)
at Function.i._load (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:104:32156)
at Function.E._load (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:104:28749)
at Function.g._load (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:99:61429)
at Module.require (node:internal/modules/cjs/loader:1059:19)
at h (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/loader.js:4:699)
at Object.92747 (/Users/a0827436/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/extension.js:2:3851668)
at __webpack_require__ (/Users/a0827436/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/extension.js:2:4533298)
at u.zmqSupported (/Users/a0827436/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/extension.js:2:535364)
at u.isSupportedForLocalLaunch (/Users/a0827436/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/extension.js:2:535107)
at u.get isSupported [as isSupported] (/Users/a0827436/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/extension.js:2:535017)
at t.registerTypes (/Users/a0827436/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/extension.js:2:545810)
at /Users/a0827436/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/extension.js:2:4537617
at /Users/a0827436/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/extension.js:2:4538435
at /Users/a0827436/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/extension.js:2:4538443
at e.activate (/Users/a0827436/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/out/extension.js:2:4538565)
at Function._callActivateOptional (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:90:16070)
at Function._callActivate (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:90:15731)
at /Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:90:13549
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async g._activate (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:85:8154)
at async g._waitForDepsThenActivate (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:85:8096)
at async g._initialize (/Applications/Visual Studio Code.app/Contents/Resources/app/out/vs/workbench/api/node/extensionHostProcess.js:85:7460)]
User belongs to experiment group 'jupyterTest'
User belongs to experiment group 'jupyterEnhancedDataViewer'
Info 17:56:04: Old kernelspecs (created by Jupyter extension) stored in directory /Users/a0827436/Library/Jupyter/kernels/__old_vscode_kernelspecs
Info 17:56:04: Attempting to start a server because of preload conditions ...
Info 17:56:04: Checking for server existence.
Info 17:56:04: Checking for server usability.
Info 17:56:04: Preferred kernel connection found in cache .jvsc74a57bd00ae1d00ff25ead88e48d8a8ee03004feb228aa5ded9abefd5da87e5262bb43a6./Users/a0827436/opt/anaconda3/envs/general/python./Users/a0827436/opt/anaconda3/envs/general/python.-m#ipykernel_launcher
Info 17:56:04: PreferredConnection: .jvsc74a57bd00ae1d00ff25ead88e48d8a8ee03004feb228aa5ded9abefd5da87e5262bb43a6./Users/a0827436/opt/anaconda3/envs/general/python./Users/a0827436/opt/anaconda3/envs/general/python.-m#ipykernel_launcher found for NotebookDocument: ~/Documents/Code/prueba_vs/main.ipynb
Info 17:56:04: TargetController found ID: .jvsc74a57bd00ae1d00ff25ead88e48d8a8ee03004feb228aa5ded9abefd5da87e5262bb43a6./Users/a0827436/opt/anaconda3/envs/general/python./Users/a0827436/opt/anaconda3/envs/general/python.-m#ipykernel_launcher for document ~/Documents/Code/prueba_vs/main.ipynb
Info 17:56:04: Setting controller affinity for ~/Documents/Code/prueba_vs/main.ipynb .jvsc74a57bd00ae1d00ff25ead88e48d8a8ee03004feb228aa5ded9abefd5da87e5262bb43a6./Users/a0827436/opt/anaconda3/envs/general/python./Users/a0827436/opt/anaconda3/envs/general/python.-m#ipykernel_launcher
Info 17:56:04: Setting setActiveController for ~/Documents/Code/prueba_vs/main.ipynb
Info 17:56:04: KernelProvider switched kernel to id = .jvsc74a57bd00ae1d00ff25ead88e48d8a8ee03004feb228aa5ded9abefd5da87e5262bb43a6./Users/a0827436/opt/anaconda3/envs/general/python./Users/a0827436/opt/anaconda3/envs/general/python.-m#ipykernel_launcher
Info 17:56:04: Starting Notebook in kernel.ts id = .jvsc74a57bd00ae1d00ff25ead88e48d8a8ee03004feb228aa5ded9abefd5da87e5262bb43a6./Users/a0827436/opt/anaconda3/envs/general/python./Users/a0827436/opt/anaconda3/envs/general/python.-m#ipykernel_launcher for ~/Documents/Code/prueba_vs/main.ipynb
Info 17:56:04: Process Execution: > ~/opt/anaconda3/envs/general/bin/python -m pip list
> ~/opt/anaconda3/envs/general/bin/python -m pip list
Info 17:56:05: Experiment status for python is {"enabled":true,"optInto":[],"optOutFrom":[]}
Info 17:56:05: Creating controller for jupyter-notebook with interpreter ~/opt/anaconda3/envs/general/bin/python
Info 17:56:05: Process Execution: > ~/opt/anaconda3/envs/general/bin/python -c "import jupyter"
> ~/opt/anaconda3/envs/general/bin/python -c "import jupyter"
Info 17:56:05: Process Execution: > ~/opt/anaconda3/envs/general/bin/python -c "import notebook"
> ~/opt/anaconda3/envs/general/bin/python -c "import notebook"
Info 17:56:05: Registering dummy command feature
Info 17:56:05: Process Execution: > ~/opt/anaconda3/envs/general/bin/python -m jupyter kernelspec --version
> ~/opt/anaconda3/envs/general/bin/python -m jupyter kernelspec --version
Info 17:56:05: Starting notebook server.
Info 17:56:05: Connecting to server
Info 17:56:05: Launching server
Info 17:56:05: Starting Notebook
Info 17:56:06: Generating custom default config at /var/folders/61/29v0t64d6cv8jsbdmjc99wfw0000gn/T/24e5fac4-f0ef-42b9-9c0c-ee7e448aab48/jupyter_notebook_config.py
Info 17:56:06: Starting Jupyter Notebook
Starting Jupyter from ~/opt/anaconda3/envs/general/bin/python with command line --no-browser --notebook-dir="/Users/a0827436/Documents/Code/prueba_vs" --KernelManager.autorestart=False --config=/var/folders/61/29v0t64d6cv8jsbdmjc99wfw0000gn/T/24e5fac4-f0ef-42b9-9c0c-ee7e448aab48/jupyter_notebook_config.py --NotebookApp.iopub_data_rate_limit=10000000000.0
Info 17:56:06: Creating daemon pool for ~/opt/anaconda3/envs/general/bin/python with env variables count 51
Info 17:56:06: Process Execution: > ~/opt/anaconda3/envs/general/bin/python -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v --ppid 78465
> ~/opt/anaconda3/envs/general/bin/python -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v --ppid 78465
Info 17:56:06: Process Execution: > ~/opt/anaconda3/envs/general/bin/python -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v --ppid 78465
> ~/opt/anaconda3/envs/general/bin/python -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v --ppid 78465
Info 17:56:06: Process Execution: > ~/opt/anaconda3/envs/general/bin/python -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v --ppid 78465
> ~/opt/anaconda3/envs/general/bin/python -m vscode_datascience_helpers.daemon --daemon-module=vscode_datascience_helpers.jupyter_daemon -v --ppid 78465
Info 17:56:06: Process Execution: > ~/opt/anaconda3/envs/general/bin/python (daemon) -m jupyter notebook --no-browser --notebook-dir="/Users/a0827436/Documents/Code/prueba_vs" --KernelManager.autorestart=False --config=/var/folders/61/29v0t64d6cv8jsbdmjc99wfw0000gn/T/24e5fac4-f0ef-42b9-9c0c-ee7e448aab48/jupyter_notebook_config.py --NotebookApp.iopub_data_rate_limit=10000000000.0
> ~/opt/anaconda3/envs/general/bin/python (daemon) -m jupyter notebook --no-browser --notebook-dir="/Users/a0827436/Documents/Code/prueba_vs" --KernelManager.autorestart=False --config=/var/folders/61/29v0t64d6cv8jsbdmjc99wfw0000gn/T/24e5fac4-f0ef-42b9-9c0c-ee7e448aab48/jupyter_notebook_config.py --NotebookApp.iopub_data_rate_limit=10000000000.0
Info 17:56:06: Waiting for Jupyter Notebook
/Users/a0827436/opt/anaconda3/envs/general/lib/python3.9/site-packages/traitlets/traitlets.py:2202: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use '/Users/a0827436/Documents/Code/prueba_vs' instead of '"/Users/a0827436/Documents/Code/prueba_vs"' if you require traitlets >=5.
warn(
Info 17:56:07: /Users/a0827436/opt/anaconda3/envs/general/lib/python3.9/site-packages/traitlets/traitlets.py:2202: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use '/Users/a0827436/Documents/Code/prueba_vs' instead of '"/Users/a0827436/Documents/Code/prueba_vs"' if you require traitlets >=5.
warn(
[I 17:56:07.770 NotebookApp] [jupyter_nbextensions_configurator] enabled 0.4.1
Info 17:56:07: /Users/a0827436/opt/anaconda3/envs/general/lib/python3.9/site-packages/traitlets/traitlets.py:2202: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use '/Users/a0827436/Documents/Code/prueba_vs' instead of '"/Users/a0827436/Documents/Code/prueba_vs"' if you require traitlets >=5.
warn(
[I 17:56:07.770 NotebookApp] [jupyter_nbextensions_configurator] enabled 0.4.1
[I 17:56:07.778 NotebookApp] Serving notebooks from local directory: /Users/a0827436/Documents/Code/prueba_vs
Info 17:56:07: /Users/a0827436/opt/anaconda3/envs/general/lib/python3.9/site-packages/traitlets/traitlets.py:2202: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use '/Users/a0827436/Documents/Code/prueba_vs' instead of '"/Users/a0827436/Documents/Code/prueba_vs"' if you require traitlets >=5.
warn(
[I 17:56:07.770 NotebookApp] [jupyter_nbextensions_configurator] enabled 0.4.1
[I 17:56:07.778 NotebookApp] Serving notebooks from local directory: /Users/a0827436/Documents/Code/prueba_vs
[I 17:56:07.778 NotebookApp] The Jupyter Notebook is running at:
Info 17:56:07: /Users/a0827436/opt/anaconda3/envs/general/lib/python3.9/site-packages/traitlets/traitlets.py:2202: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use '/Users/a0827436/Documents/Code/prueba_vs' instead of '"/Users/a0827436/Documents/Code/prueba_vs"' if you require traitlets >=5.
warn(
[I 17:56:07.770 NotebookApp] [jupyter_nbextensions_configurator] enabled 0.4.1
[I 17:56:07.778 NotebookApp] Serving notebooks from local directory: /Users/a0827436/Documents/Code/prueba_vs
[I 17:56:07.778 NotebookApp] The Jupyter Notebook is running at:
[I 17:56:07.778 NotebookApp] http://localhost:8888/?token=9cd86e75c91991f35cca7917e3323d8b04c148a778949dc2
Info 17:56:07: /Users/a0827436/opt/anaconda3/envs/general/lib/python3.9/site-packages/traitlets/traitlets.py:2202: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use '/Users/a0827436/Documents/Code/prueba_vs' instead of '"/Users/a0827436/Documents/Code/prueba_vs"' if you require traitlets >=5.
warn(
[I 17:56:07.770 NotebookApp] [jupyter_nbextensions_configurator] enabled 0.4.1
[I 17:56:07.778 NotebookApp] Serving notebooks from local directory: /Users/a0827436/Documents/Code/prueba_vs
[I 17:56:07.778 NotebookApp] The Jupyter Notebook is running at:
[I 17:56:07.778 NotebookApp] http://localhost:8888/?token=9cd86e75c91991f35cca7917e3323d8b04c148a778949dc2
Info 17:56:07: Process Execution: > ~/opt/anaconda3/envs/general/bin/python (daemon) ~/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/pythonFiles/vscode_datascience_helpers/getServerInfo.py
> ~/opt/anaconda3/envs/general/bin/python (daemon) ~/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/pythonFiles/vscode_datascience_helpers/getServerInfo.py
[I 17:56:07.778 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
Info 17:56:07: /Users/a0827436/opt/anaconda3/envs/general/lib/python3.9/site-packages/traitlets/traitlets.py:2202: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use '/Users/a0827436/Documents/Code/prueba_vs' instead of '"/Users/a0827436/Documents/Code/prueba_vs"' if you require traitlets >=5.
warn(
[I 17:56:07.770 NotebookApp] [jupyter_nbextensions_configurator] enabled 0.4.1
[I 17:56:07.778 NotebookApp] Serving notebooks from local directory: /Users/a0827436/Documents/Code/prueba_vs
[I 17:56:07.778 NotebookApp] The Jupyter Notebook is running at:
[I 17:56:07.778 NotebookApp] http://localhost:8888/?token=9cd86e75c91991f35cca7917e3323d8b04c148a778949dc2
[I 17:56:07.778 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
Info 17:56:07: Process Execution: > ~/opt/anaconda3/envs/general/bin/python (daemon) ~/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/pythonFiles/vscode_datascience_helpers/getServerInfo.py
> ~/opt/anaconda3/envs/general/bin/python (daemon) ~/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/pythonFiles/vscode_datascience_helpers/getServerInfo.py
[C 17:56:07.782 NotebookApp]
To access the notebook, open this file in a browser:
file:///Users/a0827436/Library/Jupyter/runtime/nbserver-78655-open.html
Or copy and paste one of these URLs:
http://localhost:8888/?token=9cd86e75c91991f35cca7917e3323d8b04c148a778949dc2
Info 17:56:07: /Users/a0827436/opt/anaconda3/envs/general/lib/python3.9/site-packages/traitlets/traitlets.py:2202: FutureWarning: Supporting extra quotes around strings is deprecated in traitlets 5.0. You can use '/Users/a0827436/Documents/Code/prueba_vs' instead of '"/Users/a0827436/Documents/Code/prueba_vs"' if you require traitlets >=5.
warn(
[I 17:56:07.770 NotebookApp] [jupyter_nbextensions_configurator] enabled 0.4.1
[I 17:56:07.778 NotebookApp] Serving notebooks from local directory: /Users/a0827436/Documents/Code/prueba_vs
[I 17:56:07.778 NotebookApp] The Jupyter Notebook is running at:
[I 17:56:07.778 NotebookApp] http://localhost:8888/?token=9cd86e75c91991f35cca7917e3323d8b04c148a778949dc2
[I 17:56:07.778 NotebookApp] Use Control-C to stop this server and shut down all kernels (twice to skip confirmation).
[C 17:56:07.782 NotebookApp]
To access the notebook, open this file in a browser:
file:///Users/a0827436/Library/Jupyter/runtime/nbserver-78655-open.html
Or copy and paste one of these URLs:
http://localhost:8888/?token=9cd86e75c91991f35cca7917e3323d8b04c148a778949dc2
Info 17:56:08: Connecting to process server
Info 17:56:08: Connecting server kernel http://localhost:8888/
Info 17:56:08: Creating server with settings : {"baseUrl":"http://localhost:8888/","appUrl":"","wsUrl":"ws://localhost:8888/","token":"9cd86e75c91991f35cca7917e3323d8b04c148a778949dc2","appendToken":true,"init":{"cache":"no-store","credentials":"same-origin"}}
Info 17:56:08: Connection complete server
Info 17:56:08: Server started.
Info 17:56:08: Process Execution: > ~/opt/anaconda3/envs/general/bin/python (daemon) ~/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/pythonFiles/vscode_datascience_helpers/getServerInfo.py
> ~/opt/anaconda3/envs/general/bin/python (daemon) ~/.vscode/extensions/ms-toolsai.jupyter-2022.3.1000901801/pythonFiles/vscode_datascience_helpers/getServerInfo.py
[I 17:56:08.326 NotebookApp] Creating new notebook in
/Users/a0827436/opt/anaconda3/envs/general/lib/python3.9/json/encoder.py:257: UserWarning: date_default is deprecated since jupyter_client 7.0.0. Use jupyter_client.jsonutil.json_default.
return _iterencode(o, 0)
Info 17:56:08: installMissingDependencies ~/opt/anaconda3/envs/general/bin/python, ui.disabled=true for resource ~/Documents/Code/prueba_vs/main.ipynb
Info 17:56:08: Process Execution: > ~/opt/anaconda3/envs/general/bin/python -c "import ipykernel"
> ~/opt/anaconda3/envs/general/bin/python -c "import ipykernel"
Info 17:56:08: Got activated conda env vars ourselves for ~/opt/anaconda3/envs/general/bin/python in 723
Info 17:56:08: Spec argv[0] updated from '/Users/a0827436/opt/anaconda3/envs/general/bin/python' to '~/opt/anaconda3/envs/general/bin/python'
Info 17:56:08: Adding env Variable PYTHONNOUSERSITE to ~/opt/anaconda3/envs/general/bin/python
Info 17:56:08: Starting a new session for kernel id = .jvsc74a57bd00ae1d00ff25ead88e48d8a8ee03004feb228aa5ded9abefd5da87e5262bb43a6./Users/a0827436/opt/anaconda3/envs/general/python./Users/a0827436/opt/anaconda3/envs/general/python.-m#ipykernel_launcher, name = python397jvsc74a57bd00ae1d00ff25ead88e48d8a8ee03004feb228aa5ded9abefd5da87e5262bb43a6 for ~/Documents/Code/prueba_vs/main.ipynb
[I 17:56:08.636 NotebookApp] Kernel started: 1d91a9cc-c5bb-4408-b57a-1e1f03de5e77
Info 17:56:08: Waiting for idle on (kernel): 1d91a9cc-c5bb-4408-b57a-1e1f03de5e77 -> unknown
[W 17:56:08.648 NotebookApp] delete /main-jvsc-3bcc534f-5d73-4145-8a6d-7831ce15232d.ipynb
/Users/a0827436/opt/anaconda3/envs/general/lib/python3.9/json/encoder.py:257: UserWarning: date_default is deprecated since jupyter_client 7.0.0. Use jupyter_client.jsonutil.json_default.
return _iterencode(o, 0)
Info 17:56:09: Finished waiting for idle on (kernel): 1d91a9cc-c5bb-4408-b57a-1e1f03de5e77 -> idle
Info 17:56:09: Started session for kernel .jvsc74a57bd00ae1d00ff25ead88e48d8a8ee03004feb228aa5ded9abefd5da87e5262bb43a6./Users/a0827436/opt/anaconda3/envs/general/python./Users/a0827436/opt/anaconda3/envs/general/python.-m#ipykernel_launcher
Info 17:56:09: Finished connecting kernel .jvsc74a57bd00ae1d00ff25ead88e48d8a8ee03004feb228aa5ded9abefd5da87e5262bb43a6./Users/a0827436/opt/anaconda3/envs/general/python./Users/a0827436/opt/anaconda3/envs/general/python.-m#ipykernel_launcher
Info 17:56:09: UpdateWorkingDirectoryAndPath in Kernel
Info 17:56:09: Executing silently Code (idle) = import site\nsite.addsitedir(site.getusersitepackages())\nimport os\nimport sys\n%cd "/Users/a0827436/Do
Info 17:56:09: Executing silently Code (completed) = import site\nsite.addsitedir(site.getusersitepackages())\nimport os\nimport sys\n%cd "/Users/a0827436/Do
Info 17:56:09: Waiting for idle on (kernel): 1d91a9cc-c5bb-4408-b57a-1e1f03de5e77 -> idle
Info 17:56:09: Finished waiting for idle on (kernel): 1d91a9cc-c5bb-4408-b57a-1e1f03de5e77 -> idle
Info 17:56:20: Restart requested file:///Users/a0827436/Documents/Code/prueba_vs/main.ipynb
Info 17:56:20: Executing silently Code (idle) = import sys\nprint(sys.executable)
Info 17:56:20: Executing silently Code (completed) = import sys\nprint(sys.executable)
Info 17:56:20: UpdateWorkingDirectoryAndPath in Kernel
Info 17:56:20: Executing silently Code (idle) = import site\nsite.addsitedir(site.getusersitepackages())\nimport os\nimport sys\n%cd "/Users/a0827436/Do
Info 17:56:20: Executing silently Code (completed) = import site\nsite.addsitedir(site.getusersitepackages())\nimport os\nimport sys\n%cd "/Users/a0827436/Do
Info 17:56:20: Waiting for idle on (kernel): 1d91a9cc-c5bb-4408-b57a-1e1f03de5e77 -> idle
Info 17:56:20: Finished waiting for idle on (kernel): 1d91a9cc-c5bb-4408-b57a-1e1f03de5e77 -> idle
Info 17:56:25: Execute Cells request 5
Info 17:56:25: Execute Cell 5 ~/Documents/Code/prueba_vs/main.ipynb
Info 17:56:26: Cell 5 executed with state Success
Info 17:56:27: Execute Cells request 6
Info 17:56:27: Execute Cell 6 ~/Documents/Code/prueba_vs/main.ipynb
Info 17:56:27: Cell 6 executed with state Success
Info 17:56:28: Execute Cells request 7
Info 17:56:28: Execute Cell 7 ~/Documents/Code/prueba_vs/main.ipynb
Info 17:56:28: Cell 7 executed with state Success
Info 18:00:41: Executing silently Code (idle) = import ipykernel\nprint(ipykernel.__version__)
Info 18:00:41: Executing silently Code (completed) = import ipykernel\nprint(ipykernel.__version__)
[W 18:00:41.414 NotebookApp] No such channel: 'control' |
Thanks that helps. My guess is it's this problem: https://discourse.jupyter.org/t/missing-debugger-option/9851/7 It sounds to me like you have an older version of jupyter installed that doesn't fully support debugging. (Or we're picking up dlls from the wrong location) You could try:
|
I have pretty much the same problem (Ubuntu, latest version of vscode 1.66). I can not debug, but at least the debug console notices that I have pressed the debug button. But there is no floating button panel appearing, there is no line highlighting, I can not step forward, and I can not cancel the debugging which has started in the background someway. The only way to cancel is to start another debugging so both of the debugging processes appear in the left panel, so I can disconnect them. I can share more logs too if you would like more info. |
@becczor please create a separate issue. Your problem doesn't sound like the same root cause. Your problem might be the version of IPython you have installed where debugging didn't work correctly on Python 3.10. |
Environment data
Expected behaviour
After checking all the tips recommended here I tried to debug a simple cell in a Jupyter notebook and I expected to be able of executing line by line.
Actual behaviour
The run by line functionality and the debug cell functionality are not working, nothing gets debugged, not any single line is executed.
Steps to reproduce:
Same behaviour using "debug cell".
The text was updated successfully, but these errors were encountered: