2018-01-11 20:52:29 +00:00
|
|
|
# Jupyter notebook with the given kernel definitions
|
|
|
|
|
|
|
|
{ python3
|
|
|
|
, jupyter-kernel
|
|
|
|
, definitions ? jupyter-kernel.default
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
jupyterPath = (jupyter-kernel.create { inherit definitions; });
|
2023-11-17 10:04:39 +00:00
|
|
|
jupyter-notebook = (python3.buildEnv.override {
|
|
|
|
extraLibs = [ python3.pkgs.notebook ];
|
|
|
|
makeWrapperArgs = ["--set JUPYTER_PATH ${jupyterPath}"];
|
|
|
|
}).overrideAttrs(oldAttrs: {
|
|
|
|
meta = oldAttrs.meta // { mainProgram = "jupyter-notebook"; };
|
|
|
|
});
|
2018-01-11 20:52:29 +00:00
|
|
|
in
|
|
|
|
|
2023-11-17 10:04:39 +00:00
|
|
|
jupyter-notebook
|