Monthly Shaarli
April, 2026
In short, add
layout python3
to .envrc.
To customize the name of the virtualenv that direnv automatically creates, add the line export VIRTUAL_ENV=your_venv_name to the top of the file.
- https://github.com/direnv/direnv/wiki/Python - official docs
- https://github.com/direnv/direnv/issues/1264 - Activate python venv by default?
- https://github-wiki-see.page/m/direnv/direnv/wiki/Python
- https://stackabuse.com/managing-python-environments-with-direnv-and-pyenv
- https://www.keiruaprod.fr/blog/2023/01/26/using-direnv.html
And also, completely new to me, it is possible to use direnv with Github Actions (with a complete example in the direnv docs)!
How using a few ideas from software engineering can help data scientists, analysts and researchers write reliable code
Authored by Bruno Rodrigues, published 2023-10-03.
The book can be read for free online or y can buy a DRM-free Epub or PDF on Leanpub.