My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/applications/editors/jupyter/default.nix

18 lines
347 B

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