how to import %matplotlib code example Example: import matplotlib plt import matplotlib.pyplot as plt