Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 23 lines 528 B view raw
1# Jupyter notebook with the given kernel definitions 2 3{ 4 python3, 5 jupyter-kernel, 6 definitions ? jupyter-kernel.default, 7}: 8 9let 10 jupyterPath = (jupyter-kernel.create { inherit definitions; }); 11 jupyter-notebook = 12 (python3.buildEnv.override { 13 extraLibs = [ python3.pkgs.notebook ]; 14 makeWrapperArgs = [ "--prefix JUPYTER_PATH : ${jupyterPath}" ]; 15 }).overrideAttrs 16 (oldAttrs: { 17 meta = oldAttrs.meta // { 18 mainProgram = "jupyter-notebook"; 19 }; 20 }); 21in 22 23jupyter-notebook