use python packages listed in this file to run the code. super easy if you are on nix os

This commit is contained in:
Hans Kristian Djuve
2026-03-17 12:45:05 +01:00
parent c58b1fed4a
commit c09c961e75
+34
View File
@@ -0,0 +1,34 @@
with import (fetchTarball "https://github.com/NixOS/nixpkgs/tarball/nixos-25.11") { };
mkShellNoCC rec {
packages = [
# Defines a python + set of packages.
(python3.withPackages (
ps: with ps; [
jupyter
ipython
pandas
matplotlib
numpy
scipy
pyproj
# Uncomment the following lines to make them available in the shell.
# Additional packages can be found with: https://search.nixos.org/packages
# pandas
# numpy
# matplotlib
]
))
];
buildInputs = [
stdenv.cc.cc
];
PYTHONPATH = "$PWD";
#MPLBACKEND = "tkagg";
LD_LIBRARY_PATH = pkgs.lib.makeLibraryPath buildInputs;
# Automatically run jupyter when entering the shell.
# shellHook = "jupyter notebook";
}