ipympl
ipympl copied to clipboard
fig.canvas displays in all ipywidgets.Tab tabs
In the latest version (0.3.3) a fig.canvas does not display correctly in ipywidgets.Tab. Notional example:
tab = widgets.Tab()
tab.children = [fig1.canvas, fig2.canvas]
tab
The figures appear in both tabs. Not expected and this used to work in previous version (0.2.1). Please also see picture.
This bug is still active in version 0.3. Snippet displays correctly in version 0.2.1. Can anyone reproduce?
I have seen this problem. Putting the canvases in Boxes worked for me, not sure why.
enclosing in a ipywidgets.Box works as a workaround. Thanks @keatonb. I think the Canvas is missing something the other widgets have.