comet-ml / kangas

🦘 Explore multimedia datasets at scale
https://github.com/comet-ml/kangas/wiki
Apache License 2.0
1.04k stars 46 forks source link

Cannot run dg.show() in jupyter notebook #123

Closed Khaihuyennguyen closed 1 year ago

Khaihuyennguyen commented 1 year ago

Hi,

When I try to run these scripts in Google Colab

import kangas as kg # Load an existing DataGrid dg = kg.read_datagrid("https://github.com/caleb-kaiser/kangas_examples/raw/master/coco-500.datagrid.zip")

dg.show()

image

The UI run as expected. However, when I tried to run in Jupyter envonment, it show nothing but a black background.

Do you happen to know which caused this issue??

Khai Nguyen

dsblank commented 1 year ago

@Khaihuyennguyen It looks like the above image is in a Jupyter environment. What is different about where it doesn't work?

BTW, sometimes it might be necessary to run at the console before running in Jupyter:

kangas server --terminate
Khaihuyennguyen commented 1 year ago

@Khaihuyennguyen It looks like the above image is in a Jupyter environment. What is different about where it doesn't work?

BTW, sometimes it might be necessary to run at the console before running in Jupyter:

kangas server --terminate

The picture I attached when I tested on my google colab notebook which works fine. The problem is in Jupiter notebook from my company's conda environment.

I ternimated all the servers as instructed but it stills show the black screen afterward

Khaihuyennguyen commented 1 year ago

Hi,

I figured out the problem. I remotely run the script on visual studio code from Ada in my local computer, so it is not syncing the output.

It is fixed when I run it inside Ada.

Thanks

dsblank commented 1 year ago

Thanks for posting your solution! Consider giving the project a star, and tell your friends :)

Also, let us know if you do anything interesting with Kangas.