Skip to content

Setup for testing Jupyter Notebooks

Don Jayamanne edited this page May 31, 2024 · 1 revision

There are a number of options for setting up Python to test Jupyter Notebooks.

Option 1 - Codespace

image

Note:

  • The Jupyter extension will only show 1 Python environment in the kernel Picker

WARNING

  • When using Python extension, always remember to use the same Python env as used by Jupyter Kernel Picker

Option 2 - Create a Virtual/Conda Environments

Note: Ensure you have Python installed

Here are some ways to create a virtual environment

  • Select the Command Python: Create Environment... and follow the prompts
  • Use the Create Python Environment from the Kernel Picker

image

image

Option 3 - Docker Images in Jupyter Extension Repo

  • Ensure you have [Remote Development[[() extension pack installed
  • Open the Jupyter extension repo in VS Code
  • Select the command Dev Containers: Reopen in Container
  • From the list of container select any of the items with the pattern test-*-python These are containers that open in a test folder and have Python installed and setup.
Clone this wiki locally