cesiumjs-anywidget 0.2.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.
@@ -0,0 +1,624 @@
1
+ Metadata-Version: 2.4
2
+ Name: cesiumjs-anywidget
3
+ Version: 0.2.4
4
+ Summary: A Jupyter widget for CesiumJS 3D globe visualization using anywidget
5
+ Project-URL: Homepage, https://github.com/Alex-PLACET/cesiumjs_anywidget
6
+ Project-URL: Repository, https://github.com/Alex-PLACET/cesiumjs_anywidget
7
+ Author: Alex PLACET
8
+ License: Apache License
9
+ Version 2.0, January 2004
10
+ http://www.apache.org/licenses/
11
+
12
+ TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
13
+
14
+ 1. Definitions.
15
+
16
+ "License" shall mean the terms and conditions for use, reproduction,
17
+ and distribution as defined by Sections 1 through 9 of this document.
18
+
19
+ "Licensor" shall mean the copyright owner or entity authorized by
20
+ the copyright owner that is granting the License.
21
+
22
+ "Legal Entity" shall mean the union of the acting entity and all
23
+ other entities that control, are controlled by, or are under common
24
+ control with that entity. For the purposes of this definition,
25
+ "control" means (i) the power, direct or indirect, to cause the
26
+ direction or management of such entity, whether by contract or
27
+ otherwise, or (ii) ownership of fifty percent (50%) or more of the
28
+ outstanding shares, or (iii) beneficial ownership of such entity.
29
+
30
+ "You" (or "Your") shall mean an individual or Legal Entity
31
+ exercising permissions granted by this License.
32
+
33
+ "Source" form shall mean the preferred form for making modifications,
34
+ including but not limited to software source code, documentation
35
+ source, and configuration files.
36
+
37
+ "Object" form shall mean any form resulting from mechanical
38
+ transformation or translation of a Source form, including but
39
+ not limited to compiled object code, generated documentation,
40
+ and conversions to other media types.
41
+
42
+ "Work" shall mean the work of authorship, whether in Source or
43
+ Object form, made available under the License, as indicated by a
44
+ copyright notice that is included in or attached to the work
45
+ (an example is provided in the Appendix below).
46
+
47
+ "Derivative Works" shall mean any work, whether in Source or Object
48
+ form, that is based on (or derived from) the Work and for which the
49
+ editorial revisions, annotations, elaborations, or other modifications
50
+ represent, as a whole, an original work of authorship. For the purposes
51
+ of this License, Derivative Works shall not include works that remain
52
+ separable from, or merely link (or bind by name) to the interfaces of,
53
+ the Work and Derivative Works thereof.
54
+
55
+ "Contribution" shall mean any work of authorship, including
56
+ the original version of the Work and any modifications or additions
57
+ to that Work or Derivative Works thereof, that is intentionally
58
+ submitted to Licensor for inclusion in the Work by the copyright owner
59
+ or by an individual or Legal Entity authorized to submit on behalf of
60
+ the copyright owner. For the purposes of this definition, "submitted"
61
+ means any form of electronic, verbal, or written communication sent
62
+ to the Licensor or its representatives, including but not limited to
63
+ communication on electronic mailing lists, source code control systems,
64
+ and issue tracking systems that are managed by, or on behalf of, the
65
+ Licensor for the purpose of discussing and improving the Work, but
66
+ excluding communication that is conspicuously marked or otherwise
67
+ designated in writing by the copyright owner as "Not a Contribution."
68
+
69
+ "Contributor" shall mean Licensor and any individual or Legal Entity
70
+ on behalf of whom a Contribution has been received by Licensor and
71
+ subsequently incorporated within the Work.
72
+
73
+ 2. Grant of Copyright License. Subject to the terms and conditions of
74
+ this License, each Contributor hereby grants to You a perpetual,
75
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
76
+ copyright license to reproduce, prepare Derivative Works of,
77
+ publicly display, publicly perform, sublicense, and distribute the
78
+ Work and such Derivative Works in Source or Object form.
79
+
80
+ 3. Grant of Patent License. Subject to the terms and conditions of
81
+ this License, each Contributor hereby grants to You a perpetual,
82
+ worldwide, non-exclusive, no-charge, royalty-free, irrevocable
83
+ (except as stated in this section) patent license to make, have made,
84
+ use, offer to sell, sell, import, and otherwise transfer the Work,
85
+ where such license applies only to those patent claims licensable
86
+ by such Contributor that are necessarily infringed by their
87
+ Contribution(s) alone or by combination of their Contribution(s)
88
+ with the Work to which such Contribution(s) was submitted. If You
89
+ institute patent litigation against any entity (including a
90
+ cross-claim or counterclaim in a lawsuit) alleging that the Work
91
+ or a Contribution incorporated within the Work constitutes direct
92
+ or contributory patent infringement, then any patent licenses
93
+ granted to You under this License for that Work shall terminate
94
+ as of the date such litigation is filed.
95
+
96
+ 4. Redistribution. You may reproduce and distribute copies of the
97
+ Work or Derivative Works thereof in any medium, with or without
98
+ modifications, and in Source or Object form, provided that You
99
+ meet the following conditions:
100
+
101
+ (a) You must give any other recipients of the Work or
102
+ Derivative Works a copy of this License; and
103
+
104
+ (b) You must cause any modified files to carry prominent notices
105
+ stating that You changed the files; and
106
+
107
+ (c) You must retain, in the Source form of any Derivative Works
108
+ that You distribute, all copyright, patent, trademark, and
109
+ attribution notices from the Source form of the Work,
110
+ excluding those notices that do not pertain to any part of
111
+ the Derivative Works; and
112
+
113
+ (d) If the Work includes a "NOTICE" text file as part of its
114
+ distribution, then any Derivative Works that You distribute must
115
+ include a readable copy of the attribution notices contained
116
+ within such NOTICE file, excluding those notices that do not
117
+ pertain to any part of the Derivative Works, in at least one
118
+ of the following places: within a NOTICE text file distributed
119
+ as part of the Derivative Works; within the Source form or
120
+ documentation, if provided along with the Derivative Works; or,
121
+ within a display generated by the Derivative Works, if and
122
+ wherever such third-party notices normally appear. The contents
123
+ of the NOTICE file are for informational purposes only and
124
+ do not modify the License. You may add Your own attribution
125
+ notices within Derivative Works that You distribute, alongside
126
+ or as an addendum to the NOTICE text from the Work, provided
127
+ that such additional attribution notices cannot be construed
128
+ as modifying the License.
129
+
130
+ You may add Your own copyright statement to Your modifications and
131
+ may provide additional or different license terms and conditions
132
+ for use, reproduction, or distribution of Your modifications, or
133
+ for any such Derivative Works as a whole, provided Your use,
134
+ reproduction, and distribution of the Work otherwise complies with
135
+ the conditions stated in this License.
136
+
137
+ 5. Submission of Contributions. Unless You explicitly state otherwise,
138
+ any Contribution intentionally submitted for inclusion in the Work
139
+ by You to the Licensor shall be under the terms and conditions of
140
+ this License, without any additional terms or conditions.
141
+ Notwithstanding the above, nothing herein shall supersede or modify
142
+ the terms of any separate license agreement you may have executed
143
+ with Licensor regarding such Contributions.
144
+
145
+ 6. Trademarks. This License does not grant permission to use the trade
146
+ names, trademarks, service marks, or product names of the Licensor,
147
+ except as required for reasonable and customary use in describing the
148
+ origin of the Work and reproducing the content of the NOTICE file.
149
+
150
+ 7. Disclaimer of Warranty. Unless required by applicable law or
151
+ agreed to in writing, Licensor provides the Work (and each
152
+ Contributor provides its Contributions) on an "AS IS" BASIS,
153
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
154
+ implied, including, without limitation, any warranties or conditions
155
+ of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
156
+ PARTICULAR PURPOSE. You are solely responsible for determining the
157
+ appropriateness of using or redistributing the Work and assume any
158
+ risks associated with Your exercise of permissions under this License.
159
+
160
+ 8. Limitation of Liability. In no event and under no legal theory,
161
+ whether in tort (including negligence), contract, or otherwise,
162
+ unless required by applicable law (such as deliberate and grossly
163
+ negligent acts) or agreed to in writing, shall any Contributor be
164
+ liable to You for damages, including any direct, indirect, special,
165
+ incidental, or consequential damages of any character arising as a
166
+ result of this License or out of the use or inability to use the
167
+ Work (including but not limited to damages for loss of goodwill,
168
+ work stoppage, computer failure or malfunction, or any and all
169
+ other commercial damages or losses), even if such Contributor
170
+ has been advised of the possibility of such damages.
171
+
172
+ 9. Accepting Warranty or Additional Liability. While redistributing
173
+ the Work or Derivative Works thereof, You may choose to offer,
174
+ and charge a fee for, acceptance of support, warranty, indemnity,
175
+ or other liability obligations and/or rights consistent with this
176
+ License. However, in accepting such obligations, You may act only
177
+ on Your own behalf and on Your sole responsibility, not on behalf
178
+ of any other Contributor, and only if You agree to indemnify,
179
+ defend, and hold each Contributor harmless for any liability
180
+ incurred by, or claims asserted against, such Contributor by reason
181
+ of your accepting any such warranty or additional liability.
182
+
183
+ END OF TERMS AND CONDITIONS
184
+
185
+ APPENDIX: How to apply the Apache License to your work.
186
+
187
+ To apply the Apache License to your work, attach the following
188
+ boilerplate notice, with the fields enclosed by brackets "[]"
189
+ replaced with your own identifying information. (Don't include
190
+ the brackets!) The text should be enclosed in the appropriate
191
+ comment syntax for the file format. We also recommend that a
192
+ file or class name and description of purpose be included on the
193
+ same "printed page" as the copyright notice for easier
194
+ identification within third-party archives.
195
+
196
+ Copyright [yyyy] [name of copyright owner]
197
+
198
+ Licensed under the Apache License, Version 2.0 (the "License");
199
+ you may not use this file except in compliance with the License.
200
+ You may obtain a copy of the License at
201
+
202
+ http://www.apache.org/licenses/LICENSE-2.0
203
+
204
+ Unless required by applicable law or agreed to in writing, software
205
+ distributed under the License is distributed on an "AS IS" BASIS,
206
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
207
+ See the License for the specific language governing permissions and
208
+ limitations under the License.
209
+ License-File: LICENSE
210
+ Classifier: Development Status :: 3 - Alpha
211
+ Classifier: Framework :: Jupyter
212
+ Classifier: Intended Audience :: Developers
213
+ Classifier: Intended Audience :: Science/Research
214
+ Classifier: License :: OSI Approved :: Apache Software License
215
+ Classifier: Programming Language :: Python :: 3
216
+ Classifier: Programming Language :: Python :: 3.8
217
+ Classifier: Programming Language :: Python :: 3.9
218
+ Classifier: Programming Language :: Python :: 3.10
219
+ Classifier: Programming Language :: Python :: 3.11
220
+ Classifier: Programming Language :: Python :: 3.12
221
+ Requires-Python: >=3.8
222
+ Requires-Dist: anywidget>=0.9.0
223
+ Requires-Dist: traitlets>=5.0.0
224
+ Provides-Extra: dev
225
+ Requires-Dist: jupyterlab>=4.0.0; extra == 'dev'
226
+ Requires-Dist: notebook>=7.0.0; extra == 'dev'
227
+ Requires-Dist: pytest-cov>=4.0.0; extra == 'dev'
228
+ Requires-Dist: pytest>=7.0.0; extra == 'dev'
229
+ Description-Content-Type: text/markdown
230
+
231
+ # CesiumJS Anywidget
232
+
233
+ A Jupyter widget for interactive 3D globe visualization using [CesiumJS](https://cesium.com/cesiumjs/) and [anywidget](https://anywidget.dev/).
234
+
235
+ ## Features
236
+
237
+ - 🌍 **Interactive 3D Globe**: Full CesiumJS viewer integration
238
+ - 🎯 **Camera Control**: Fly to locations with smooth animations
239
+ - 🔄 **Bidirectional Sync**: Camera state syncs between Python and JavaScript
240
+ - 🗺️ **GeoJSON Support**: Load and visualize GeoJSON data
241
+ - 🏔️ **Terrain & Imagery**: World terrain and satellite imagery
242
+ - 📏 **Measurement Tools**: Built-in distance, multi-point, and height measurement tools
243
+ - ⚙️ **Highly Configurable**: Customize viewer options and UI elements
244
+
245
+ ## Installation
246
+
247
+ Using uv (recommended):
248
+
249
+ ```bash
250
+ uv pip install cesiumjs-anywidget
251
+ ```
252
+
253
+ Or for development:
254
+
255
+ ```bash
256
+ git clone https://github.com/Alex-PLACET/cesiumjs_anywidget.git
257
+ cd cesiumjs_anywidget
258
+ uv pip install -e ".[dev]"
259
+ ```
260
+
261
+ ## Quick Start
262
+
263
+ ```python
264
+ from cesiumjs_anywidget import CesiumWidget
265
+
266
+ # Create and display the widget
267
+ widget = CesiumWidget(height="700px")
268
+ widget
269
+ ```
270
+
271
+ ## Usage Examples
272
+
273
+ ### Fly to a Location
274
+
275
+ ```python
276
+ # Fly to New York City
277
+ widget.fly_to(latitude=40.7128, longitude=-74.0060, altitude=50000)
278
+
279
+ # Fly to Mount Everest
280
+ widget.fly_to(latitude=27.9881, longitude=86.9250, altitude=20000)
281
+ ```
282
+
283
+ ### Advanced Camera Control
284
+
285
+ ```python
286
+ # Set camera with custom orientation
287
+ widget.set_view(
288
+ latitude=40.7128,
289
+ longitude=-74.0060,
290
+ altitude=5000,
291
+ heading=45.0, # Rotate view 45 degrees
292
+ pitch=-45.0, # Look at angle instead of straight down
293
+ roll=0.0
294
+ )
295
+ ```
296
+
297
+ ### Read Camera State
298
+
299
+ ```python
300
+ # Camera position is synchronized bidirectionally
301
+ print(f"Latitude: {widget.latitude:.4f}°")
302
+ print(f"Longitude: {widget.longitude:.4f}°")
303
+ print(f"Altitude: {widget.altitude:.2f} meters")
304
+ ```
305
+
306
+ ### Visualize GeoJSON Data
307
+
308
+ ```python
309
+ geojson_data = {
310
+ "type": "FeatureCollection",
311
+ "features": [
312
+ {
313
+ "type": "Feature",
314
+ "geometry": {
315
+ "type": "Point",
316
+ "coordinates": [-74.0060, 40.7128]
317
+ },
318
+ "properties": {
319
+ "name": "New York City"
320
+ }
321
+ }
322
+ ]
323
+ }
324
+
325
+ widget.load_geojson(geojson_data)
326
+ ```
327
+
328
+ ### Visualize CZML Data
329
+
330
+ CZML (Cesium Language) is a JSON format for describing time-dynamic graphical scenes. It's particularly useful for animations and complex visualizations.
331
+
332
+ ```python
333
+ # Simple CZML example - as Python list
334
+ czml_data = [
335
+ {
336
+ "id": "document",
337
+ "name": "Simple CZML",
338
+ "version": "1.0"
339
+ },
340
+ {
341
+ "id": "point",
342
+ "name": "Location",
343
+ "position": {
344
+ "cartographicDegrees": [-74.0060, 40.7128, 0]
345
+ },
346
+ "point": {
347
+ "pixelSize": 10,
348
+ "color": {
349
+ "rgba": [255, 0, 0, 255]
350
+ }
351
+ }
352
+ }
353
+ ]
354
+
355
+ widget.load_czml(czml_data)
356
+ ```
357
+
358
+ Or from a JSON string:
359
+
360
+ ```python
361
+ import json
362
+
363
+ # CZML as JSON string
364
+ czml_json = json.dumps([
365
+ {"id": "document", "version": "1.0"},
366
+ {
367
+ "id": "satellite",
368
+ "position": {
369
+ "cartographicDegrees": [-75, 40, 500000]
370
+ },
371
+ "point": {"pixelSize": 8, "color": {"rgba": [0, 255, 0, 255]}}
372
+ }
373
+ ])
374
+
375
+ widget.load_czml(czml_json)
376
+ ```
377
+
378
+ You can use the [czml3](https://github.com/Stoops-ML/czml3) library to generate CZML more easily, then pass the output as a string or list.
379
+
380
+ ### Configure Viewer Options
381
+
382
+ ```python
383
+ # Create widget with custom configuration
384
+ widget = CesiumWidget(
385
+ height="700px",
386
+ enable_terrain=True,
387
+ enable_lighting=True,
388
+ show_timeline=True,
389
+ show_animation=True,
390
+ latitude=27.9881,
391
+ longitude=86.9250,
392
+ altitude=30000
393
+ )
394
+ ```
395
+
396
+ ## Development
397
+
398
+ Enable hot module replacement for live updates during development:
399
+
400
+ ```bash
401
+ export ANYWIDGET_HMR=1
402
+ jupyter lab
403
+ ```
404
+
405
+ ### Running Tests
406
+
407
+ ```bash
408
+ # Install with dev dependencies
409
+ uv pip install -e ".[dev]"
410
+
411
+ # Run all tests
412
+ pytest
413
+
414
+ # Run with coverage
415
+ pytest --cov=cesiumjs_anywidget --cov-report=html
416
+
417
+ # Or use make
418
+ make test
419
+ make test-cov
420
+ ```
421
+
422
+ See [tests/README.md](tests/README.md) for detailed testing documentation.
423
+
424
+ ## Measurement Tools
425
+
426
+ The widget includes built-in measurement tools for spatial analysis:
427
+
428
+ ### Distance Measurement
429
+
430
+ Measure the distance between two points:
431
+
432
+ ```python
433
+ # Enable distance measurement mode
434
+ widget.enable_measurement(mode="distance")
435
+
436
+ # Click two points in the viewer to measure distance
437
+ # Results are automatically synced to Python
438
+ measurements = widget.get_measurements()
439
+ print(f"Distance: {measurements[0]['value']:.2f} meters")
440
+ ```
441
+
442
+ ### Multi-Point Distance Measurement
443
+
444
+ Measure distances along a polyline with multiple points:
445
+
446
+ ```python
447
+ # Enable multi-point distance measurement
448
+ widget.enable_measurement(mode="multi-distance")
449
+
450
+ # Click multiple points to create a polyline
451
+ # Right-click to finish the measurement
452
+ # Total distance is calculated automatically
453
+ ```
454
+
455
+ ### Height Measurement
456
+
457
+ Measure vertical height from ground to a point (useful for buildings):
458
+
459
+ ```python
460
+ # Enable height measurement
461
+ widget.enable_measurement(mode="height")
462
+
463
+ # Click on a point to measure its height above ground
464
+ measurements = widget.get_measurements()
465
+ print(f"Height: {measurements[0]['value']:.2f} meters")
466
+ ```
467
+
468
+ ### Managing Measurements
469
+
470
+ ```python
471
+ # Get all measurement results
472
+ measurements = widget.get_measurements()
473
+ for m in measurements:
474
+ print(f"Type: {m['type']}, Value: {m['value']:.2f}m")
475
+
476
+ # Clear all measurements
477
+ widget.clear_measurements()
478
+
479
+ # Disable measurement mode
480
+ widget.disable_measurement()
481
+ ```
482
+
483
+ ### Loading Measurements from Python
484
+
485
+ You can programmatically add measurements with specific coordinates:
486
+
487
+ ```python
488
+ # Load a distance measurement between two points
489
+ measurements_data = [
490
+ {
491
+ "type": "distance",
492
+ "name": "Bridge Length",
493
+ "points": [
494
+ {"coordinates": [-74.0445, 40.6892, 10]}, # [lon, lat, alt]
495
+ {"coordinates": [-73.9626, 40.8075, 10]}
496
+ ]
497
+ }
498
+ ]
499
+ widget.load_measurements(measurements_data)
500
+
501
+ # Load an area measurement (polygon)
502
+ area_data = [
503
+ {
504
+ "type": "area",
505
+ "name": "Central Park",
506
+ "points": [
507
+ {"coordinates": [-73.9812, 40.7681, 0]},
508
+ {"coordinates": [-73.9581, 40.7681, 0]},
509
+ {"coordinates": [-73.9581, 40.8005, 0]},
510
+ {"coordinates": [-73.9812, 40.8005, 0]}
511
+ ]
512
+ }
513
+ ]
514
+ widget.load_measurements(area_data)
515
+
516
+ # Focus camera on a specific measurement
517
+ widget.focus_on_measurement(0) # Focus on first measurement
518
+ ```
519
+
520
+ ### Controlling Measurement UI Visibility
521
+
522
+ You can show/hide the measurement tools and list panel:
523
+
524
+ ```python
525
+ # Hide measurement tools (toolbar)
526
+ widget.hide_tools()
527
+ # Or: widget.show_measurement_tools = False
528
+
529
+ # Show tools again
530
+ widget.show_tools()
531
+ # Or: widget.show_measurement_tools = True
532
+
533
+ # Hide the measurements list panel
534
+ widget.hide_list()
535
+ # Or: widget.show_measurements_list = False
536
+
537
+ # Show list again
538
+ widget.show_list()
539
+ # Or: widget.show_measurements_list = True
540
+
541
+ # Create a clean viewer without measurement tools
542
+ widget = CesiumWidget(
543
+ show_measurement_tools=False,
544
+ show_measurements_list=False
545
+ )
546
+ ```
547
+
548
+ Each measurement includes:
549
+ - `type`: Measurement type (`'distance'`, `'multi-distance'`, `'height'`, or `'area'`)
550
+ - `value`: Measured value in meters (distance) or square meters (area)
551
+ - `points`: List of coordinates with `lat`, `lon`, `alt` properties
552
+ - `name`: Optional name for the measurement (auto-generated if not provided)
553
+
554
+ ## API Reference
555
+
556
+ ### CesiumWidget
557
+
558
+ **Parameters:**
559
+ - `latitude` (float): Camera latitude in degrees (default: 0.0)
560
+ - `longitude` (float): Camera longitude in degrees (default: 0.0)
561
+ - `altitude` (float): Camera altitude in meters (default: 20000000.0)
562
+ - `heading` (float): Camera heading in degrees (default: 0.0)
563
+ - `pitch` (float): Camera pitch in degrees (default: -90.0)
564
+ - `roll` (float): Camera roll in degrees (default: 0.0)
565
+ - `height` (str): Widget height CSS value (default: "600px")
566
+ - `enable_terrain` (bool): Enable terrain visualization (default: True)
567
+ - `enable_lighting` (bool): Enable scene lighting (default: False)
568
+ - `show_timeline` (bool): Show timeline widget (default: False)
569
+ - `show_animation` (bool): Show animation widget (default: False)
570
+ - `ion_access_token` (str): Cesium Ion access token (optional)
571
+ - `geojson_data` (dict): GeoJSON data to display (optional)
572
+ - `czml_data` (list): CZML data to display (optional)
573
+ - `measurement_mode` (str): Active measurement mode (default: "")
574
+ - `measurement_results` (list): List of measurement results (default: [])
575
+ - `show_measurement_tools` (bool): Show measurement toolbar (default: True)
576
+ - `show_measurements_list` (bool): Show measurements list panel (default: True)
577
+
578
+ **Methods:**
579
+ - `fly_to(latitude, longitude, altitude=10000, duration=3.0)`: Fly camera to location
580
+ - `set_view(latitude, longitude, altitude=10000, heading=0.0, pitch=-90.0, roll=0.0)`: Set camera view instantly
581
+ - `load_geojson(geojson)`: Load GeoJSON data for visualization
582
+ - `load_czml(czml)`: Load CZML data for time-dynamic visualization
583
+ - `enable_measurement(mode="distance")`: Enable measurement tool (modes: 'distance', 'multi-distance', 'height', 'area')
584
+ - `disable_measurement()`: Disable measurement tool
585
+ - `get_measurements()`: Get all measurement results
586
+ - `clear_measurements()`: Clear all measurements from viewer
587
+ - `load_measurements(measurements)`: Load measurements from Python data
588
+ - `focus_on_measurement(index)`: Fly camera to specific measurement
589
+ - `show_tools()`: Show the measurement tools toolbar
590
+ - `hide_tools()`: Hide the measurement tools toolbar
591
+ - `show_list()`: Show the measurements list panel
592
+ - `hide_list()`: Hide the measurements list panel
593
+
594
+ ## Examples
595
+
596
+ See the [examples](examples/) directory for Jupyter notebook demonstrations.
597
+
598
+ ## Troubleshooting
599
+
600
+ If you encounter issues with widget initialization:
601
+
602
+ ```python
603
+ from cesiumjs_anywidget import CesiumWidget
604
+ widget = CesiumWidget()
605
+ widget.debug_info() # Show debug information
606
+ ```
607
+
608
+ Common fixes:
609
+ - **Open browser DevTools (F12)** and check the Console tab for errors
610
+ - Try without terrain: `widget = CesiumWidget(enable_terrain=False)`
611
+ - Ensure you're using JupyterLab 4.0+ or Jupyter Notebook 7.0+
612
+ - Check internet connection (CesiumJS loads from CDN)
613
+
614
+ See [TROUBLESHOOTING.md](TROUBLESHOOTING.md) for detailed debugging guide.
615
+
616
+ ## License
617
+
618
+ Apache License 2.0 - see [LICENSE](LICENSE) file for details.
619
+
620
+ ## Acknowledgments
621
+
622
+ - Built with [anywidget](https://anywidget.dev/)
623
+ - Powered by [CesiumJS](https://cesium.com/cesiumjs/)
624
+ - Uses [Cesium Ion](https://cesium.com/ion/) for terrain and imagery
@@ -0,0 +1,8 @@
1
+ cesiumjs_anywidget/__init__.py,sha256=9WVcAtreHgk6C5clPG6sZy4m7s5AIbGU1DJ4oDpx3Is,165
2
+ cesiumjs_anywidget/styles.css,sha256=kt2i9fJuM6gaR7WkoQ2VGGoHzhqy6RpJVK2xwMKPV70,689
3
+ cesiumjs_anywidget/widget.py,sha256=7RnZgQxkiKso6CjH4ciZi4JjJwBOI-cxuXRd2Ap7WGM,13646
4
+ cesiumjs_anywidget/index.js,sha256=6vqb7UM8cxeJyuyDIw2IJcsaPXRjKsSRCXbWEJNTmZk,54315
5
+ cesiumjs_anywidget-0.2.4.dist-info/METADATA,sha256=ToDMpPDZ9wUGJPLGjOML5ElawxeYUTtz3WTWqOBi9r8,24778
6
+ cesiumjs_anywidget-0.2.4.dist-info/WHEEL,sha256=qtCwoSJWgHk21S1Kb4ihdzI2rlJ1ZKaIurTj_ngOhyQ,87
7
+ cesiumjs_anywidget-0.2.4.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
8
+ cesiumjs_anywidget-0.2.4.dist-info/RECORD,,
@@ -0,0 +1,4 @@
1
+ Wheel-Version: 1.0
2
+ Generator: hatchling 1.27.0
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any