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 #255923

it occurred because the python runtime environment did not include the
jupyter share, etc directories.

(cherry picked from commit 4380257)
  • Loading branch information
natsukium authored and github-actions[bot] committed Nov 22, 2023
1 parent 2b6bc00 commit 52018b5
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 52018b5

Please sign in to comment.