You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: modules/kernels/python/module.nix
+10-6
Original file line number
Diff line number
Diff line change
@@ -19,12 +19,15 @@ let
19
19
20
20
python3Package=packageOption;
21
21
22
-
attrs=mkOption{
22
+
interface.attrs=mkOption{
23
+
example="Notebook attributes";
24
+
description="Notebook cells that have these attributes will match this kernel, allowing it to run the code.";
23
25
type=types.listOftypes.str;
24
26
default=["python"];
25
27
};
26
-
27
-
extensions=mkOption{
28
+
interface.extensions=mkOption{
29
+
example="File extensions";
30
+
description="Files with these extensions will match against this kernel, allowing you to run the code as if it were a Jupyter cell.";
28
31
type=types.listOftypes.str;
29
32
default=["py"];
30
33
};
@@ -70,14 +73,15 @@ let
70
73
default=false;
71
74
};
72
75
73
-
permitUserSite=mkOption{
76
+
misc.permitUserSite=mkOption{
74
77
example="Permit user site-packages";
75
78
description="Skip setting the PYTHONNOUSERSITE variable. This will allow your Python code to import local packages (e.g. from ~/.local/lib). This is useful if you want to use pip to install Python packages independently of Nix.";
76
79
type=types.bool;
77
80
default=false;
78
81
};
79
-
enableVariableInspector=mkOption{
80
-
description="Enable the variable inspector";
82
+
misc.enableVariableInspector=mkOption{
83
+
example="Enable the variable inspector";
84
+
description="This will show a summary of the currently defined variables in the UI.";
0 commit comments