504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
18 lines
473 B
Nix
18 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
|