-
Notifications
You must be signed in to change notification settings - Fork 296
Setting Up Run by Line and Debugging for Notebooks
Jim Griesmer edited this page Aug 27, 2021
·
27 revisions
- Python 3.7+
- IPyKernel 6+
To setup run by line and debugging, follow the steps below
- Open Anaconda Prompt
- Run
conda env list
to see the list of your environments/kernels - Run
conda activate <env_name>
to activate the environment/kernel you'd like to use for debugging - Run
python --version
and make sure the version is >= 3.7 - If the Python version is < 3.7, run
conda update conda
followed byconda update python
to update to 3.7. To update to other versions of Python visit Managing Python in Conda Environments - Run
conda install ipykernel
to install the latest version of IPyKernel in your environment - Run
conda list
if you'd like to verify the installation was correct and check that your IPyKernel version is 6 or above - Go back to VS Code and open the command palette using
Ctrl + Shift + P
orCmd + Shift + P
and selectDeveloper: Reload Window
Repeat the steps above for all environments/kernels you'd like to use
- Download the latest version of Python from Python.org
- In VS Code -> Terminal -> New Terminal
- Run
pip install -U ipykernel
- Run
pip list
if you'd like to verify the installation was correct and check that your ipykernel version is 6 or above - Open the command palette using
Ctrl + Shift + P
orCmd + Shift + P
and selectDeveloper: Reload Window
- 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