nixpkgs/pkgs/applications/editors/jupyter/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

19 lines
473 B
Nix
Raw Normal View History

# 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