Setup a virtual environment#

Create a virtual environment#

We recommend you create a dedicated virtual environment in which you can install the required packages.

cassis_lte_python requires a python version >= 3.11 ; to check your python version, do:

python3 --version

If you have an older version, we recommend using uv to manage python versions and packages. To install uv, follow these instructions.

Create a virtual environment:

uv venv --python 3.11 env_name

where env_name is the name of the environment.

Activate it, depending on your shell:

source env_name/bin/activate

IDE (e.g., spyder, VScode)#

If you are working with an IDE, you need to specify the location of the Python executable, which is something like /path/to/env_name/bin/python ; for example :

  • Spyder : go to Preferences > Python interpreter ; check the “Use the following interpreter:” radio button and enter the appropriate path.

  • Visual Studio Code : got to View > Command Palette ; select the “Python: Select Interpreter” command (see the VScode documentation), choose a project or the workspace level, click on “Enter interpreter path…” and type in the appropriate path.

Jupyter notebook#

Start jupyter notebook from within your virtual environment.