Added jupyter to devShell

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

No files matched your search

+1
View File
@@ -9,6 +9,7 @@ let
./shell.nix
./languages/python.nix
./utilities/cuda.nix
./utilities/jupyter.nix
];
in
{
+23
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
];
};
}
@@ -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 = {
@@ -26,6 +26,7 @@ in
# rust-analyzer
# rustfmt
# clippy
evcxr
];
# VSCode configuration