Skip to content

Commit

Permalink
jupyter: fix runtime error
Browse files Browse the repository at this point in the history
fixed a bug reported in NixOS#255923

it occurred because the python runtime environment did not include the
jupyter share, etc directories.
  • Loading branch information
natsukium committed Nov 17, 2023
1 parent e3de846 commit 4380257
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions pkgs/applications/editors/jupyter/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
}:

let

jupyterPath = (jupyter-kernel.create { inherit definitions; });

jupyter-notebook = (python3.buildEnv.override {
extraLibs = [ python3.pkgs.notebook ];
makeWrapperArgs = ["--set JUPYTER_PATH ${jupyterPath}"];
}).overrideAttrs(oldAttrs: {
meta = oldAttrs.meta // { mainProgram = "jupyter-notebook"; };
});
in

with python3.pkgs; toPythonModule (
notebook.overridePythonAttrs(oldAttrs: {
makeWrapperArgs = ["--set JUPYTER_PATH ${jupyterPath}"];
})
)
jupyter-notebook

0 comments on commit 4380257

Please sign in to comment.