t14_legacy_config/shenvs/jupyter.nix

29 lines
690 B
Nix
Raw Normal View History

pkgs: {
2022-05-03 23:44:26 +02:00
paths = with pkgs;
let
python3 = python39.withPackages ( ps: with ps; [
matplotlib
numpy
scipy
sympy
]);
jupyterPath = jupyter-kernel.create { definitions = {
2022-05-09 00:46:12 +02:00
octave = octave-kernel.definition;
2022-05-03 23:44:26 +02:00
};};
in
[
(jupyter.override {
definitions = {
2022-05-09 00:46:12 +02:00
octave = let
withPackages = pkgs.octave.withPackages (ps: with ps; [
symbolic
]);
octave = withPackages.overrideAttrs (super: { inherit (pkgs.octave) version src; });
kernel = octave-kernel.override { inherit octave; };
in kernel.definition;
2022-05-03 23:44:26 +02:00
};
2022-05-09 00:46:12 +02:00
inherit python3;
2022-05-03 23:44:26 +02:00
})
];
}