Cross reporting from opengeos/leafmap#1200:
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
This still occurs with a fresh conda env, with only leafmap (and its pulled in dependencies) installed.