Matplotlib plots require pyplot.show()

I noticed that plots made with Matplotlib started to require matplotlib.pyplot.show() to show up despite the interactive Jupyter/iPython backend. Did anyone else experience this?

I assume it is caused by certain iPython/Jupyter versions. I was able to create local conda environments that require and don’t require the show() command.

The one that does not require show() uses ipykernel==6.16.2 and jupyter-client==7.4.4. The buggy one that does requires the show command uses ipykernel==6.16.1 and jupyter-client==7.4.3.

If this would be the cause, would it be possible to globally configure binder not to use those versions, if not explicitly requested?

1 Like