Minimal example of using python3Packages.venvShellHook with nix flakes to be able to pip install packages in a development environment.
Start an interactive shell within the development environment:
nix develop --command ipython --pylabRun a script within the development environment:
nix develop --command python main.pyUpdate the flake.lock file:
nix flake update --commit-lock-file