PyKubeGrader 0.1.8__py3-none-any.whl → 0.1.9__py3-none-any.whl
Sign up to get free protection for your applications and to get access to all the features.
- {PyKubeGrader-0.1.8.dist-info → PyKubeGrader-0.1.9.dist-info}/METADATA +1 -1
- {PyKubeGrader-0.1.8.dist-info → PyKubeGrader-0.1.9.dist-info}/RECORD +7 -7
- pykubegrader/initialize.py +6 -7
- {PyKubeGrader-0.1.8.dist-info → PyKubeGrader-0.1.9.dist-info}/LICENSE.txt +0 -0
- {PyKubeGrader-0.1.8.dist-info → PyKubeGrader-0.1.9.dist-info}/WHEEL +0 -0
- {PyKubeGrader-0.1.8.dist-info → PyKubeGrader-0.1.9.dist-info}/entry_points.txt +0 -0
- {PyKubeGrader-0.1.8.dist-info → PyKubeGrader-0.1.9.dist-info}/top_level.txt +0 -0
@@ -1,5 +1,5 @@
|
|
1
1
|
pykubegrader/__init__.py,sha256=AoAkdfIjDDZGWLlsIRENNq06L9h46kDGBIE8vRmsCfg,311
|
2
|
-
pykubegrader/initialize.py,sha256=
|
2
|
+
pykubegrader/initialize.py,sha256=xvaN4mepZn25x37YZhQj3UgqGq1PBc7yDGt9LBKgzAY,1105
|
3
3
|
pykubegrader/telemetry.py,sha256=uuC4ZPLHYrAmKFBu3dJ3LGoEvQlT1LtOJjUldnfISEE,3343
|
4
4
|
pykubegrader/utils.py,sha256=dKw6SyRYU3DWRgD3xER7wq-C9e1daWPkqr901LpcwiQ,642
|
5
5
|
pykubegrader/validate.py,sha256=A6FxQrC76ulneRvC7PBHawTSBck6xe1qBGMgqhBXd9c,10682
|
@@ -16,9 +16,9 @@ pykubegrader/widgets_base/__init__.py,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-
|
|
16
16
|
pykubegrader/widgets_base/multi_select.py,sha256=u50IOhYxC_S_gq31VnFPLdbNajk_SUWhaqlMSJxhqVQ,3439
|
17
17
|
pykubegrader/widgets_base/reading.py,sha256=4uTLmlPzCwxVzufFhPjM7W19uMGguRb6y4eAV3x-zAc,5314
|
18
18
|
pykubegrader/widgets_base/select.py,sha256=h1S5StcbX8S-Wiyga4fVDhPbVvRxffwaqyVbiiuInRs,2743
|
19
|
-
PyKubeGrader-0.1.
|
20
|
-
PyKubeGrader-0.1.
|
21
|
-
PyKubeGrader-0.1.
|
22
|
-
PyKubeGrader-0.1.
|
23
|
-
PyKubeGrader-0.1.
|
24
|
-
PyKubeGrader-0.1.
|
19
|
+
PyKubeGrader-0.1.9.dist-info/LICENSE.txt,sha256=YTp-Ewc8Kems8PJEE27KnBPFnZSxoWvSg7nnknzPyYw,1546
|
20
|
+
PyKubeGrader-0.1.9.dist-info/METADATA,sha256=O3VMp6EJd-6QAC9L9aHyf54mySq5OiwpFG0x22Vd0p0,2664
|
21
|
+
PyKubeGrader-0.1.9.dist-info/WHEEL,sha256=PZUExdf71Ui_so67QXpySuHtCi3-J3wvF4ORK6k_S8U,91
|
22
|
+
PyKubeGrader-0.1.9.dist-info/entry_points.txt,sha256=Kd4Bh-i3hc4qlnLU1p0nc8yPw9cC5AQGOtkk2eLGnQw,78
|
23
|
+
PyKubeGrader-0.1.9.dist-info/top_level.txt,sha256=e550Klfze6higFxER1V62fnGOcIgiKRbsrl9CC4UdtQ,13
|
24
|
+
PyKubeGrader-0.1.9.dist-info/RECORD,,
|
pykubegrader/initialize.py
CHANGED
@@ -24,19 +24,18 @@ def initialize_assignment(name: str) -> None:
|
|
24
24
|
print("Setup unsuccessful. Are you on JupyterHub?")
|
25
25
|
return
|
26
26
|
|
27
|
-
pn.extension(silent=True)
|
28
|
-
|
29
27
|
try:
|
30
|
-
|
28
|
+
update_responses(key="assignment", value=name)
|
29
|
+
update_responses(key="jhub_user", value=jhub_user)
|
31
30
|
|
32
|
-
seed =
|
33
|
-
|
34
|
-
new_seed = hash(jhub_user) % 1000
|
35
|
-
responses = update_responses(key="seed", value=new_seed)
|
31
|
+
seed = hash(jhub_user) % 1000
|
32
|
+
update_responses(key="seed", value=seed)
|
36
33
|
except (TypeError, json.JSONDecodeError) as e:
|
37
34
|
print(f"Failed to initialize assignment: {e}")
|
38
35
|
return
|
39
36
|
|
37
|
+
pn.extension(silent=True)
|
38
|
+
|
40
39
|
print("Assignment successfully initialized")
|
41
40
|
print(f"Assignment: {name}")
|
42
41
|
print(f"Username: {jhub_user}")
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|