revisit 0.0.13__tar.gz → 0.0.15__tar.gz
Sign up to get free protection for your applications and to get access to all the features.
- {revisit-0.0.13 → revisit-0.0.15}/PKG-INFO +2 -1
- {revisit-0.0.13 → revisit-0.0.15}/pyproject.toml +2 -1
- {revisit-0.0.13 → revisit-0.0.15}/src/revisit/revisit.py +9 -5
- revisit-0.0.15/src/revisit/static/widget.css +2 -0
- revisit-0.0.15/src/revisit/static/widget.js +56 -0
- revisit-0.0.13/src/revisit/static/widget.css +0 -1
- revisit-0.0.13/src/revisit/static/widget.js +0 -55
- {revisit-0.0.13 → revisit-0.0.15}/.gitignore +0 -0
- {revisit-0.0.13 → revisit-0.0.15}/README.md +0 -0
- {revisit-0.0.13 → revisit-0.0.15}/src/revisit/StudyConfigSchema.json +0 -0
- {revisit-0.0.13 → revisit-0.0.15}/src/revisit/__init__.py +0 -0
- {revisit-0.0.13 → revisit-0.0.15}/src/revisit/models.py +0 -0
- {revisit-0.0.13 → revisit-0.0.15}/src/revisit/widget.py +0 -0
@@ -1,11 +1,12 @@
|
|
1
1
|
Metadata-Version: 2.4
|
2
2
|
Name: revisit
|
3
|
-
Version: 0.0.
|
3
|
+
Version: 0.0.15
|
4
4
|
Requires-Dist: altair[all]>=5.5.0
|
5
5
|
Requires-Dist: anywidget
|
6
6
|
Requires-Dist: ipykernel>=6.29.5
|
7
7
|
Requires-Dist: pandas>=2.2.3
|
8
8
|
Requires-Dist: pydantic>=2.10.5
|
9
|
+
Requires-Dist: scipy>=1.15.1
|
9
10
|
Provides-Extra: dev
|
10
11
|
Requires-Dist: jupyterlab; extra == 'dev'
|
11
12
|
Requires-Dist: watchfiles; extra == 'dev'
|
@@ -4,13 +4,14 @@ build-backend = "hatchling.build"
|
|
4
4
|
|
5
5
|
[project]
|
6
6
|
name = "revisit"
|
7
|
-
version = "0.0.
|
7
|
+
version = "0.0.15"
|
8
8
|
dependencies = [
|
9
9
|
"altair[all]>=5.5.0",
|
10
10
|
"anywidget",
|
11
11
|
"ipykernel>=6.29.5",
|
12
12
|
"pandas>=2.2.3",
|
13
13
|
"pydantic>=2.10.5",
|
14
|
+
"scipy>=1.15.1",
|
14
15
|
]
|
15
16
|
readme = "README.md"
|
16
17
|
|
@@ -450,22 +450,26 @@ def widget(study: _WrappedStudyConfig, revisitPath: str):
|
|
450
450
|
extracted_paths = []
|
451
451
|
|
452
452
|
for component in study.root.components.values():
|
453
|
-
|
453
|
+
print(component.root)
|
454
|
+
actual_component = component.root
|
455
|
+
if hasattr(actual_component, 'root'):
|
456
|
+
actual_component = actual_component.root
|
457
|
+
if hasattr(actual_component, 'path'):
|
454
458
|
|
455
|
-
fileName =
|
459
|
+
fileName = actual_component.path.split('/')[-1]
|
456
460
|
|
457
|
-
if
|
461
|
+
if actual_component.type == 'react-component':
|
458
462
|
dest = f"{revisitPath}/src/public/__revisit-widget/assets/{fileName}"
|
459
463
|
else:
|
460
464
|
dest = f"{revisitPath}/public/__revisit-widget/assets/{fileName}"
|
461
465
|
|
462
466
|
extracted_paths.append({
|
463
|
-
"src":
|
467
|
+
"src": actual_component.path,
|
464
468
|
"dest": dest
|
465
469
|
})
|
466
470
|
|
467
471
|
newPath = f"__revisit-widget/assets/{fileName}"
|
468
|
-
|
472
|
+
actual_component.path = newPath
|
469
473
|
|
470
474
|
uiConfig = study.root.uiConfig
|
471
475
|
if uiConfig.helpTextPath is not None:
|
@@ -0,0 +1,2 @@
|
|
1
|
+
.revisit_notebook_widget button{background:#f0f0f0;border-radius:5px;border:1px solid #ccc;cursor:pointer;font-family:Roboto,sans-serif;font-size:1em;margin:5px;padding:5px 10px;transition:box-shadow .25s ease-in-out;&:hover{background:#e0e0e0;box-shadow:0 0 5px #ccc}&:active{background:#d0d0d0;box-shadow:0 0 5px #ccc inset}}.revisit_notebook_widget iframe{border:0;margin:0;width:100%}.revisit_notebook_widget{.sequence{width:100%;display:flex}.sequenceComponent{display:flex;padding-left:4px;padding-right:4px;padding-bottom:2px;&:hover{background:#0000001a}}.sequenceComponentIndividual{background:#000;width:5px;height:20px;margin-top:5px}}
|
2
|
+
/*# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsiLi4vLi4vLi4vanMvd2lkZ2V0LmNzcyJdLAogICJzb3VyY2VzQ29udGVudCI6IFsiLnJldmlzaXRfbm90ZWJvb2tfd2lkZ2V0IGJ1dHRvbiB7XG5cdGJhY2tncm91bmQ6ICNmMGYwZjA7XG5cdGJvcmRlci1yYWRpdXM6IDVweDtcblx0Ym9yZGVyOiAxcHggc29saWQgI2NjYztcblx0Y3Vyc29yOiBwb2ludGVyO1xuXHRmb250LWZhbWlseTogXCJSb2JvdG9cIiwgc2Fucy1zZXJpZjtcblx0Zm9udC1zaXplOiAxZW07XG5cdG1hcmdpbjogNXB4O1xuXHRwYWRkaW5nOiA1cHggMTBweDtcblx0dHJhbnNpdGlvbjogYm94LXNoYWRvdyAwLjI1cyBlYXNlLWluLW91dDtcblxuXHQmOmhvdmVyIHtcblx0XHRiYWNrZ3JvdW5kOiAjZTBlMGUwO1xuXHRcdGJveC1zaGFkb3c6IDAgMCA1cHggMCAjY2NjO1xuXHR9XG5cblx0JjphY3RpdmUge1xuXHRcdGJhY2tncm91bmQ6ICNkMGQwZDA7XG5cdFx0Ym94LXNoYWRvdzogMCAwIDVweCAwICNjY2MgaW5zZXQ7XG5cblx0fVxufVxuXG4ucmV2aXNpdF9ub3RlYm9va193aWRnZXQgaWZyYW1lIHtcblx0Ym9yZGVyOiAwO1xuXHRtYXJnaW46IDA7XG5cdHdpZHRoOiAxMDAlO1xufVxuXG4ucmV2aXNpdF9ub3RlYm9va193aWRnZXQge1xuXHQuc2VxdWVuY2Uge1xuXHRcdHdpZHRoOiAxMDAlO1xuXHRcdGRpc3BsYXk6IGZsZXg7XG5cdH1cblxuXHQuc2VxdWVuY2VDb21wb25lbnQge1xuXHRcdGRpc3BsYXk6IGZsZXg7XG5cdFx0cGFkZGluZy1sZWZ0OiA0cHg7XG5cdFx0cGFkZ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