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

Add Launch in Hub button to tutorials #316

Merged
merged 3 commits into from
Dec 21, 2021
Merged

Add Launch in Hub button to tutorials #316

merged 3 commits into from
Dec 21, 2021

Conversation

adamjstewart
Copy link
Collaborator

Adds a "Launch in Hub" button similar to our existing "Open in Colab" button that opens a copy of the tutorial on the Planetary Computer. Note that this requires a Planetary Computer account to use.

@TomAugspurger @RitwikGupta

Closes #117

@adamjstewart adamjstewart added the documentation Improvements or additions to documentation label Dec 20, 2021
@adamjstewart adamjstewart added this to the 0.1.2 milestone Dec 20, 2021
TomAugspurger
TomAugspurger previously approved these changes Dec 20, 2021
Copy link

@TomAugspurger TomAugspurger left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool! FYI, we should have torchgeo installed by default in the gpu-pytorch environment for the next release (mid January). But pip installing at runtime works for now.

@calebrob6
Copy link
Member

calebrob6 commented Dec 20, 2021

"Launch in Hub" is a bit generic; does "Launch on Planetary Computer" look decent/fit?

Edit: just edited the file to check this myself

@adamjstewart
Copy link
Collaborator Author

I was just imitating the behavior in PC's own notebooks: https://planetarycomputer.microsoft.com/dataset/landsat-8-c2-l2#Example-Notebook

@TomAugspurger
Copy link

Yeah, in that case we're relying on the surrounding context to disambiguate what "Hub" means. I think for something like torchgeo's docs, "Open on Planetary Computer" makes a bit more sense.

@calebrob6
Copy link
Member

Yeah I know. It is less ambiguous on the PC website as "Hub" is defined there, whereas there are a lot of Hubs out in the wild :)

@calebrob6
Copy link
Member

I think I like "Open on Planetary Computer" the best:

image

@adamjstewart
Copy link
Collaborator Author

It's pretty wide, but it's definitely the most clear.

@calebrob6
Copy link
Member

These will both look normal sized when we move to a better supported theme

@adamjstewart
Copy link
Collaborator Author

We overrode that, so there shouldn't be any issues with the theme. If you want to make them smaller I can change the height.

@calebrob6 calebrob6 merged commit d643f1f into main Dec 21, 2021
@calebrob6 calebrob6 deleted the docs/hub branch December 21, 2021 06:42
@adamjstewart adamjstewart modified the milestones: 0.1.2, 0.2.0 Jan 1, 2022
@adamjstewart adamjstewart added utilities Utilities for working with geospatial data and removed utilities Utilities for working with geospatial data labels Jan 2, 2022
@adamjstewart
Copy link
Collaborator Author

May also want to consider Binder. Not explicitly designed for ML, and doesn't have GPUs, but could be useful.

yichiac pushed a commit to yichiac/torchgeo that referenced this pull request Apr 29, 2023
* Add Launch in Hub button to tutorials

* Update button text

* Changing language

Co-authored-by: Caleb Robinson <calebrob6@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add "Launch in Hub" button to tutorials
3 participants