Luke Granger-Brown
57725ef3ec
git-subtree-dir: third_party/nixpkgs git-subtree-split: 76612b17c0ce71689921ca12d9ffdc9c23ce40b2
18 lines
478 B
Nix
18 lines
478 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 = ["--prefix JUPYTER_PATH : ${jupyterPath}"];
|
|
}).overrideAttrs(oldAttrs: {
|
|
meta = oldAttrs.meta // { mainProgram = "jupyter-notebook"; };
|
|
});
|
|
in
|
|
|
|
jupyter-notebook
|