mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-28 19:00:46 +00:00
26 lines
608 B
Nix
26 lines
608 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: {
|
|
inherit (python3.pkgs.notebook) version;
|
|
pname = "jupyter";
|
|
meta = python3.pkgs.notebook.meta // {
|
|
mainProgram = "jupyter";
|
|
};
|
|
});
|
|
in
|
|
|
|
jupyter-notebook
|