Description
This repository sets up a single Jupyter lab environment, with the latest/stable GMT, PyGMT, and GMT.jl installed. The idea and some contents of this repository are from our older projects, gmt6demo, try-gmt-python, and foss4g2019oceania.
Anyone can run GMT commands (i.e., in bash), PyGMT, and GMT.jl in this online Jupyter lab, with no need to install anything locally.
I believe this Jupyter lab would be useful for both new and old GMT users who want to try GMT and its wrappers before spending some time setting up a local environment. It also provides a uniform environment for future GMT workshops and short courses, so that we don't have to spend hours solving the GMT installation problems (I'm not sure about its performance if dozens of peoples use it simultaneously).
The Jupyter lab is freely hosted by Pangeo Binder. You can try it by clicking the badge below:
it usually takes <30 s to launch the Jupyter lab, the you can try the three demos for bash, Python, and Julia, respectively.
Future Plans
Here are some of my thoughts to improve it:
- Cache the low-resolution (>06m) earth relief data so that users don't have to wait for downloading them [Done in Cache earth relief data >= 06m #4]
- Install a few extra Python packages (e.g., scipy, matplotlib) and Julia packages to make it more suitable for practical plots
- Create a
dev
branch and set up another Jupyter lab environment with the master/unstable/developing GMT, PyGMT, and GMT.jl installed. - Host it on Google's colab servers (also free), which seem faster.
- Post it on the GMT forum to increase its visibility (https://forum.generic-mapping-tools.org/t/try-gmt-pygmt-gmt-jl-online-at-pangeo-binder/561)
- Add a "Try it online!" menu on the GMT homepage to increase its visibility (Add "Try Online" in the menu bar website#71)
- Add "Try it online!" badges to the README file of GMT, PyGMT and GMT.jl repositories?
Any thoughts and suggestions? @GenericMappingTools/core @GenericMappingTools/gmt-contributors @GenericMappingTools/python @GenericMappingTools/python-contributors