10 definitions ? jupyter-kernel.default,
13 (python3.buildEnv.override {
14 extraLibs = [ python3.pkgs.jupyter-console ];
17 "--set JUPYTER_PATH ${jupyter-kernel.create { inherit definitions; }}"
19 ++ lib.optionals (kernel != null) [
20 "--add-flags --kernel"
21 "--add-flags ${kernel}"
25 # To facilitate running nix run .#jupyter-console
26 meta = oldAttrs.meta // {
27 mainProgram = "jupyter-console";
34 # Build a console derivation with an arbitrary set of definitions, and an optional kernel to use.
35 # If the kernel argument is not supplied, Jupyter console will pick a kernel to run from the ones
36 # available on the system.
39 # An ergonomic way to start a console with a single kernel.
43 definitions = lib.listToAttrs [ (lib.nameValuePair definition.language definition) ];
44 kernel = definition.language;