Skip to content

Setting Up Run by Line and Debugging for Notebooks

Jim Griesmer edited this page Aug 30, 2021 · 27 revisions

If you're using Anaconda environments

  1. Open an Anaconda Prompt to your desired notebook environment.
  2. Run conda install ipykernel=6.2.0 to install the latest version of IPyKernel in your environment.
  3. Close and reopen VS Code. The Developer: Reload Window command works too.

If you're using Pip environments

  1. Open a Python terminal and activate your desired notebook environment.
  2. Run pip install -U ipykernel
  3. Close and reopen VS Code. The Developer: Reload Window command works too.

Troubleshooting

  1. Ensure that ipykernel version 6.0 or greater is installed in the environment you're using for your notebook.
  2. Ensure you're using VS Code v1.60 or greater.
  3. Ensure you're have Jupyter Extension v2021.9 or greater installed.
  4. Ensure that you're using a kernel based on Python 3.7 or greater.
  5. Ensure you've restarted VS Code after verifying the above.

If all of the above are in order, please feel free to log a bug with further details.

Clone this wiki locally