Skip to content

Commit

Permalink
Merge pull request #60 from imincik/jupyter-module-examples-update
Browse files Browse the repository at this point in the history
modules(jupyter): update modules examples
  • Loading branch information
imincik authored Jun 6, 2024
2 parents a05167e + 8c3f12d commit aa4399c
Showing 1 changed file with 12 additions and 12 deletions.
24 changes: 12 additions & 12 deletions modules/services/jupyter.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,21 @@ let
type = types.str;
default = "";
example = literalExpression ''
"Python 3"
"Python 3 for Data Science"
'';
description = ''
Name that will be shown to the user.
'';
};

language = mkOption {
type = types.str;
example = "python";
description = ''
Language of the environment. Typically the name of the binary.
'';
};

argv = mkOption {
type = types.listOf types.str;
example = [
Expand All @@ -35,14 +42,6 @@ let
'';
};

language = mkOption {
type = types.str;
example = "python";
description = ''
Language of the environment. Typically the name of the binary.
'';
};

env = mkOption {
type = types.attrsOf types.str;
default = { };
Expand All @@ -60,6 +59,7 @@ let
Path to 32x32 logo png.
'';
};

logo64 = mkOption {
type = types.nullOr types.path;
default = null;
Expand Down Expand Up @@ -142,7 +142,7 @@ in
{
geospatial =
let
env = (pkgs.python3.withPackages (pythonPackages: with pythonPackages; [
env = (pkgs.python3.withPackages (p: with p; [
ipykernel
geopkgs.python3-gdal
geopkgs.python3-geopandas
Expand All @@ -164,9 +164,9 @@ in
logo64 = "''${env}/''${env.sitePackages}/ipykernel/resources/logo-64x64.png";
};
otherKernel =
other =
let
env = (pkgs.python3.withPackages (pythonPackages: with pythonPackages; [
env = (pkgs.python3.withPackages (p: with p; [
ipykernel
pandas
]));
Expand Down

0 comments on commit aa4399c

Please sign in to comment.