-
Notifications
You must be signed in to change notification settings - Fork 298
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 specific version of tutorial in Colab #309
Conversation
This comment has been minimized.
This comment has been minimized.
I guess the |
Ah no, we can't move the |
lgtm |
What's the hope with the tutorials, that they work off of the latest changes on |
I think the ideal behavior would be that if I view a certain version of the docs:
So if I view the "latest" version, it displays the tutorial for Currently we have 1, with this PR we now have 2, but 3 is still elusive. |
@sofstef pip install git+https://github.com/microsoft/torchgeo |
Yep, instructions for installing from main can be found at https://torchgeo.readthedocs.io/en/latest/user/installation.html The problem is that we want to keep only a single version of the tutorial in the repo, but |
* Open specific version of tutorial in Colab * Use valid sphinx build API * Use string concatenation * Fix concatenation, main version
If you view the tutorials on RtD, we now default to the latest stable release. However, the "Open in Colab" button still opens up the
main
version. This PR fixes that.The only remaining "gotcha" is that all versions of the tutorial will
pip install torchgeo
, so they'll all use the latest stable release, even if something has changed since then in main. We can avoid this issue by defaulting to the docs for the latest stable release, but as soon as someone tries a different versions of the docs it may not work.Fixes #274
Fixes #310