Closed brendan0powers closed 1 year ago
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 https://github.com/conda-forge/reacton-feedstock/pull/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: