Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Jupyter interactive display inside output order dependant #17576

Open
@shaielc

Description

@shaielc

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

mpl_bug

Expected outcome

same output for cell 3 as cell 2:

mpl_bug

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions