1 # Options that can be used for creating a jupyter kernel.
7 freeformType = (pkgs.formats.json { }).type;
11 displayName = mkOption {
14 example = literalExpression ''
16 "Python 3 for Data Science"
18 description = lib.mdDoc ''
19 Name that will be shown to the user.
24 type = types.listOf types.str;
26 "{customEnv.interpreter}"
32 description = lib.mdDoc ''
33 Command and arguments to start the kernel.
40 description = lib.mdDoc ''
41 Language of the environment. Typically the name of the binary.
46 type = types.attrsOf types.str;
48 example = { OMP_NUM_THREADS = "1"; };
49 description = lib.mdDoc ''
50 Environment variables to set for the kernel.
55 type = types.nullOr types.path;
57 example = literalExpression ''"''${env.sitePackages}/ipykernel/resources/logo-32x32.png"'';
58 description = lib.mdDoc ''
59 Path to 32x32 logo png.
63 type = types.nullOr types.path;
65 example = literalExpression ''"''${env.sitePackages}/ipykernel/resources/logo-64x64.png"'';
66 description = lib.mdDoc ''
67 Path to 64x64 logo png.
71 extraPaths = mkOption {
72 type = types.attrsOf types.path;
74 example = literalExpression ''"{ examples = ''${env.sitePack}/IRkernel/kernelspec/kernel.js"; }'';
75 description = lib.mdDoc ''
76 Extra paths to link in kernel directory