mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 15:33:13 +00:00
86eb3a994e
fixed a bug reported in https://github.com/NixOS/nixpkgs/issues/255923 it occurred because the python runtime environment did not include the jupyter share, etc directories.
19 lines
473 B
Nix
19 lines
473 B
Nix
# Jupyter notebook with the given kernel definitions
|
|
|
|
{ python3
|
|
, jupyter-kernel
|
|
, definitions ? jupyter-kernel.default
|
|
}:
|
|
|
|
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
|
|
|
|
jupyter-notebook
|