Selecting a Conda Environment to Run a Python Script

You can select a conda environment to run a Python script in the JupyterLab terminal.

Activate the conda environment by running this command:
source activate <path-to-conda-environment>

After the conda environment has been activated, the slug of the environment appears between round brackets next to your terminal prompt. Any subsequent Python commands run in that terminal window tab runs in the active conda environment. To learn more about the conda CLI, see Conda Getting Started.