From f36e3522576b6cf0d3a3d524f11e3e56574f3768 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabi=C3=A1n=20Montero?= Date: Tue, 3 May 2022 15:44:26 -0600 Subject: [PATCH] arregla shenv para jupyter --- shenvs/jupyter.nix | 28 +++++++++++++++++++--------- 1 file changed, 19 insertions(+), 9 deletions(-) diff --git a/shenvs/jupyter.nix b/shenvs/jupyter.nix index 8d5065a..6f89b6c 100644 --- a/shenvs/jupyter.nix +++ b/shenvs/jupyter.nix @@ -1,12 +1,22 @@ pkgs: { - paths = with pkgs; [ - (python39.withPackages ( packages: with packages; [ - jupyterlab - matplotlib - numpy - octave - scipy - sympy - ] )) + paths = with pkgs; + let + python3 = python39.withPackages ( ps: with ps; [ + matplotlib + numpy + scipy + sympy + ]); + jupyterPath = jupyter-kernel.create { definitions = { + octave = octave-kernel.definition; + };}; + in + [ + (jupyter.override { + definitions = { + octave = octave-kernel.definition; + }; + inherit python3; + }) ]; }