Can VSCode attach to Jupyter and debug?

Hi VSCode users,

I am considering switching from PyCharm to VSCode. With PyCharm, I can attach to the Jupyter process, then use breakpoints in fastai when it is called from the notebook. However, PyCharm requires re-attaching to process at “random” intervals, and whenever the kernel is restarted.

  1. Can VSCode do the same, perhaps more reliably?
  2. Can VSCode directly debug code that is within a notebook? (PyCharm cannot.)

This is all local hardware, with Ubuntu 16.04.

Thanks!

Malcolm:

I have only used it once, for a very simple model/notebook but the direct editing and debugging within VSCode seems to work as promised, though YMMV.

I was running on MacOS 10.15.x with the latest VSCode.

Chris