Skip to content

02-idp-document-extraction-01.ipynb #8

@jonreade

Description

@jonreade

Document

documentName = "simple-document-image.jpg"
display(Image(filename=documentName))

ERROR:

FileNotFoundError Traceback (most recent call last)
in
----> 1 display(Image(filename=documentName))

/opt/conda/lib/python3.7/site-packages/IPython/core/display.py in init(self, data, url, filename, format, embed, width, height, retina, unconfined, metadata)
1230 self.unconfined = unconfined
1231 super(Image, self).init(data=data, url=url, filename=filename,
-> 1232 metadata=metadata)
1233
1234 if self.width is None and self.metadata.get('width', {}):

/opt/conda/lib/python3.7/site-packages/IPython/core/display.py in init(self, data, url, filename, metadata)
635 self.metadata = {}
636
--> 637 self.reload()
638 self._check_data()
639

/opt/conda/lib/python3.7/site-packages/IPython/core/display.py in reload(self)
1261 """Reload the raw data from file or URL."""
1262 if self.embed:
-> 1263 super(Image,self).reload()
1264 if self.retina:
1265 self._retina_shape()

/opt/conda/lib/python3.7/site-packages/IPython/core/display.py in reload(self)
660 """Reload the raw data from file or URL."""
661 if self.filename is not None:
--> 662 with open(self.filename, self._read_flags) as f:
663 self.data = f.read()
664 elif self.url is not None:

FileNotFoundError: [Errno 2] No such file or directory: 'simple-document-image.jpg'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions