diff options
author | Augustin Borsu <a.borsu@gmail.com> | 2018-01-11 21:52:29 +0100 |
---|---|---|
committer | Frederik Rietdijk <fridh@fridh.nl> | 2018-08-26 12:00:54 +0200 |
commit | 359368f76ff02a7f7229f2104d66de7643017f2d (patch) | |
tree | b52812f00df29a798a650f29a98a8c9e81432409 | |
parent | 16f4076c7056288c99cbecceadf98b81dc32efc0 (diff) | |
download | nixpkgs-359368f76ff02a7f7229f2104d66de7643017f2d.tar nixpkgs-359368f76ff02a7f7229f2104d66de7643017f2d.tar.gz nixpkgs-359368f76ff02a7f7229f2104d66de7643017f2d.tar.bz2 nixpkgs-359368f76ff02a7f7229f2104d66de7643017f2d.tar.lz nixpkgs-359368f76ff02a7f7229f2104d66de7643017f2d.tar.xz nixpkgs-359368f76ff02a7f7229f2104d66de7643017f2d.tar.zst nixpkgs-359368f76ff02a7f7229f2104d66de7643017f2d.zip |
jupyter: init
Top-level jupyter package that, given kernel definitions, can be used with various kernels.
-rw-r--r-- | pkgs/applications/editors/jupyter/default.nix | 18 | ||||
-rw-r--r-- | pkgs/top-level/all-packages.nix | 2 |
2 files changed, 20 insertions, 0 deletions
diff --git a/pkgs/applications/editors/jupyter/default.nix b/pkgs/applications/editors/jupyter/default.nix new file mode 100644 index 00000000000..2bca120c1de --- /dev/null +++ b/pkgs/applications/editors/jupyter/default.nix @@ -0,0 +1,18 @@ +# 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}"]; + }) +) diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 472155ac265..4d2bf622e44 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -3383,6 +3383,8 @@ with pkgs; jupp = callPackage ../applications/editors/jupp { }; + jupyter = callPackage ../applications/editors/jupyter { }; + jupyter-kernel = callPackage ../applications/editors/jupyter/kernel.nix { }; jwhois = callPackage ../tools/networking/jwhois { }; |