There may be some conflicts between nbAgg backend and visualpython. For more details about nbAgg backend, see https://matplotlib.org/stable/users/explain/backends.html. There are three pictures displaying the code and the comparison between with and without visualpython.
Code:

With visualpython:

Without visualpython:

There may be some conflicts between nbAgg backend and visualpython. For more details about nbAgg backend, see https://matplotlib.org/stable/users/explain/backends.html. There are three pictures displaying the code and the comparison between with and without visualpython.
Code:
With visualpython:
Without visualpython: