Skip to content

plt.show(block=False) should not block code execution for WebAgg  #18849

Open
@Sandy4321

Description

@Sandy4321

Bug report

Bug summary
WebAgg blocks python code at plt.show(block=False)

plt.show(block=False) should not block code execution
Code for reproduction
import matplotlib as mpl
mpl.use('WebAgg')
#mpl.use('WXAgg')
import matplotlib.pyplot as plt
from matplotlib.pyplot import plot, ion, show
ion() # enables interactive mode

do your plotting

import numpy as np
a=np.random.random(100)
b=np.random.random(100)
plt.plot(a,b)
#plt.draw()
plt.show()
#plt.show(block=False)

q=0

# Paste your code here
#
#

Actual outcome

# If applicable, paste the console output here
#
#

Expected outcome

Matplotlib version

  • Operating system:
  • Matplotlib version:
  • Matplotlib backend (print(matplotlib.get_backend())):
  • Python version:
  • Jupyter version (if applicable):
  • Other libraries:

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