Added jupyter to devShell
This commit is contained in:
parent
e2abde8b28
commit
97f69bb208
|
@ -9,6 +9,7 @@ let
|
|||
./shell.nix
|
||||
./languages/python.nix
|
||||
./utilities/cuda.nix
|
||||
./utilities/jupyter.nix
|
||||
];
|
||||
in
|
||||
{
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue