Turicreate: Image not show on Google Colab Jupyter Notebook

Created on 22 Dec 2018  路  7Comments  路  Source: apple/turicreate

Method img.show(), not working on Jupyter Notebook.
Runtime:

  • Python 3.6.7
  • Google Colab Jupyter Notebook
  • Turicreate 5.2.1

error_img_show

bug images p4 visualization

Most helpful comment

I understand. Many thanks @TobyRoseman

Fix this issues with code: get_ipython().__class__.__name__ = "ZMQInteractiveShell"

Check again:
tc

All 7 comments

@ancs21 - Using your code in Python 3.6 with a local instance of Jupyter Notebook, the image gets displayed fine for me. Could you please tell us the values you get for the following two expressions:
1 - tc.visualization._plot._target
2 - get_ipython().__class__.__name__

Hello @TobyRoseman

The values two expressions run on Google Colab Jupyter Notebook:
1 - 'auto'
2 - 'Shell'

Thanks.

Thanks @ancs21. The second expression seems to be what is causing this issue.

Looking at the code we expect this values to be "ZMQInteractiveShell".

I understand. Many thanks @TobyRoseman

Fix this issues with code: get_ipython().__class__.__name__ = "ZMQInteractiveShell"

Check again:
tc

Reopening; we should fix this in Turi Create itself so users don't need the workaround.

@TobyRoseman @znation Please assign this ticket to me as I would like to try fixing it and contribute .Thanks in advance!

Thanks @dhivyaaxim!

Was this page helpful?
0 / 5 - 0 ratings