Running Notebooks in VSCode
Izhaki opened this issue · 0 comments
Izhaki commented
As a developer, I wanted to run the notebooks in VSCode. I struggled a bit to get this working (imports cell threw ModuleNotFoundError
), so sharing here for future readers.
Install Anaconda
https://www.anaconda.com/products/distribution
Clone the repo
git clone https://github.com/AllenDowney/ThinkComplexity2.git
cd ThinkComplexity2
Create and activate the environment
conda env create -f environment.yml
conda activate ThinkComplexity2
Select the environment in VSCode
From the Command Palette choose Python: Select Interpreter and select the workspace environment (should be the Recommended one).
Open a notebook and select the Conda Kernel
The kernel picker in the top right (base (Python 3.9.12)
in the screenshot below.