scatter3d-anywidget 0.1.6__py3-none-any.whl → 0.1.8__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,27 @@ 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
+ return
57
+
58
+
59
+ @app.cell
60
+ def _():
61
+ return
62
+
63
+
64
+ @app.cell
65
+ def _(Scatter3dWidget):
66
+ import scatter3d, inspect
67
+
68
+ print("scatter3d module:", scatter3d.__file__)
69
+ print("Scatter3dWidget source:", inspect.getsourcefile(Scatter3dWidget))
70
+ print("Scatter3dWidget._sync_traitlets_from_category line:", Scatter3dWidget._sync_traitlets_from_category.__code__.co_firstlineno)
51
71
  return
52
72
 
53
73
 
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: scatter3d-anywidget
3
- Version: 0.1.6
3
+ Version: 0.1.8
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=3-XzBq2rZvwdN9OBWYH8VmmeKZmZx2DOlKvbhDihC1E,895680
4
+ scatter3d/static/scatter3d.js.map,sha256=SYuhVohwHHGIaezYNs19UP59Jr7R3HXD71uW3B-9C7o,3033157
5
+ scatter3d/widget_test.py,sha256=rnLO13uzSJV3uKwYR_xpp-QECd_hi-LC-Ff2bV0AvZM,1866
6
+ scatter3d_anywidget-0.1.8.dist-info/WHEEL,sha256=fAguSjoiATBe7TNBkJwOjyL1Tt4wwiaQGtNtjRPNMQA,80
7
+ scatter3d_anywidget-0.1.8.dist-info/METADATA,sha256=hpZIJN3XJECIkkNMsPFKU_h8E5Zknt-qhk5Z-MiPsts,4697
8
+ scatter3d_anywidget-0.1.8.dist-info/RECORD,,
@@ -1,8 +0,0 @@
1
- scatter3d/__init__.py,sha256=nVTx6roiwzTe5lpGoMHw7pDZovHdhbxcVOgg4J3trT4,142
2
- scatter3d/scatter3d.py,sha256=YWoYl1KoiVWphDM43Hm4y_Guj-FL1zDj791s9OeeM4w,38964
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=yo4z8aga7-140FbLVW8xWxq5h32yIH3IT6j7OljDJB0,1296
6
- scatter3d_anywidget-0.1.6.dist-info/WHEEL,sha256=fAguSjoiATBe7TNBkJwOjyL1Tt4wwiaQGtNtjRPNMQA,80
7
- scatter3d_anywidget-0.1.6.dist-info/METADATA,sha256=-8yuM5Iz7b_rI-TQAKjD8TuDVSLd9pCTVCKGpPddPCs,4697
8
- scatter3d_anywidget-0.1.6.dist-info/RECORD,,