Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio Code: Debugging of Jupyter Notebooks not working

Unfortunately I am not able to debug Jupyter Notebooks in Visual Studio Code. Maybe somebody has an idea why?

Detailed description:

  • After pressing "F5" the debugger (popup) starts as expected. Everything seems to run fine. "Only" that it doesn't stop at my breakpoints.
  • Debugging normal (i.e. non-jupyter-notebook) python scripts works without problems.
  • I have added the line '"jupyter.experimental.debugging": true,' to my 'settings.json'.
  • I use the latest VScode version 1.60.2.
  • There is only one python version installed on my laptop. Namely the latest anaconda distribution. I've also runned "conda update anaconda", "conda update python" and "pip install ipykernel". It shows that I use "ipykernel: 6.2.0".

Running Debugger

like image 740
Luuu Avatar asked Nov 07 '25 01:11

Luuu


1 Answers

Now it works for me. With pressing "F5" I get the above described wrong behavior. But with pressing "Debug Cell" next to the play button (or Ctrl + Alt + Shift + Enter) it works fine:

enter image description here

enter image description here

like image 129
Luuu Avatar answered Nov 09 '25 19:11

Luuu



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!