-
Notifications
You must be signed in to change notification settings - Fork 295
Setting Up Run by Line and Debugging for Notebooks
Jim Griesmer edited this page Nov 13, 2021
·
27 revisions
The Run by Line and Debugging features for Python notebooks requires ipykernel v6.0.0 or greater to be installed in the notebook's kernel.
- Use Anaconda Navigator or an Anaconda prompt to install ipykernel into your desired notebook environment.
- Close and reopen VS Code and your desired notebook. The
Developer: Reload Window
command works well for this.
- Open a Python terminal and activate your desired notebook environment.
- Run
pip install -U ipykernel
- Close and reopen VS Code and your desired notebook. The
Developer: Reload Window
command works well for this.
Ensure that ipykernel version 6.0.0 or greater is installed in the environment you're using for your notebook. Execute the following code snippet to check:
code | example |
---|---|
import ipykernel ipykernel.__version__
|
Ensure that you're using a kernel based on Python 3.7 or greater.
code | example |
---|---|
import sys sys.version
|
Ensure you're using VS Code v1.60 or greater.
Ensure you're have Jupyter Extension v2021.9 or greater installed.
See more details in the IPython documentation.
If you think ipykernel is installed correctly but are still having issues, please feel free to log a bug with further details.
- Contribution
- Source Code Organization
- Coding Standards
- Profiling
- Coding Guidelines
- Component Governance
- Writing tests
- Kernels
- Intellisense
- Debugging
- IPyWidgets
- Extensibility
- Module Dependencies
- Errors thrown
- Jupyter API
- Variable fetching
- Import / Export
- React Webviews: Variable Viewer, Data Viewer, and Plot Viewer
- FAQ
- Kernel Crashes
- Jupyter issues in the Python Interactive Window or Notebook Editor
- Finding the code that is causing high CPU load in production
- How to install extensions from VSIX when using Remote VS Code
- How to connect to a jupyter server for running code in vscode.dev
- Jupyter Kernels and the Jupyter Extension