Displays the image. Requires PIL/Pillow.

        Alternatively, you can create an :class:`turicreate.SArray` of this image
        and use py:func:`turicreate.SArray.show()`

        See Also
        --------
        turicreate.image_analysis.resize

        Examples
        --------
        >>> img = turicreate.Image('https://static.turi.com/datasets/images/sample.jpg')
        >>> img.show()

def show(self):
        """
        Displays the image. Requires PIL/Pillow.

        Alternatively, you can create an :class:`turicreate.SArray` of this image
        and use py:func:`turicreate.SArray.show()`

        See Also
        --------
        turicreate.image_analysis.resize

        Examples
        --------
        >>> img = turicreate.Image('https://static.turi.com/datasets/images/sample.jpg')
        >>> img.show()

        """
        from ..visualization._plot import _target
        try:
            img = self._to_pil_image()
            try:
                # output into jupyter notebook if possible
                if _target == 'auto' and \
                    get_ipython().__class__.__name__ == "ZMQInteractiveShell":
                    from io import BytesIO
                    from IPython import display
                    b = BytesIO()
                    img.save(b, format='png')
                    data = b.getvalue()
                    ip_img = display.Image(data=data, format='png', embed=True)
                    display.display(ip_img)
                else:
                    # fall back to pillow .show (jupyter notebook integration disabled or not in jupyter notebook)
                    img.show()
            except NameError:
                # fall back to pillow .show (no get_ipython() available)
                img.show()
        except ImportError:
            print("Install pillow to use the .show() method.")