Skip to content

shinywidgets v0.5.0 and ipyleaflet: 'Map' object has no attribute '_repr_mimebundle_' #184

@jmp75

Description

@jmp75

I looks like the change pull/182 to accomodate plotly v6 breaks dashboards that use ipyleaflet. Upon shiny run app.py I get:

Exception has occurred: AttributeError
'Map' object has no attribute '_repr_mimebundle_'
  File "/home/xyzxyz/src/py-shinywidgets/shinywidgets/_shinywidgets.py", line 128, in _open_shiny_comm
    w._repr_mimebundle_()
    ^^^^^^^^^^^^^^^^^^^
AttributeError: 'Map' object has no attribute '_repr_mimebundle_'

Environment:

shinywidgets installed from source in edit mode at:
commit 92088dbfc7ec013812feec8f9f82c2621263bf5d (HEAD -> main, origin/main, origin/HEAD)
Date:   Wed Jan 29 11:13:15 2025 -0600

    Start new version

and
shiny==1.2.1
ipyleaflet==0.19.2
jupyter-leaflet==0.19.2

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