scatter3d-anywidget 0.1.3__py3-none-any.whl → 0.1.5__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/scatter3d.py +23 -0
- scatter3d/static/scatter3d.js +2240 -2217
- scatter3d/static/scatter3d.js.map +1 -1
- scatter3d/widget_test.py +16 -10
- {scatter3d_anywidget-0.1.3.dist-info → scatter3d_anywidget-0.1.5.dist-info}/METADATA +1 -1
- scatter3d_anywidget-0.1.5.dist-info/RECORD +8 -0
- {scatter3d_anywidget-0.1.3.dist-info → scatter3d_anywidget-0.1.5.dist-info}/WHEEL +1 -1
- scatter3d_anywidget-0.1.3.dist-info/RECORD +0 -8
scatter3d/widget_test.py
CHANGED
|
@@ -19,29 +19,35 @@ 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"))
|
|
25
|
+
|
|
26
|
+
species2 = random.choices(species_list, k=num_points)
|
|
27
|
+
species2 = Category(pandas.Series(species2, name="species2"), editable=False)
|
|
22
28
|
|
|
23
29
|
w = Scatter3dWidget(xyz=points, category=species, point_ids=point_ids)
|
|
24
30
|
w.height = 800
|
|
25
31
|
ui = marimo.ui.anywidget(w)
|
|
26
|
-
ui
|
|
27
32
|
return species, ui, w
|
|
28
33
|
|
|
29
34
|
|
|
30
35
|
@app.cell
|
|
31
|
-
def _(species
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
36
|
+
def _(species):
|
|
37
|
+
category = species
|
|
38
|
+
return (category,)
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
@app.cell
|
|
42
|
+
def _(category, ui, w):
|
|
43
|
+
w.category = category
|
|
44
|
+
ui
|
|
37
45
|
return
|
|
38
46
|
|
|
39
47
|
|
|
40
48
|
@app.cell
|
|
41
49
|
def _(w):
|
|
42
|
-
|
|
43
|
-
print(type(w))
|
|
44
|
-
print(inspect.getsource(type(w)._on_lasso_request_t))
|
|
50
|
+
print(w.active_category)
|
|
45
51
|
return
|
|
46
52
|
|
|
47
53
|
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
scatter3d/__init__.py,sha256=nVTx6roiwzTe5lpGoMHw7pDZovHdhbxcVOgg4J3trT4,142
|
|
2
|
+
scatter3d/scatter3d.py,sha256=Ks9wnlYco02gp6yS5t6BAJtlnPHvUBt3Dc4RmF1_RKE,37892
|
|
3
|
+
scatter3d/static/scatter3d.js,sha256=7feUIx-XA7bv605M98gZd5wXf0FPbBCKvUT-JKk0_6E,895154
|
|
4
|
+
scatter3d/static/scatter3d.js.map,sha256=kBH74DOHbV5pdaT2Ri6DfI-2Jjmw-msw12pCGc4XzWw,3030844
|
|
5
|
+
scatter3d/widget_test.py,sha256=yo4z8aga7-140FbLVW8xWxq5h32yIH3IT6j7OljDJB0,1296
|
|
6
|
+
scatter3d_anywidget-0.1.5.dist-info/WHEEL,sha256=e_m4S054HL0hyR3CpOk-b7Q7fDX6BuFkgL5OjAExXas,80
|
|
7
|
+
scatter3d_anywidget-0.1.5.dist-info/METADATA,sha256=V0rT-gB1mtFL-gNRFS1ma7OHq7nMBmjqCa83CacZq3I,4697
|
|
8
|
+
scatter3d_anywidget-0.1.5.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,,
|