-
Couldn't load subscription status.
- Fork 348
Setting Up Run by Line and Debugging for Notebooks
David Kutugata edited this page Aug 18, 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 listto 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 --versionand make sure the version is >= 3.7 - If the Python version is < 3.7, run
conda update condafollowed byconda update pythonto update to 3.7. To update to other versions of Python visit Managing Python in Conda Environments - Run
conda install ipykernelto install the latest version of IPyKernel in your environment - Run
conda listif 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 + PorCmd + Shift + Pand 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 ipykernel==6.0.3 - Run
pip listif 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 + PorCmd + Shift + Pand 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