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
./languages/python.nix
./utilities/cuda.nix
./utilities/jupyter.nix
];
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 {
# Development packages
home.packages = with pkgs; [
evcxr
];
# home.packages = with pkgs; [
# evcxr
# ];
modules.python.extraPythonPackages = p: [
p.jupyter
p.notebook
];
# modules.python.extraPythonPackages = p: [
# p.jupyter
# p.notebook
# ];
# VSCode configuration
programs.vscode = {

View File

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