2025-02-09 01:19:49 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
config,
|
|
|
|
...
|
|
|
|
}:
|
|
|
|
|
|
|
|
with lib;
|
|
|
|
{
|
|
|
|
options.jupyter = {
|
|
|
|
enable = mkEnableOption "Jupyter";
|
|
|
|
};
|
|
|
|
|
|
|
|
config = mkIf config.jupyter.enable {
|
|
|
|
python.enable = mkDefault true;
|
|
|
|
python.packages =
|
|
|
|
p: with p; [
|
|
|
|
jupyter
|
|
|
|
notebook
|
2025-02-09 22:45:15 +00:00
|
|
|
ipykernel
|
2025-02-09 01:19:49 +00:00
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|