Skip to content

Browser error: "Failed to load model class 'LeafletMapModel' from module 'jupyter-leaflet'" #1269

@chippey

Description

@chippey

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
Image

This still occurs with a fresh conda env, with only leafmap (and its pulled in dependencies) installed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions