-
Notifications
You must be signed in to change notification settings - Fork 1
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
Connection with Google Colab #150
Comments
Thank you - cool workflow! I'm traveling but will try to look into this next week if others don't get to it before me. |
Thanks @esgomezm! I was able to recreate your results, by first using I suspect that the ngrok tunnel somehow breaks the CORS access, and I wasn't able to quickly solve this. @kyleawayan, do you have any experience with this? Zooming out, do you think that the localhost+ngrok would be your preferred solution for allowing collaborators to view your data? In my understanding, both the localhost and the ngrok tunnel need to be stay alive during this procedure, which will probably not work for sharing data for a longer period of time. It might be worth looking into options of putting the data in an online repository (like the One thing to keep in mind is that, when you use the our
Where |
Yep, it may be a CORS issue. Do we have any console logs to confirm it? |
Hi @TeunHuijben
Sorry, this would only be to connect with Google Colab, one of the standard tools for courses with life scientists and many use it as a tool by default. To share data, I'm working on the Bioarchive to provide a link. This will take me some time, sorry |
I think (for ngrok) this is not exactly a CORS error, but that on first-visit ngrok shows a warning page. Thus when trying to open the zarr we get:
I found an alternative way to tunnel to a server running in colab. You can find the tunnel URL with:
Unfortunately this is giving me a different error - again it works if you navigate there via browser, but I get a 404 when trying to access it via inTRACKtive. |
Okay I have a method that seems to work. I put my zarr bundle in
This gives some output like this, where you can see the quick tunnel URL:
Pop this URL into inTRACKtive, and it works! For me it was https://sir-cope-jamie-few.trycloudflare.com/tracks_bundle.zarr/. This still has the limitations around needing to keep it running in colab, etc. I was also able to get this to work with ngrok, but unfortunately it required some ngrok-specific modifications to inTRACKtive as well as the local file server. I'm also not happy with the performance. |
Hi @esgomezm, We have updated the Python side of inTRACKtive, which has been merged with Some takeaways:
My plan is to embed inTRACKtive in a jupyter notebook cell using anywidget, I'll keep you posted on the progress. |
Hi there!
In CellTracksColab (a tracking analysis tool), we often use Google Colab due to its ease of use for non-expert users. It would be nice to have the chance to connect it also with inTRACKtive, however this is not straightforward as data in Google Drive is private and the localhost opened in Google Colab as well.
I found a workaround to open the localhost with ngrok (a popular API gateway) but it feels to me that the link does not work with InTRACKTive. Here is some code in case you want to give it a try (you'd need to log-in in ngrok though):
This will provide an output similar to the following (links broken as I closed the session in colab):
Then one can launch inTRACKtive:
and the localhost
http://127.0.0.1:8000/
can be accessed withhttps://ffee-34-46-46-10.ngrok-free.app/
but it does not work in inTRACKtive. This is how the content looks like:@guijacquemet
The text was updated successfully, but these errors were encountered: