Skip to main content
Home Projects Logs Garden Feeds About

Tag: direnv

4 entries

All tags
2025-08-03 TIL

Running `uv` with Environment Variables

The .env file and the python-dotenv package are popular conventions in Python for managing environment variables. I often forget or pause when trying to remember exactly which package I need to install (python-dotenv) and how to do the import

python uv direnv
2024-10-16 TIL

Accessing direnv environment variables in a Jupyter notebook

I use direnv to manage my shell environment for projects. When using a Jupyter notebook within a project, I realized that the environment variables in my .envrc file were not being made available to my notebooks. The following worked for me as a low-effort way to load my environment into the...

direnv jupyter
2024-02-19 TIL

Managing Multiple Tool Versions with Nix

This post is extremely similar to nix flakes and direnv. Here, I repeated my process, but with a little more thought and a little less language model magic.

nix flakes direnv asdf homebrew
2024-02-07 TIL

Nix and Direnv with Flakes

Last year I wrote about nix and direnv as I explored the potential convenience of an isolated, project-specific environment. There were some interesting initial learnings about nix, but I didn't really know what I was doing. Now, I still don't know what I'm doing, but I've been doing it for...

nix direnv flakes hugo python

© 2025 Dan Corin · Built with Astro

Keyboard Shortcuts

Global

⌘ K Open search
⌘ ⇧ M Toggle dark/light theme
⇧ ? Show keyboard shortcuts
Press ESC to close