Skip to content
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

itkwidgets on Google CoLab #99

Closed
vianamp opened this issue Nov 7, 2018 · 10 comments
Closed

itkwidgets on Google CoLab #99

vianamp opened this issue Nov 7, 2018 · 10 comments
Assignees
Labels
bug Something isn't working
Projects

Comments

@vianamp
Copy link

vianamp commented Nov 7, 2018

Hi guys.

Have any of you tried to run itkwidgets on Google Colab?

I got the package installed with !pip, but the moment I try view(image), the thing keeps running forever. Could that be because the free server where I am running the notebook in is just not good enough for 3D view? It is a small image though 32x32x32.

Any thoughts?

@vianamp
Copy link
Author

vianamp commented Nov 7, 2018

@thewtex
Copy link
Member

thewtex commented Nov 7, 2018

Hey @vianamp ,

Yes, please follow and thumbs up this issue:

googlecolab/colabtools#60

@thewtex thewtex added the bug Something isn't working label Nov 7, 2018
@oeway
Copy link
Collaborator

oeway commented Aug 20, 2020

UPDATE: you will be able to use the itk-vtk-viewer directly inside Google Colab which will be similar to itkwidgets, see Kitware/itk-vtk-viewer#336

@thewtex
Copy link
Member

thewtex commented Sep 29, 2020

@oeway #brilliant!! ❤️ 😍

Awesome to know that we will have Google Colab support with the itkwidgets / imjoy refactor (WIP)!

This is superb for reproducibility and teaching with deep learning libraries.

@aylward

@jxchen01
Copy link

jxchen01 commented Nov 6, 2020

@thewtex and @oeway This new function is so cool!!!!

I have a question about the using itkwidgets on colab.

Here is a working example I made for testing the viewer : https://github.com/AllenInstitute/aics-segmentation/blob/colab/lookup_table_demo/test_viewer.ipynb

It works well so far. But, i would like to extract the ROI from the ROI selection in the viewer. Previously, I can do this

viewer_bw =view(bw)
print( viewer_bw.roi_slice() )

I am not sure how to extract ROI with the new ImJoy layer

@oeway
Copy link
Collaborator

oeway commented Nov 7, 2020

@jxchen01 Thanks!

We don't have ROI widget support in the itk-vtk-viewer yet, it would be nice to have this feature indeed. @thewtex what do you think?

Related to this, I am also interested in having the PaintWidget working in the viewer at some point( e.g. adding a new channel and use the paint widget to do annotation).

@thewtex
Copy link
Member

thewtex commented Nov 10, 2020

@jxchen01 very nice! Yes, the ROI selection feature in itkwidgets will work in Colab as it works in Jupyter as we integrate more of the ImJoy communication backend.

@oeway 👍 Interactive widget support is being added, e.g. the PaintWidget. 🖌️

@thewtex thewtex added this to the itkwidgets 0.33 Beta 1 milestone Aug 19, 2021
@thewtex thewtex added this to Triage in Roadmap via automation Aug 19, 2021
@thewtex thewtex moved this from Triage to To do in Roadmap Aug 19, 2021
@thewtex thewtex moved this from To do to In progress in Roadmap May 19, 2022
thewtex added a commit to thewtex/itkwidgets that referenced this issue May 20, 2022
Works in Colab!

Addresses InsightSoftwareConsortium#99, more can be done with the window size.

Co-authored-by: Brianna Major <brianna.major@kitware.com>
Co-authored-by: Wei Ouyang <oeway007@gmail.com>
@thewtex
Copy link
Member

thewtex commented May 21, 2022

Rebasing on ImJoy magic for CoLab support! 🎉

pip install --upgrade --pre itkwidgets

to test.

CSS issues in the output, currently using the createDialog over createWindow in Colab.

@bnmajor maybe the CSS here can be adjusted?

https://github.com/Kitware/itk-vtk-viewer/blob/0aec56c6dd8411e2d47ab98245242fe1db063e79/dist/index.html#L42

@thewtex
Copy link
Member

thewtex commented May 22, 2022

CSS issues in the output, currently using the createDialog over createWindow in Colab.

Or, we should be using the w and h options for createWindow ?

@thewtex
Copy link
Member

thewtex commented Dec 18, 2023

CoLab support in 1.0aNN 🎉 thanks to ImJoy, @bnmajor and @oeway 's efforts.

@thewtex thewtex closed this as completed Dec 18, 2023
Roadmap automation moved this from In progress to Done for itkwidgets 0.33 Alpha 1 Dec 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Roadmap
Done for itkwidgets 0.33 Alpha 1
Development

No branches or pull requests

5 participants