notebook_template


Title


In [1]:
from IPython.display import Image
Image(filename="hoge.png",width=600)


---------------------------------------------------------------------------
FileNotFoundError                         Traceback (most recent call last)
<ipython-input-1-d7c1437408c4> in <module>()
      1 from IPython.display import Image
----> 2 Image(filename="hoge.png",width=600)

~/.pyenv/versions/anaconda3-4.4.0/lib/python3.6/site-packages/IPython/core/display.py in __init__(self, data, url, filename, format, embed, width, height, retina, unconfined, metadata)
   1149         self.unconfined = unconfined
   1150         super(Image, self).__init__(data=data, url=url, filename=filename, 
-> 1151                 metadata=metadata)
   1152 
   1153         if self.width is None and self.metadata.get('width', {}):

~/.pyenv/versions/anaconda3-4.4.0/lib/python3.6/site-packages/IPython/core/display.py in __init__(self, data, url, filename, metadata)
    607             self.metadata = {}
    608 
--> 609         self.reload()
    610         self._check_data()
    611 

~/.pyenv/versions/anaconda3-4.4.0/lib/python3.6/site-packages/IPython/core/display.py in reload(self)
   1180         """Reload the raw data from file or URL."""
   1181         if self.embed:
-> 1182             super(Image,self).reload()
   1183             if self.retina:
   1184                 self._retina_shape()

~/.pyenv/versions/anaconda3-4.4.0/lib/python3.6/site-packages/IPython/core/display.py in reload(self)
    632         """Reload the raw data from file or URL."""
    633         if self.filename is not None:
--> 634             with open(self.filename, self._read_flags) as f:
    635                 self.data = f.read()
    636         elif self.url is not None:

FileNotFoundError: [Errno 2] No such file or directory: 'hoge.png'

Section1

Section2

$\begin{equation*} F= \begin{bmatrix} 1 & 0 & 0 & 0\\ 0 & 1 & 0 & 0\\ 0 & 0 & 1 & 0 \\ 0 & 0 & 0 & 0 \\ \end{bmatrix} \end{equation*}$

Ref