Added jupyter to devShell

This commit is contained in:
Jan-Bulthuis 2025-02-09 02:19:49 +01:00
parent e2abde8b28
commit 97f69bb208
4 changed files with 32 additions and 7 deletions

View File

@ -9,6 +9,7 @@ let
./shell.nix ./shell.nix
./languages/python.nix ./languages/python.nix
./utilities/cuda.nix ./utilities/cuda.nix
./utilities/jupyter.nix
]; ];
in in
{ {

View File

@ -0,0 +1,23 @@
{
pkgs,
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
];
};
}

View File

@ -17,14 +17,14 @@ in
config = mkIf cfg.enable { config = mkIf cfg.enable {
# Development packages # Development packages
home.packages = with pkgs; [ # home.packages = with pkgs; [
evcxr # evcxr
]; # ];
modules.python.extraPythonPackages = p: [ # modules.python.extraPythonPackages = p: [
p.jupyter # p.jupyter
p.notebook # p.notebook
]; # ];
# VSCode configuration # VSCode configuration
programs.vscode = { programs.vscode = {

View File

@ -26,6 +26,7 @@ in
# rust-analyzer # rust-analyzer
# rustfmt # rustfmt
# clippy # clippy
evcxr
]; ];
# VSCode configuration # VSCode configuration