Added jupyter to devShell
This commit is contained in:
parent
e2abde8b28
commit
97f69bb208
|
@ -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
|
||||||
{
|
{
|
||||||
|
|
|
@ -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 {
|
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 = {
|
||||||
|
|
|
@ -26,6 +26,7 @@ in
|
||||||
# rust-analyzer
|
# rust-analyzer
|
||||||
# rustfmt
|
# rustfmt
|
||||||
# clippy
|
# clippy
|
||||||
|
evcxr
|
||||||
];
|
];
|
||||||
|
|
||||||
# VSCode configuration
|
# VSCode configuration
|
||||||
|
|
Loading…
Reference in New Issue