mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 22:53:42 +00:00
19 lines
347 B
Nix
19 lines
347 B
Nix
|
# Jupyter notebook with the given kernel definitions
|
||
|
|
||
|
{ python3
|
||
|
, jupyter-kernel
|
||
|
, definitions ? jupyter-kernel.default
|
||
|
}:
|
||
|
|
||
|
let
|
||
|
|
||
|
jupyterPath = (jupyter-kernel.create { inherit definitions; });
|
||
|
|
||
|
in
|
||
|
|
||
|
with python3.pkgs; toPythonModule (
|
||
|
notebook.overridePythonAttrs(oldAttrs: {
|
||
|
makeWrapperArgs = ["--set JUPYTER_PATH ${jupyterPath}"];
|
||
|
})
|
||
|
)
|