1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-22 21:50:55 +00:00
nixpkgs/pkgs/applications/editors/jupyter/default.nix
Augustin Borsu 359368f76f jupyter: init
Top-level jupyter package that, given kernel definitions, can be used with
various kernels.
2018-08-26 12:00:54 +02:00

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}"];
})
)