In [2]:
import matplotlib.pyplot as plt
from matplotlib.image import imread
img = imread('path/to/image')
plt.imshow(img)
plt.show()
---------------------------------------------------------------------------
FileNotFoundError Traceback (most recent call last)
<ipython-input-2-17cfd00aad5f> in <module>()
2 from matplotlib.image import imread
3
----> 4 img = imread('http://localhost:8888/kernelspecs/python3/logo-64x64.png')
5 plt.imshow(img)
6
/Users/takaaki-suzuki/.pyenv/versions/anaconda3-2.2.0/lib/python3.4/site-packages/matplotlib/image.py in imread(fname, format)
1265 # tricky in C.
1266 if cbook.is_string_like(fname):
-> 1267 with open(fname, 'rb') as fd:
1268 return handler(fd)
1269 else:
FileNotFoundError: [Errno 2] No such file or directory: 'http://localhost:8888/kernelspecs/python3/logo-64x64.png'
In [ ]:
Content source: soudegesu/deep_study
Similar notebooks: