Open
Description
Bug report
Bug summary
Plot not being displayed using notebook toolkit on the output widget depending on order of output.
Code for reproduction
cell 1:
%matplotlib notebook
from matplotlib import pyplot as plt
import ipywidgets as wg
cell 2:
test_out = wg.Output()
display(test_out)
with test_out:
plt.figure()
plt.plot([1,2,3])
cell 3:
test_out = wg.Output()
with test_out:
plt.figure()
plt.plot([1,2,3])
display(test_out)
Actual outcome
Expected outcome
same output for cell 3 as cell 2:
Matplotlib version
- Operating system: win
- Matplotlib version: 3.0.2
- Matplotlib backend : nbAgg
- Python version: Python 3.7.1
- Jupyter version (if applicable): 5.7.4
- Other libraries: ipywidgets 7.5.1