scatter3d-anywidget 0.1.2__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/widget_test.py CHANGED
@@ -19,13 +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)
27
+ w.height = 800
24
28
  ui = marimo.ui.anywidget(w)
25
- ui
26
29
  return species, ui, w
27
30
 
28
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
+
29
45
  @app.cell
30
46
  def _(species, ui, w):
31
47
  ui.lasso_result_t
@@ -36,13 +52,5 @@ def _(species, ui, w):
36
52
  return
37
53
 
38
54
 
39
- @app.cell
40
- def _(w):
41
- import inspect
42
- print(type(w))
43
- print(inspect.getsource(type(w)._on_lasso_request_t))
44
- return
45
-
46
-
47
55
  if __name__ == "__main__":
48
56
  app.run()
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.3
2
2
  Name: scatter3d-anywidget
3
- Version: 0.1.2
3
+ Version: 0.1.4
4
4
  Summary: 3D scatter widget with lasso selection
5
5
  License: MIT
6
6
  Classifier: Development Status :: 3 - Alpha
@@ -14,8 +14,8 @@ Requires-Dist: narwhals>=2.14.0
14
14
  Requires-Dist: numpy>=2.3.5
15
15
  Requires-Python: >=3.13
16
16
  Project-URL: Homepage, https://github.com/JoseBlanca/any_scatter3d
17
- Project-URL: Issues, https://github.com/JoseBlanca/any_scatter3d/issues
18
17
  Project-URL: Repository, https://github.com/JoseBlanca/any_scatter3d
18
+ Project-URL: Issues, https://github.com/JoseBlanca/any_scatter3d/issues
19
19
  Description-Content-Type: text/markdown
20
20
 
21
21
  # scatter3d-anywidget
@@ -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,4 +1,4 @@
1
1
  Wheel-Version: 1.0
2
- Generator: uv 0.9.24
2
+ Generator: uv 0.9.27
3
3
  Root-Is-Purelib: true
4
- Tag: py3-none-any
4
+ Tag: py3-none-any
@@ -1,8 +0,0 @@
1
- scatter3d/__init__.py,sha256=nVTx6roiwzTe5lpGoMHw7pDZovHdhbxcVOgg4J3trT4,142
2
- scatter3d/scatter3d.py,sha256=HPAjrZWAEAaOPBuQnN1Lh2PzFyPajNPLrHi60EM5_Yg,36334
3
- scatter3d/static/scatter3d.js,sha256=TpMbhUKtVOHg8Aydh00Ti0N8iTs90TeAsMSxLhvip-0,889726
4
- scatter3d/static/scatter3d.js.map,sha256=gd3ISXRZrHl_rQ9W5AZqyGU12T-dggRkFnytpp-ZrpQ,3013931
5
- scatter3d/widget_test.py,sha256=sWxewIrhcNwssyd6TJyG1ulXciPX7D0QRLxVxml6VhQ,1060
6
- scatter3d_anywidget-0.1.2.dist-info/WHEEL,sha256=eycQt0QpYmJMLKpE3X9iDk8R04v2ZF0x82ogq-zP6bQ,79
7
- scatter3d_anywidget-0.1.2.dist-info/METADATA,sha256=0bURpON3pHQkuhAPm6JpjgM7skv6i25-yM5s3FsS-no,4697
8
- scatter3d_anywidget-0.1.2.dist-info/RECORD,,