IOError with calling ex_inits in ubuntu
When in Ubuntu, I call from eppy import ex_inits
, I am getting:
---------------------------------------------------------------------------
IOError Traceback (most recent call last)
<ipython-input-11-0960959d82a4> in <module>()
3 pathnameto_eppy = '../'
4 sys.path.append(pathnameto_eppy)
----> 5 from eppy import ex_inits #no need to know this code, it just shows the image below
/usr/local/lib/python2.7/dist-packages/eppy/ex_inits.py in <module>()
14 from IPython.display import Image
15 from IPython.display import display_pretty, display_html, display_jpeg, display_png, display_json, display_latex, display_svg
---> 16 idfeditor = Image(filename='../docs/images/idf3.png')
17 material_lists = Image(filename='../docs/images/material_lists.png')
18 html_snippet1 = Image(filename='../docs/images/html1.png')
/usr/local/lib/python2.7/dist-packages/IPython/core/display.pyc in __init__(self, data, url, filename, format, embed, width, height, retina, unconfined, metadata)
1019 self.unconfined = unconfined
1020 self.metadata = metadata
-> 1021 super(Image, self).__init__(data=data, url=url, filename=filename)
1022
1023 if retina:
/usr/local/lib/python2.7/dist-packages/IPython/core/display.pyc in __init__(self, data, url, filename)
611 self.filename = None if filename is None else unicode_type(filename)
612
--> 613 self.reload()
614 self._check_data()
615
/usr/local/lib/python2.7/dist-packages/IPython/core/display.pyc in reload(self)
1041 """Reload the raw data from file or URL."""
1042 if self.embed:
-> 1043 super(Image,self).reload()
1044 if self.retina:
1045 self._retina_shape()
/usr/local/lib/python2.7/dist-packages/IPython/core/display.pyc in reload(self)
629 """Reload the raw data from file or URL."""
630 if self.filename is not None:
--> 631 with open(self.filename, self._read_flags) as f:
632 self.data = f.read()
633 elif self.url is not None:
IOError: [Errno 2] No such file or directory: u'../docs/images/idf3.png'
add a comment