How can I view and use notebook variables in VS Code without setting breakpoints. like in Spyder?

In VSCode, there are two ways to view script variables besides setting breakpoints:

  1. Open the “OUTLINE” column in the lower left corner of VSCode:

    enter image description here

  2. Right-click “Run Current File in Python Interactive Window” in the script, and select “Show variables active in jupyter kernel“:

    enter image description here

Leave a Comment