Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Setting Up Run by Line and Debugging for Notebooks

Jim Griesmer edited this pageNov 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.

Anaconda

  1. Use Anaconda Navigator or an Anaconda prompt to install ipykernel into your desired notebook environment.
  2. Close and reopen VS Code and your desired notebook. TheDeveloper: Reload Window command works well for this.

Pip

  1. Open a Python terminal and activate your desired notebook environment.
  2. Runpip install -U ipykernel
  3. Close and reopen VS Code and your desired notebook. TheDeveloper: Reload Window command works well for this.

Troubleshooting

Ensure that ipykernel version 6.0.0 or greater is installed in the environment you're using for your notebook.
codeexample
import ipykernel
ipykernel.__version__
image
Ensure that you're using a kernel based on Python 3.7 or greater.
codeexample
import sys
sys.version
image
Ensure you're using VS Code v1.60 or greater.

image

Ensure you're have Jupyter Extension v2021.9 or greater installed.

image

Ensure you've restarted VS Code after verifying all of the above.

See more details in theIPython documentation.

If you think ipykernel is installed correctly but are still having issues, please feel free tolog a bug with further details.

Project Management

Contributing

Code Architecture

API

Features

FAQ and Troubleshooting

Misc

Clone this wiki locally

[8]ページ先頭

©2009-2025 Movatter.jp