Update jupyter to include the venvDir
This commit is contained in:
parent
53f62b91c0
commit
69b4904bb6
|
@ -3,40 +3,38 @@
|
||||||
|
|
||||||
inputs.nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.1.*.tar.gz";
|
inputs.nixpkgs.url = "https://flakehub.com/f/NixOS/nixpkgs/0.1.*.tar.gz";
|
||||||
|
|
||||||
outputs =
|
outputs = {
|
||||||
{ self
|
self,
|
||||||
, nixpkgs
|
nixpkgs,
|
||||||
,
|
}: let
|
||||||
}:
|
supportedSystems = ["x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin"];
|
||||||
let
|
forEachSupportedSystem = f:
|
||||||
supportedSystems = [ "x86_64-linux" "aarch64-linux" "x86_64-darwin" "aarch64-darwin" ];
|
nixpkgs.lib.genAttrs supportedSystems (system:
|
||||||
forEachSupportedSystem = f:
|
f {
|
||||||
nixpkgs.lib.genAttrs supportedSystems (system:
|
pkgs = import nixpkgs {inherit system;};
|
||||||
f {
|
});
|
||||||
pkgs = import nixpkgs { inherit system; };
|
in {
|
||||||
});
|
devShells = forEachSupportedSystem ({pkgs}: {
|
||||||
in
|
default = pkgs.mkShell {
|
||||||
{
|
venvDir = "venv";
|
||||||
devShells = forEachSupportedSystem ({ pkgs }: {
|
packages = with pkgs;
|
||||||
default = pkgs.mkShell {
|
[python311 virtualenv]
|
||||||
packages = with pkgs;
|
++ (with pkgs.python311Packages; [
|
||||||
[ python311 virtualenv ]
|
pip
|
||||||
++ (with pkgs.python311Packages; [
|
venvShellHook
|
||||||
pip
|
requests
|
||||||
venvShellHook
|
jupyter
|
||||||
requests
|
pandas
|
||||||
jupyter
|
numpy
|
||||||
pandas
|
matplotlib
|
||||||
numpy
|
seaborn
|
||||||
matplotlib
|
scikit-learn
|
||||||
seaborn
|
plotnine
|
||||||
scikit-learn
|
arrow
|
||||||
plotnine
|
polars
|
||||||
arrow
|
pyarrow
|
||||||
polars
|
]);
|
||||||
pyarrow
|
};
|
||||||
]);
|
});
|
||||||
};
|
};
|
||||||
});
|
|
||||||
};
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue