This can happen if you abort a script while it is in the middle of importing matplotllib. Try force quitting pythonista, then try again. The other thing that can happen is if you either name a script something that conflicts, say, matplotlib.py, or if you have installed anything into site-packages that does. If you still have this problem after force quitting pythonista, tap the Print Traceback button, to print and then post the full traceback.
Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.