about summary refs log tree commit diff
path: root/nixpkgs/pkgs/applications/editors/jupyter/default.nix
blob: 57122d173a441fba4443ae2dab8c4b7c82433795 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# 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