scatter3d-anywidget 0.1.5__py3-none-any.whl → 0.1.7__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/widget_test.py CHANGED
@@ -18,7 +18,7 @@ def _():
18
18
  points = np.random.randn(num_points, 3)
19
19
  species_list = ["species1", "species2", "species3"]
20
20
  species = random.choices(species_list, k=num_points)
21
- species = Category(pandas.Series(species, name="species"))
21
+ species = Category(pandas.Series(species, name="species"), editable=False)
22
22
  countries_list = ["country1", "country2", "country3"]
23
23
  countries = random.choices(countries_list, k=num_points)
24
24
  countries = Category(pandas.Series(countries, name="countries"))
@@ -29,12 +29,12 @@ def _():
29
29
  w = Scatter3dWidget(xyz=points, category=species, point_ids=point_ids)
30
30
  w.height = 800
31
31
  ui = marimo.ui.anywidget(w)
32
- return species, ui, w
32
+ return Scatter3dWidget, countries, ui, w
33
33
 
34
34
 
35
35
  @app.cell
36
- def _(species):
37
- category = species
36
+ def _(countries):
37
+ category = countries
38
38
  return (category,)
39
39
 
40
40
 
@@ -47,7 +47,28 @@ def _(category, ui, w):
47
47
 
48
48
  @app.cell
49
49
  def _(w):
50
- print(w.active_category)
50
+ widget = w
51
+
52
+ print("AFTER click:",
53
+ "mode=", widget.interaction_mode_t,
54
+ "editable=", widget.category_editable_t,
55
+ "active=", widget.active_category_t)
56
+
57
+ return
58
+
59
+
60
+ @app.cell
61
+ def _():
62
+ return
63
+
64
+
65
+ @app.cell
66
+ def _(Scatter3dWidget):
67
+ import scatter3d, inspect
68
+
69
+ print("scatter3d module:", scatter3d.__file__)
70
+ print("Scatter3dWidget source:", inspect.getsourcefile(Scatter3dWidget))
71
+ print("Scatter3dWidget._sync_traitlets_from_category line:", Scatter3dWidget._sync_traitlets_from_category.__code__.co_firstlineno)
51
72
  return
52
73
 
53
74
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: scatter3d-anywidget
3
- Version: 0.1.5
3
+ Version: 0.1.7
4
4
  Summary: 3D scatter widget with lasso selection
5
5
  License: MIT
6
6
  Classifier: Development Status :: 3 - Alpha
@@ -0,0 +1,8 @@
1
+ scatter3d/__init__.py,sha256=nVTx6roiwzTe5lpGoMHw7pDZovHdhbxcVOgg4J3trT4,142
2
+ scatter3d/scatter3d.py,sha256=LEtWsWz1oCppcxwimadfbbeFzMsOOSvBd1xD6qXFIh8,38693
3
+ scatter3d/static/scatter3d.js,sha256=-Rr1UZ6Pq5aftlu2U8Jo6QV8bDKDHdzlBKdrLXpqFhg,895658
4
+ scatter3d/static/scatter3d.js.map,sha256=fu8v8UiyY-cuOoNKlBStcQZSprH7oRYhGE-pqpx4vgc,3032982
5
+ scatter3d/widget_test.py,sha256=cWT3YfOb2g8H0UlgWgU4ANhJ2ltxcyhQkkXLivXrz-U,1867
6
+ scatter3d_anywidget-0.1.7.dist-info/WHEEL,sha256=fAguSjoiATBe7TNBkJwOjyL1Tt4wwiaQGtNtjRPNMQA,80
7
+ scatter3d_anywidget-0.1.7.dist-info/METADATA,sha256=w2rmls61SiVPtdpPpgchYvWkqjum-tZzkns2b-tQN8U,4697
8
+ scatter3d_anywidget-0.1.7.dist-info/RECORD,,
@@ -1,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: uv 0.9.27
2
+ Generator: uv 0.9.28
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
@@ -1,8 +0,0 @@
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,,