scatter3d-anywidget 0.1.3__py3-none-any.whl → 0.1.4__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- scatter3d/static/scatter3d.js +3 -3
- scatter3d/static/scatter3d.js.map +1 -1
- scatter3d/widget_test.py +16 -9
- {scatter3d_anywidget-0.1.3.dist-info → scatter3d_anywidget-0.1.4.dist-info}/METADATA +1 -1
- scatter3d_anywidget-0.1.4.dist-info/RECORD +8 -0
- {scatter3d_anywidget-0.1.3.dist-info → scatter3d_anywidget-0.1.4.dist-info}/WHEEL +1 -1
- scatter3d_anywidget-0.1.3.dist-info/RECORD +0 -8
scatter3d/widget_test.py
CHANGED
|
@@ -19,14 +19,29 @@ def _():
|
|
|
19
19
|
species_list = ["species1", "species2", "species3"]
|
|
20
20
|
species = random.choices(species_list, k=num_points)
|
|
21
21
|
species = Category(pandas.Series(species, name="species"))
|
|
22
|
+
countries_list = ["country1", "country2", "country3"]
|
|
23
|
+
countries = random.choices(countries_list, k=num_points)
|
|
24
|
+
countries = Category(pandas.Series(countries, name="countries"))
|
|
22
25
|
|
|
23
26
|
w = Scatter3dWidget(xyz=points, category=species, point_ids=point_ids)
|
|
24
27
|
w.height = 800
|
|
25
28
|
ui = marimo.ui.anywidget(w)
|
|
26
|
-
ui
|
|
27
29
|
return species, ui, w
|
|
28
30
|
|
|
29
31
|
|
|
32
|
+
@app.cell
|
|
33
|
+
def _(species):
|
|
34
|
+
category = species
|
|
35
|
+
return (category,)
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
@app.cell
|
|
39
|
+
def _(category, ui, w):
|
|
40
|
+
w.category = category
|
|
41
|
+
ui
|
|
42
|
+
return
|
|
43
|
+
|
|
44
|
+
|
|
30
45
|
@app.cell
|
|
31
46
|
def _(species, ui, w):
|
|
32
47
|
ui.lasso_result_t
|
|
@@ -37,13 +52,5 @@ def _(species, ui, w):
|
|
|
37
52
|
return
|
|
38
53
|
|
|
39
54
|
|
|
40
|
-
@app.cell
|
|
41
|
-
def _(w):
|
|
42
|
-
import inspect
|
|
43
|
-
print(type(w))
|
|
44
|
-
print(inspect.getsource(type(w)._on_lasso_request_t))
|
|
45
|
-
return
|
|
46
|
-
|
|
47
|
-
|
|
48
55
|
if __name__ == "__main__":
|
|
49
56
|
app.run()
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
scatter3d/__init__.py,sha256=nVTx6roiwzTe5lpGoMHw7pDZovHdhbxcVOgg4J3trT4,142
|
|
2
|
+
scatter3d/scatter3d.py,sha256=CzbrNEy0OawN-RvQNLktgauJ43C9purNTJAIJf8vi78,37219
|
|
3
|
+
scatter3d/static/scatter3d.js,sha256=HwiDlt1pOW2vKXNjN4lBvvDARuhutPP5934CBCzPxzA,894314
|
|
4
|
+
scatter3d/static/scatter3d.js.map,sha256=sQsIdXZDts0NdySQCXbCDSRm-3TWIYQW4DVe2y-nKHA,3028614
|
|
5
|
+
scatter3d/widget_test.py,sha256=Q9ekr-L0R6Nz9_2CBFufEpZSwo4ZOfInKV_OkIx8KaY,1285
|
|
6
|
+
scatter3d_anywidget-0.1.4.dist-info/WHEEL,sha256=e_m4S054HL0hyR3CpOk-b7Q7fDX6BuFkgL5OjAExXas,80
|
|
7
|
+
scatter3d_anywidget-0.1.4.dist-info/METADATA,sha256=O4dy_h9-Np2f1A46X54_V7dElBf44wFrKbXtm4IENGQ,4697
|
|
8
|
+
scatter3d_anywidget-0.1.4.dist-info/RECORD,,
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
scatter3d/__init__.py,sha256=nVTx6roiwzTe5lpGoMHw7pDZovHdhbxcVOgg4J3trT4,142
|
|
2
|
-
scatter3d/scatter3d.py,sha256=CzbrNEy0OawN-RvQNLktgauJ43C9purNTJAIJf8vi78,37219
|
|
3
|
-
scatter3d/static/scatter3d.js,sha256=6b0wCOi-aWqqEXTWk6U5wrU7ZY8jyLbnr0yhqXzj5G0,894272
|
|
4
|
-
scatter3d/static/scatter3d.js.map,sha256=GHRIYbJyFjtYtQf9v3wZ1FjLM2Ntvzi3LkANsuDdVzQ,3028562
|
|
5
|
-
scatter3d/widget_test.py,sha256=dHoLOaycqJzxksipu2OuiQ2nKprtWt9Ioxfz7Qm_Tvk,1079
|
|
6
|
-
scatter3d_anywidget-0.1.3.dist-info/WHEEL,sha256=XV0cjMrO7zXhVAIyyc8aFf1VjZ33Fen4IiJk5zFlC3g,80
|
|
7
|
-
scatter3d_anywidget-0.1.3.dist-info/METADATA,sha256=yJXEmBva1kqDs6Ek4TMFSukiLq_u4zlaIEQTotIv2vU,4697
|
|
8
|
-
scatter3d_anywidget-0.1.3.dist-info/RECORD,,
|