Skip to content

Viewer is no longer working in Colab #771

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
fedorov opened this issue Feb 27, 2025 · 5 comments
Open

Viewer is no longer working in Colab #771

fedorov opened this issue Feb 27, 2025 · 5 comments

Comments

@fedorov
Copy link
Member

fedorov commented Feb 27, 2025

This IDC tutorial used to work in Colab https://github.com/ImagingDataCommons/IDC-Tutorials/blob/master/notebooks/getting_started/part2_searching_basics.ipynb, as demonstrated in the captured image, but as of the latest release, invoking viewer has no effect - no viewer, no errors, no warnings.

Possibly related to #763 (comment) - the regression was noted in the release following the fixes to the zarr incompatibility.

@fedorov
Copy link
Member Author

fedorov commented Feb 27, 2025

I now tested in 1.0a54 and 1.0a53, and those versions do not work either, so it is likely that something changed in Colab.

Please let me know if there is a commitment and resources to maintain compatibility with Google Colab. If not, we probably should look for alternative visualization recipes for the IDC users of our tutorial notebooks.

@fedorov fedorov changed the title Viewer is no longer working in Colab as of 1.0a55 Viewer is no longer working in Colab Feb 27, 2025
@thewtex
Copy link
Member

thewtex commented Mar 13, 2025

@fedorov thanks for the report.

I tried a few things for Colab, which does break occasionally when Google changes it. Colab, a proprietary platform, is more of a black box than others. Support for Colab is a high priority, but it will take a while implement a more robust approach that is less coupled to Colab's infrastructure.

Colab links are removed in #774 for now.

@fedorov
Copy link
Member Author

fedorov commented Mar 13, 2025

Colab, a proprietary platform, is more of a black box than others.

I think they share publicly the docker images they use here us-docker.pkg.dev/colab-images/public/runtime:latest (https://console.cloud.google.com/artifacts/docker/colab-images/us/public/runtime), so not quite black box I would say. Maybe even can be automatically tested for regressions.

@oeway
Copy link
Collaborator

oeway commented Mar 14, 2025

Aha, it's nice that they provide the docker image now, however I'm afraid that this does not immediately help with tracking api changes, for the interaction between the viewer and Python kernel, colab uses non-standard communication mechanism (at least previously) and we had to work around it with some tricks. We need to check if there is any document describing the new api for the Jupyter comm alternative if the old one breaks.

@fedorov
Copy link
Member Author

fedorov commented Mar 14, 2025

Did you consider opening an issue under https://github.com/googlecolab/colabtools and describe the problem and maybe discuss what can be done to avoid such regressions in the future?

My understanding is that Colab is maintained by a small team, but they do seem to at least acknowledge issues and opening this one would allow for other users to upvote.

fedorov added a commit to ImagingDataCommons/IDC-Tutorials that referenced this issue Mar 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants