Skip to content
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

ipywidget's Output widget bug #1596

Closed
giswqs opened this issue Jul 2, 2023 · 0 comments · Fixed by #1597
Closed

ipywidget's Output widget bug #1596

giswqs opened this issue Jul 2, 2023 · 0 comments · Fixed by #1597
Labels
bug Something isn't working

Comments

@giswqs
Copy link
Member

giswqs commented Jul 2, 2023

Geemap uses ipywidget's Output widget substantially to display text and plots. It appears that Output widget behaves different in different environments, causing issues such as disappearing maps in ArcGIS Pro.

The problematic way:

import ipywidgets as widgets
output = widgets.Output()
with output:
    print('Hello World')
output
output.clear_output()

The recommended way:

import ipywidgets as widgets
output = widgets.Output()
output.append_stdout('Hello World')
# output.append_display_data(data)
output
output.outputs = ()

Relevant issues:

@giswqs giswqs added the bug Something isn't working label Jul 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant