I have a workspace with a .py
and a .ipynb
file. After I’ve selected the correct conda environment (py39llm
) VS Code keeps working with the base conda environment in the case of .py
but switches to the selected python environment for ipynb
:
Executing the following:
import os
bashCommand = "conda info --env"
os.system(bashCommand)
on the .ipynb
:
# conda environments:
#
base /home/fes33/anaconda3
py39llm * /home/fes33/anaconda3/envs/py39llm
on the .py
:
# conda environments:
#
base * /home/fes33/anaconda3
py39llm /home/fes33/anaconda3/envs/py39llm
Even though as the bar at the bottom shows I’ve selected the correct environment: