rasbt / watermark

An IPython magic extension for printing date and time stamps, version numbers, and hardware information
Other
893 stars 92 forks source link

Add option to display active conda environment #82

Closed joschkazj closed 2 years ago

joschkazj commented 2 years ago

As I often need to check which of the many conda environments I used to run a notebook, I added a new option -e/--conda to display the name of the active environment. This implements parts of #6, feel free to extend this.

pep8speaks commented 2 years ago

Hello @joschkazj! Thanks for updating this PR. We checked the lines you've touched for PEP 8 issues, and found:

There are currently no PEP 8 issues detected in this Pull Request. Cheers! :beers:

Comment last updated at 2021-12-21 14:46:46 UTC
rasbt commented 2 years ago

This is actually a super useful addition. As I recently swapped a lot between envs (for my book, research, and teaching), I wish we had that option earlier!