conda: find out last time an environment was used (activated)
Asked Answered
S

1

6

Is it possible to find out when a specific conda environment was used, i.e., activated, the last time? How?

Background info: The idea is to sort the environments by their last use date and this way find out which one could be removed.

Streit answered 2/4, 2020 at 13:4 Comment(1)
Did you perhaps found a way to do this? I have the exact same use-case.Ulda
H
0
ls -lt {conda path}/envs/

This should suffice to see the last changes to the environments. Last activation time could be taken with

HISTTIMEFORMAT="%d/%m/%y
history | grep --only-matching 'conda activate.*' | sort --unique
Helmsman answered 25/9, 2024 at 12:45 Comment(0)

© 2022 - 2025 — McMap. All rights reserved.