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

Debugging Jupyter notebooks is unresponsive #9443

Closed
ricardo-coverwallet opened this issue Mar 22, 2022 · 17 comments
Closed

Debugging Jupyter notebooks is unresponsive #9443

ricardo-coverwallet opened this issue Mar 22, 2022 · 17 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster

Comments

@ricardo-coverwallet
Copy link

Environment data

  • VS Code version: 1.65.2 (Universal) Commit: c722ca6c7eed3d7987c0d5c3df5c45f6b15e77d1
  • Jupyter Extension version (available under the Extensions sidebar): v2022.2.1030672458
  • Python Extension version (available under the Extensions sidebar): v2022.2.1924087327
  • OS (Windows | Mac | Linux distro) and version: macOS Big Sur Version: 11.6.3, Chip Apple M1
  • Python and/or Anaconda version: Anaconda 4.11.0
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): conda environment
  • Jupyter server running: Local | Remote | N/A: Local

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:

  1. Create a new notebook
  2. Add some simple code in a cell
import pandas as pd

df = pd.DataFrame(
                    {
                        'List1': list(range(1,7)),
                        'List2': list(range(5,35, 5)),
                        'List3': ['a', 'b', 'c', 'd', 'e', 'f']
                    }
                )

df['List4'] = [2,2,3,3,4,5]

df.plot('List3', 'List2')
  1. Select a kernel
  2. Press the floating button shown here (run by line)
  3. It appears a clock in the debug icon in the left panel. When clicked there is a moving line under the title "RUND AND DEBUG: RUN".
  4. Nothing more

Same behaviour using "debug cell".

@ricardo-coverwallet ricardo-coverwallet added the bug Issue identified by VS Code Team member as probable bug label Mar 22, 2022
@rchiodo rchiodo added the info-needed Issue requires more information from poster label Mar 22, 2022
@rchiodo
Copy link
Contributor

rchiodo commented Mar 22, 2022

Thanks for the bug.

Can you print out the following?

import ipykernel
print(ipykernel.__version__)
import IPython
print(IPython.__version__)

There are issues with the latest IPython on Python 3.10 with regards to debugging.

See this issue here:
ipython/ipykernel#841

Otherwise if you could include your jupyter output, that might show where it's hanging.

@ricardo-coverwallet
Copy link
Author

Hi rchiodo

These are the versions I'm using
ipykernel = 6.9.1
ipython = 8.0.1
python = 3.9.7

I added a gif, I hope it clarifies where the issue is
vs_code_problem

@rchiodo
Copy link
Contributor

rchiodo commented Mar 22, 2022

That looks like nothing is happening. Almost like those commands aren't supported.

Can you include your jupyter output?

image

@ricardo-coverwallet
Copy link
Author

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:

import ipykernel
print(ipykernel.__version__)
import IPython
print(IPython.__version__)
import sys
print(sys.version)

and the results are:

6.9.2
8.1.1
3.9.10 (main, Jan 15 2022, 11:48:00) 
[Clang 13.0.0 (clang-1300.0.29.3)]

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 :-/

vs_code_problem2

@rchiodo
Copy link
Contributor

rchiodo commented Mar 23, 2022

Jupyter output is totally empty? What is this setting set to?

"jupyter.loggingLevel": "info"

It should default to info. There should be a LOT of output in that tab.

@ricardo-coverwallet
Copy link
Author

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:

    "jupyter.logging.level": "debug",
    "jupyter.debugJustMyCode": false,
    "jupyter.jupyterServerType": "local",
    "jupyter.pylanceHandlesNotebooks": true,
    "jupyter.pythonExportMethod": "commentMagics"

Not sure what to change or what else can I test, I'm running out of ideas :-/

@rchiodo
Copy link
Contributor

rchiodo commented Mar 23, 2022

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.

@ricardo-coverwallet
Copy link
Author

I managed to see the logs, there were in a different tab, now we have a clue:
Apr-06-2022 13-36-14

Sorry for the resolution. These are the logs:

Info 13:38:19: Execute Cells request 5
Info 13:38:19: Execute Cell 5 ~/Documents/Code/prueba_vs/main.ipynb
Info 13:38:20: Cell 5 executed with state Success
Info 13:38:21: Execute Cells request 6
Info 13:38:21: Execute Cell 6 ~/Documents/Code/prueba_vs/main.ipynb
Info 13:38:21: Cell 6 executed with state Success
Info 13:38:22: Execute Cells request 7
Info 13:38:22: Execute Cell 7 ~/Documents/Code/prueba_vs/main.ipynb
Info 13:38:22: Cell 7 executed with state Success
Info 13:38:30: Executing silently Code (idle) = import ipykernel\nprint(ipykernel.__version__)
Info 13:38:30: Executing silently Code (completed) = import ipykernel\nprint(ipykernel.__version__)
[W 13:38:30.226 NotebookApp] No such channel: 'control'
Info 13:38:36: Cannot start debugging. Already debugging this notebook document. Toolbar should update
Info 13:38:44: Executing silently Code (idle) = pass
[W 13:38:44.064 NotebookApp] No such channel: 'control'
Info 13:38:44: Executing silently Code (completed) = pass

I found another issue: I cannot interact with plots, I can't save them. There is not a hover button :-/

@rchiodo
Copy link
Contributor

rchiodo commented Apr 6, 2022

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:

Cannot start debugging. Already debugging this notebook document. Toolbar should update

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.

@ricardo-coverwallet
Copy link
Author

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:

[W 13:38:30.226 NotebookApp] No such channel: 'control'

then I pressed the debugging button at left, and received:

Cannot start debugging. Already debugging this notebook document. Toolbar should update

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

@rchiodo
Copy link
Contributor

rchiodo commented Apr 6, 2022

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).

@ricardo-coverwallet
Copy link
Author

This is the log since I pressed the Restart kernel button. The last event (the warning) happened when I clicked the debug button

Info 16:18:11: Restart requested file:///Users/a0827436/Documents/Code/prueba_vs/Untitled-1.ipynb
Info 16:18:11: Executing silently Code (idle) = import sys\nprint(sys.executable)
Info 16:18:11: Executing silently Code (completed) = import sys\nprint(sys.executable)
Info 16:18:11: UpdateWorkingDirectoryAndPath in Kernel
Info 16:18:11: Executing silently Code (idle) = import site\nsite.addsitedir(site.getusersitepackages())\nimport os\nimport sys\n%cd "/Users/a0827436/Do
Info 16:18:11: Executing silently Code (completed) = import site\nsite.addsitedir(site.getusersitepackages())\nimport os\nimport sys\n%cd "/Users/a0827436/Do
Info 16:18:11: Waiting for idle on (kernel): 03caeb9b-ca8c-405d-a1fe-223c6ee91ff7 -> idle
Info 16:18:11: Finished waiting for idle on (kernel): 03caeb9b-ca8c-405d-a1fe-223c6ee91ff7 -> idle
Info 16:18:21: Execute Cells request 0
Info 16:18:21: Execute Cell 0 ~/Documents/Code/prueba_vs/Untitled-1.ipynb
Info 16:18:22: Cell 0 executed with state Success
Info 16:18:23: Execute Cells request 1
Info 16:18:23: Execute Cell 1 ~/Documents/Code/prueba_vs/Untitled-1.ipynb
Info 16:18:23: Cell 1 executed with state Success
Info 16:18:39: Executing silently Code (idle) = import ipykernel\nprint(ipykernel.version)
Info 16:18:39: Executing silently Code (completed) = import ipykernel\nprint(ipykernel.version)
[W 16:18:39.876 NotebookApp] No such channel: 'control'

@rchiodo
Copy link
Contributor

rchiodo commented Apr 7, 2022

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:

[W 16:18:39.876 NotebookApp] No such channel: 'control'

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.

@ricardo-coverwallet
Copy link
Author

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'

@rchiodo
Copy link
Contributor

rchiodo commented Apr 8, 2022

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:

  • Upgrading jupyter in the conda environment (~/opt/anaconda3/envs/general)
  • Creating a new conda environment with jupyter installed into it but with the latest jupyter bits
  • Printing out the sys.path from a cell to see if it shows the expected paths for loading modules.

@becczor
Copy link

becczor commented Apr 8, 2022

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.

@rchiodo
Copy link
Contributor

rchiodo commented Apr 8, 2022

@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.

@rchiodo rchiodo closed this as completed May 4, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 5, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

4 participants