Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
jmp75 opened this issue Jan 30, 2025 · 1 comment

Comments

@jmp75
Copy link

jmp75 commented Jan 30, 2025

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
@cpsievert
Copy link
Collaborator

Thanks for reporting! Will release this fix soon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants