cloudglancer 0.1.8__tar.gz → 0.1.9__tar.gz

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.
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cloudglancer
3
- Version: 0.1.8
3
+ Version: 0.1.9
4
4
  Summary: Simple interactive visualization of 3D point clouds
5
5
  Author-email: Your Name <your.email@example.com>
6
6
  License: MIT
@@ -24,7 +24,7 @@ Requires-Dist: plotly>=5.0.0
24
24
  Requires-Dist: pandas>=2.0.0
25
25
  Requires-Dist: numpy>=1.24.0
26
26
  Requires-Dist: nbformat>=4.2.0
27
- Requires-Dist: kaleido<1.0,>=0.2.1
27
+ Requires-Dist: kaleido>=0.2.1
28
28
  Requires-Dist: Pillow>=9.0.0
29
29
  Requires-Dist: tqdm>=4.0.0
30
30
  Provides-Extra: dev
@@ -56,6 +56,11 @@ def _init_worker(fig_dict: dict) -> None:
56
56
  warnings.filterwarnings("ignore", category=DeprecationWarning,
57
57
  message=r".*[Kk]aleido.*")
58
58
  _WORKER_FIG_DICT = fig_dict
59
+ import kaleido
60
+ if hasattr(kaleido, "start_sync_server"):
61
+ # kaleido >= 1 launches a new Chrome per to_image() call unless a
62
+ # server is running; keep one Chrome per worker for all its frames.
63
+ kaleido.start_sync_server(silence_warnings=True)
59
64
 
60
65
 
61
66
  def _render_frame(args: Tuple[dict, int, int]) -> bytes:
@@ -135,7 +140,7 @@ def animate(
135
140
  except ImportError as e:
136
141
  raise ImportError(
137
142
  "animate() requires kaleido for PNG export. "
138
- "Install it with `pip install 'kaleido<1.0'`."
143
+ "Install it with `pip install kaleido`."
139
144
  ) from e
140
145
 
141
146
  axis_vec = _AXIS_VECTORS[axis]
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cloudglancer
3
- Version: 0.1.8
3
+ Version: 0.1.9
4
4
  Summary: Simple interactive visualization of 3D point clouds
5
5
  Author-email: Your Name <your.email@example.com>
6
6
  License: MIT
@@ -24,7 +24,7 @@ Requires-Dist: plotly>=5.0.0
24
24
  Requires-Dist: pandas>=2.0.0
25
25
  Requires-Dist: numpy>=1.24.0
26
26
  Requires-Dist: nbformat>=4.2.0
27
- Requires-Dist: kaleido<1.0,>=0.2.1
27
+ Requires-Dist: kaleido>=0.2.1
28
28
  Requires-Dist: Pillow>=9.0.0
29
29
  Requires-Dist: tqdm>=4.0.0
30
30
  Provides-Extra: dev
@@ -2,7 +2,7 @@ plotly>=5.0.0
2
2
  pandas>=2.0.0
3
3
  numpy>=1.24.0
4
4
  nbformat>=4.2.0
5
- kaleido<1.0,>=0.2.1
5
+ kaleido>=0.2.1
6
6
  Pillow>=9.0.0
7
7
  tqdm>=4.0.0
8
8
 
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "cloudglancer"
7
- version = "0.1.8"
7
+ version = "0.1.9"
8
8
  description = "Simple interactive visualization of 3D point clouds"
9
9
  readme = "README.md"
10
10
  requires-python = ">=3.9"
@@ -29,7 +29,7 @@ dependencies = [
29
29
  "pandas>=2.0.0",
30
30
  "numpy>=1.24.0",
31
31
  "nbformat>=4.2.0",
32
- "kaleido>=0.2.1,<1.0",
32
+ "kaleido>=0.2.1",
33
33
  "Pillow>=9.0.0",
34
34
  "tqdm>=4.0.0",
35
35
  ]
File without changes
File without changes
File without changes
File without changes