1 # Options that can be used for creating a jupyter kernel.
4 freeformType = (pkgs.formats.json { }).type;
8 displayName = lib.mkOption {
11 example = lib.literalExpression ''
13 "Python 3 for Data Science"
16 Name that will be shown to the user.
21 type = lib.types.listOf lib.types.str;
23 "{customEnv.interpreter}"
30 Command and arguments to start the kernel.
34 language = lib.mkOption {
38 Language of the environment. Typically the name of the binary.
43 type = lib.types.attrsOf lib.types.str;
45 example = { OMP_NUM_THREADS = "1"; };
47 Environment variables to set for the kernel.
51 logo32 = lib.mkOption {
52 type = lib.types.nullOr lib.types.path;
54 example = lib.literalExpression ''"''${env.sitePackages}/ipykernel/resources/logo-32x32.png"'';
56 Path to 32x32 logo png.
59 logo64 = lib.mkOption {
60 type = lib.types.nullOr lib.types.path;
62 example = lib.literalExpression ''"''${env.sitePackages}/ipykernel/resources/logo-64x64.png"'';
64 Path to 64x64 logo png.
68 extraPaths = lib.mkOption {
69 type = lib.types.attrsOf lib.types.path;
71 example = lib.literalExpression ''"{ examples = ''${env.sitePack}/IRkernel/kernelspec/kernel.js"; }'';
73 Extra paths to link in kernel directory