2020-04-24 23:36:52 +00:00
|
|
|
# Jupyter notebook with the given kernel definitions
|
|
|
|
|
|
|
|
{ python3
|
|
|
|
, jupyter-kernel
|
|
|
|
, definitions ? jupyter-kernel.default
|
|
|
|
}:
|
|
|
|
|
|
|
|
let
|
|
|
|
jupyterPath = (jupyter-kernel.create { inherit definitions; });
|
2024-01-02 11:29:13 +00:00
|
|
|
jupyter-notebook = (python3.buildEnv.override {
|
|
|
|
extraLibs = [ python3.pkgs.notebook ];
|
|
|
|
makeWrapperArgs = ["--set JUPYTER_PATH ${jupyterPath}"];
|
|
|
|
}).overrideAttrs(oldAttrs: {
|
|
|
|
meta = oldAttrs.meta // { mainProgram = "jupyter-notebook"; };
|
|
|
|
});
|
2020-04-24 23:36:52 +00:00
|
|
|
in
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
jupyter-notebook
|