Setting up a Python Environment
Overview
The easiest way to setup a Python environment in VSCode is to click ctrl-shit-p, and then select
"Python: Create Environment", then follow the prompts.
This will create an environment where you can install Pythoin libraries, but the installs will be available
only the envirnment.
When you want to run code within the environment, you need to activate it first. Within VSCode, select
File -> Open Folder, and then select the folder where the envirnoment exists. Then click Terminal -> New Terminal.
This will open a new terminal window (from which you can install libraries) and will activate the envirnoment by
default.
Setting Up an Environment on Linux
Installing Libraries
To install a library, use the pip install command in a terminal that is running within the activated environment.
pip install QuantLib
Jupyter Notebook