Update pyshell template

Use derivation dependencies instead of derivation itself by default.

Set matplotlib backend via MPLBACKEND environment variable.
This commit is contained in:
Evie Litherland-Smith 2024-11-05 07:49:42 +00:00
parent 5f15dc29ba
commit 6c39fa9978

View file

@ -199,12 +199,13 @@ nix-mode
> "(python3.withPackages(" n
> "ps: with ps; ["n
> (p "tkinter mypy") n
> (p "(callPackage ./derivation.nix { })") n
> "]" n
> (p "++ (callPackage ./derivation.nix { }).dependencies") n
> "))" n
> "];" n
> "shellHook = ''" n
> "export PYTHONPATH=$(readlink -f " (p "./") "):$PYTHONPATH" n
> "export MPLBACKEND=" (p "TkAgg") n
> "'';"n
> "}")