-
Notifications
You must be signed in to change notification settings - Fork 19
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
Matplotlib plots not rendering properly in output widgets. #11
Comments
Thanks for the great bug report. Note that we now automatically capture anything in the render phase to an output widget that is using the display mechanism. E.g. you could do: ...
ax.legend(title='Fruit color')
# with outputWidget:
plt.show()
...
with w.VBox() as vbox:
if render:
plot(None)
w.Button(description="Render", on_click=lambda: setRender(True))
# react.use_effect(displayReacton, [render]) |
Awesome! Thanks for the quick response. I've tested against master, and it seems to fix the issue. The version in conda-forge (1.3.2) still has the bug though, I assume 1.3.3 will be released soonish? |
merged it 10 seconds ago conda-forge/reacton-feedstock#14 :) It can take up to an hour to be available. |
Thanks! 1.3.3 from conda-forge resolves the issue. |
When using an ipywidgets.Output widget in a reacton component, plots are not displayed in notebook. I've tested this with the ipympl and inline backends. It works fine when using ipywidgets directly, and used to work with react-ipywdgets 0.11.
Here's an example that shows both the working case (with ipywidgeds) and the non-working case (reacton).
Software Versions:
The text was updated successfully, but these errors were encountered: