2018-01-11 23:13:55 +00:00
|
|
|
# Options that can be used for creating a jupyter kernel.
|
|
|
|
{lib }:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
|
|
|
|
{
|
|
|
|
options = {
|
|
|
|
|
|
|
|
displayName = mkOption {
|
|
|
|
type = types.str;
|
|
|
|
default = "";
|
2021-10-03 17:06:03 +01:00
|
|
|
example = literalExpression ''
|
2018-01-11 23:13:55 +00:00
|
|
|
"Python 3"
|
|
|
|
"Python 3 for Data Science"
|
2021-10-03 17:06:03 +01:00
|
|
|
'';
|
2018-01-11 23:13:55 +00:00
|
|
|
description = ''
|
|
|
|
Name that will be shown to the user.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
argv = mkOption {
|
|
|
|
type = types.listOf types.str;
|
|
|
|
example = [
|
|
|
|
"{customEnv.interpreter}"
|
|
|
|
"-m"
|
|
|
|
"ipykernel_launcher"
|
|
|
|
"-f"
|
|
|
|
"{connection_file}"
|
|
|
|
];
|
|
|
|
description = ''
|
|
|
|
Command and arguments to start the kernel.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
language = mkOption {
|
|
|
|
type = types.str;
|
|
|
|
example = "python";
|
|
|
|
description = ''
|
|
|
|
Language of the environment. Typically the name of the binary.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
logo32 = mkOption {
|
|
|
|
type = types.nullOr types.path;
|
|
|
|
default = null;
|
2021-10-03 17:06:03 +01:00
|
|
|
example = literalExpression ''"''${env.sitePackages}/ipykernel/resources/logo-32x32.png"'';
|
2018-01-11 23:13:55 +00:00
|
|
|
description = ''
|
|
|
|
Path to 32x32 logo png.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
logo64 = mkOption {
|
|
|
|
type = types.nullOr types.path;
|
|
|
|
default = null;
|
2021-10-03 17:06:03 +01:00
|
|
|
example = literalExpression ''"''${env.sitePackages}/ipykernel/resources/logo-64x64.png"'';
|
2018-01-11 23:13:55 +00:00
|
|
|
description = ''
|
|
|
|
Path to 64x64 logo png.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|