I am working on jupyter and python 2. When I try to use this command
from matplotlib import pyplot as plt
in jupyter notebook it shoes this error
ImportError Traceback (most recent call last)
<ipython-input-4-99ba79ecbbfb> in <module>()
----> 1 from matplotlib import pyplot as plt
/home/adarsh/.local/lib/python2.7/site-packages/matplotlib/__init__.py in <module>()
124 # cbook must import matplotlib only within function
125 # definitions, so it is safe to import from it here.
--> 126 from . import cbook
127 from matplotlib.cbook import (
128 _backports, mplDeprecation, dedent, get_label, sanitize_sequence)
ImportError: cannot import name cbook
I use ubuntu
Any idea how to fix it ?