Skip to content

"block" keyword unrecognized in 2.1 in notebook backend #9651

Closed
@juliotux

Description

@juliotux

Aparently, when I call plt.show(block=True) in a notebook, using notebook backend set by %matplotlib notebook, the block keyword is unrecognized.

from matplotlib import pyplot as plt
%matplotlib notebook

f, ax = plt.subplots(1, 1)
ax.plot([1,2,3], [3,2,1], 'k-')
plt.show(block=True)

results in:

~/.anaconda3/lib/python3.6/site-packages/matplotlib/pyplot.py in show(*args, **kw)
    249     """
    250     global _show
--> 251     return _show(*args, **kw)
    252 
    253 

TypeError: show() got an unexpected keyword argument 'block'

My system:
Antergos Linux
Matplotlib: 2.1.0
IPython : 6.1.0
Notebook: 5.0.0
Python: 3.6 (anaconda)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions