How to check installed version of Matplotlib

In [1]:
import matplotlib
print('matplotlib: {}'.format(matplotlib.__version__))
matplotlib: 2.2.3
In [3]:
import matplotlib
print(matplotlib.__version__)
2.2.3
In [5]:
import matplotlib as mpl
print(mpl.__version__)
2.2.3