Skip to content

Add getting started and installation instructions to the welcome page #10

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

Merged
merged 20 commits into from
May 22, 2022

Conversation

weiji14
Copy link
Member

@weiji14 weiji14 commented May 15, 2022

Editing the front page to include a one-click Binder link to run the Jupyter notebooks, and steps for people to get a conda virtual environment set up locally for the EGU22 short course.

Once everyone has their Jupyter notebooks on the website at https://www.generic-mapping-tools.org/egu22pygmt, I'm hoping to make a quick 5-ish minute video that will introduce PyGMT very briefly and walk through how people can navigate the Jupyter Book, click on the Binder links, etc.

Editing the front page to include a one-click Binder link to run the Jupyter notebooks, and steps for people to get a conda virtual environment set up locally for the EGU22 short course.
@weiji14 weiji14 added the documentation Improvements or additions to documentation label May 15, 2022
@weiji14 weiji14 self-assigned this May 15, 2022
@weiji14 weiji14 marked this pull request as ready for review May 17, 2022 15:22
weiji14 added 5 commits May 17, 2022 16:14
TODO revert this commit once André's notebook is finished.
Change from using bulleted list of tutorials to a more eye-catching 4-grid-panel with a teaser image for each tutorial.
Make the font consistent with the other tutorials.
Copy link
Member Author

@weiji14 weiji14 left a comment

Choose a reason for hiding this comment

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

Managed to make the front-page nicer using sphinx-panels (see https://jupyterbook.org/en/stable/content/content-blocks.html#panels). Now it looks like this:

image

Feel free to give this PR a review. I'll start to record the 5-10min intro video using this front-page now to get a feel, but will probably finish it by tomorrow morning.

book/intro.md Outdated
Comment on lines 27 to 29
:img-top: https://user-images.githubusercontent.com/23487320/168939109-e35c9d85-4b2d-4623-abd8-66ed1148cf21.png
```{link-button} Mars_Maps
:text: Making some Mars maps with PyGMT
Copy link
Member Author

@weiji14 weiji14 May 18, 2022

Choose a reason for hiding this comment

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

TODO update the thumbnail image to point to the rendered version once Andre's jupyter notebook is uploaded to the repo, see #15

@weiji14
Copy link
Member Author

weiji14 commented May 18, 2022

Ok, first shot at the intro, just taking people through an outline of the course content and teaching them how to get set up on Binder or locally.

2022-05-17.23-42-55.mp4

Will make another recording tomorrow morning at uni (with better lighting and a proper background) after a bit more practice. Oh, and remind myself to bump up the font size too.

Copy link
Member

@leouieda leouieda left a comment

Choose a reason for hiding this comment

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

@weiji14 front page looks great and the intro video as well. Left a small suggestion (feel free to ignore).

@yvonnefroehlich
Copy link
Member

@weiji14 First of all the front page looks already very nice!

However there is a small error in the installation instruction of the egu22pygmt environment at step 4 in the second line:
The env is missing. For me works:
condaenvcreate --name egu22pygmt --file environment.yml

Without the env I get the error:
CondaValueError: could not parse 'name: egu22pygmt' in: environment.yml

@weiji14
Copy link
Member Author

weiji14 commented May 18, 2022

Glad to see that people are trying out the short course already 😆 Thanks @yvonnefroehlich, I've fixed the command in 05fd568.

🖱️ click on the button below to launch on regular
[Binder](https://mybinder.readthedocs.io/en/latest/index.html).

[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/GenericMappingTools/egu22pygmt/main)
Copy link
Member Author

@weiji14 weiji14 May 18, 2022

Choose a reason for hiding this comment

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

Note to self, add another Binder and Google Colab option as backups in case too many people try to use this at once during EGU. From memory, I think there's a 50 or 100 people limit on how many BInder instances can be launched per GitHub repo.

Copy link
Member Author

@weiji14 weiji14 May 18, 2022

Choose a reason for hiding this comment

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

Might need to increase limits, am getting toomanyrequests: You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: https://www.docker.com/increase-rate-limit. Form to request additional resouces for MyBinder: https://github.com/jupyterhub/mybinder.org-deploy/issues/new?assignees=&labels=impact&template=request_resources.md. Looking at a few issues, they may be stretched on funding recently...

Copy link
Member Author

Choose a reason for hiding this comment

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

Have added a backup Pangeo Binder link in 1059390. Haven't got the bandwidth to do Google Colab but maybe someone can work on it in a separate PR.

@weiji14 weiji14 force-pushed the doc/welcome-page branch from 7c1e9bb to 3f8a2b9 Compare May 18, 2022 19:11
@weiji14
Copy link
Member Author

weiji14 commented May 19, 2022

For completeness, here's the final recording of the intro video 🎉

egu22pygmt_intro.mp4

Have already stitched the 1 intro + 4 tutorial videos together, and it just fits under 1hr 30min (let's pretend I didn't have to re-record the intro too many times). Tried doing 1080p60fps but that produced a 7GB file so no go. Did 1080p30fps and that came down to 4GB. Decided to try uploading that 4GB version but the upload seemed to stop halfway (wifi at home not strong enough). I'm doing 1080p23.98fps now and seeing if that can cut the size. Few more hours to go ☺️

@maxrjones
Copy link
Member

Do you want me to see what I get with handbrake? That's the tool I've used for processing community meeting videos

@weiji14
Copy link
Member Author

weiji14 commented May 19, 2022

Do you want me to see what I get with handbrake? That's the tool I've used for processing community meeting videos

Too late, I've emailed the video in already (1080p23.8fps). It's 3.3GB though, let's just hope they're lenient enough.

@maxrjones
Copy link
Member

Too late, I've emailed the video in already (1080p23.8fps). It's 3.3GB though, let's just hope they're lenient enough.

Sounds good, thanks for processing the video!

Also, great job on the intro! it's fantastic 🎉

@leouieda
Copy link
Member

@weiji14 thank you for all the work you've done on this! The intro does look really good.

We can upload higher resolution videos to YouTube later since EGU had this silly restriction.

Copy link
Member

@maxrjones maxrjones left a comment

Choose a reason for hiding this comment

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

Looks so great! Thanks for leading this effort!

@weiji14 weiji14 merged commit 0e41a4e into main May 22, 2022
@weiji14 weiji14 deleted the doc/welcome-page branch May 22, 2022 22:14
weiji14 added a commit to GenericMappingTools/agu24workshop that referenced this pull request Nov 14, 2024
Editing the front page to include a one-click Binder link to run the Jupyter notebooks, and steps for people to get a conda virtual environment set up locally for the AGU24 pre-conference workshop.

Based on EGU22 short course at GenericMappingTools/egu22pygmt#10.
weiji14 added a commit to GenericMappingTools/agu24workshop that referenced this pull request Dec 4, 2024
…#12)

* Add getting started and installation instructions to the welcome page

Editing the front page to include a one-click Binder link to run the Jupyter notebooks, and steps for people to get a conda virtual environment set up locally for the AGU24 pre-conference workshop.

Based on EGU22 short course at GenericMappingTools/egu22pygmt#10.

* Add sphinx-design cards with tutorial titles, authors and tags

Adding the 6 main tutorials as sphinx-design cards in a 3x2 grid. Each card has the tutorial title, author(s), and tags/badges. The tags hint at which libraries/methods will be covered, and also the datasets that are used.

* Add thumbnail figures for Tutorials 1, 2, 3, 6

* Update links to tutorial notebooks/documents

* Refresh badge tags for all tutorials

Sort alphabetically, change `bdg-info` to `bdg-success` for more differentiation (also, unsure why primary and info colour is the same now?), and add more tags based on new tutorial updates.

* Add teaser images for Tutorial 4 and 5

Also choosing other teaser images for Tutorial 1, 2, 3.

* Use only bottom part of tut04 figure

Figure is too long, so just getting the bottom part only. Using a 75dpi version.

* Adaptive layout to utilize vertical space more efficiently

Remove the h2 heading and do some more sphinx-design grid nesting to squeeze out more vertical space for the thumbnail images. The grids are now adaptive too, and will turn from 3 columns to 1 column on narrow width screens (e.g. mobile devices).

Ref: https://sphinx-design.readthedocs.io/en/sbt-theme/grids.html#nesting-grids.

---------

Co-authored-by: Yvonne Fröhlich <[email protected]>
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.

4 participants