Browser error: "Failed to load model class 'LeafletMapModel' from module 'jupyter-leaflet'"
bug
<!-- Please search existing issues to avoid creating duplicates. -->
### Environment Information
- leafmap version: 0.52.0
- Python version: 3.13.5
- Operating System: Rocky Linux 9.6
- JupyterLab: 4.4.6
- JupyterHub: 5.3.0
### Description
Trying to load a geotiff via `add_raster` in a JupyterLab on a JupyterHub produces a javascript error in the browser: Failed to load model class 'LeafletMapModel' from module 'jupyter-leaflet', and no map interface is created.
### What I Did
Some information redacted below:
```
import leafmap
m = leafmap.Map()
m.add_raster("/snipped_path/snipped_filename.tif")
m
```
<img width="1340" height="576" alt="Image" src="https://github.com/user-attachments/assets/1455071e-73f8-4ebc-80a7-3f3ffbeef4be" />
2 条评论