I\'m looking for a good way to figure out the name of the conda environment I\'m in from within running code or an interactive python instance.
The use-case is that
conda info
directly lists all the information where in the first lines you can see the
active environment: (some name)
active env location: (location of active environment)
I guess this is the most clear way.
In an interactive environment like Jupyter Notebook or Jupyter Lab, you should use % before typing the commands, like the following,
%conda info