Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

modules(jupyter): use less parentheses for env creation #61

Merged
merged 1 commit into from
Jun 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions modules/services/jupyter.nix
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,9 @@ let
defaultKernel = {
python3 =
let
env = (pkgs.python3.withPackages (ps: with ps; [
env = pkgs.python3.withPackages (ps: with ps; [
ipykernel
]));
]);
in
{
displayName = "Default Python kernel";
Expand Down Expand Up @@ -142,13 +142,13 @@ in
{
geospatial =
let
env = (pkgs.python3.withPackages (p: with p; [
env = pkgs.python3.withPackages (p: with p; [
ipykernel
geopkgs.python3-gdal
geopkgs.python3-geopandas
geopkgs.python3-fiona
geopkgs.python3-rasterio
]));
]);
in
{
displayName = "Geospatial Python kernel";
Expand All @@ -166,10 +166,10 @@ in

other =
let
env = (pkgs.python3.withPackages (p: with p; [
env = pkgs.python3.withPackages (p: with p; [
ipykernel
pandas
]));
]);
in
{
displayName = "Other Python kernel";
Expand Down
4 changes: 2 additions & 2 deletions tests/jupyter/geonix.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,13 @@ in
kernels = {
geospatial =
let
env = (pkgs.python3.withPackages (ps: with ps; [
env = pkgs.python3.withPackages (ps: with ps; [
ipykernel
geopkgs.python3-gdal
geopkgs.python3-geopandas
geopkgs.python3-fiona
geopkgs.python3-rasterio
]));
]);
in
{
displayName = "Geospatial Python kernel";
Expand Down
Loading