-
Notifications
You must be signed in to change notification settings - Fork 10
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
Changes from 4 commits
f2ca8ef
bdc1cca
f584d31
e6d4aed
f161162
db97856
2e6e540
3d42fdc
40fa47e
72996fc
f0592ac
05fd568
8e775b8
3a8c1db
3f8a2b9
f9b3fae
46dbdc2
5e0006b
414c38c
1059390
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,89 @@ | ||
# Welcome to your Jupyter Book | ||
# 🥳 Welcome to the EGU22 PyGMT short course | ||
weiji14 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
This is a small sample book to give you a feel for how book content is | ||
structured. | ||
It shows off a few of the major file types, as well as some sample content. | ||
It does not go in-depth into any particular topic - check out [the Jupyter Book documentation](https://jupyterbook.org) for more information. | ||
This Jupyter book contains [PyGMT](https://www.pygmt.org/v0.6.1) tutorials | ||
for producing maps and doing geospatial data processing 🌍 | ||
|
||
Check out the content pages bundled with this sample book to see more. | ||
- [Anatomy of a PyGMT figure](first-figure) by [Leonardo Uieda](https://orcid.org/0000-0001-6123-9515) | ||
- [Integration with the scientific Python ecosystem 🐍](ecosystem) by [Max Jones](https://orcid.org/0000-0003-0180-8928) | ||
maxrjones marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- [Making some Mars maps with pygmt](Mars_Maps) by [André Luiz Belém](https://orcid.org/0000-0002-8865-6180) | ||
weiji14 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
- [LiDAR Point clouds to 3D surfaces ✨➡️🏔️](lidar_to_surface) by [Wei Ji Leong](https://orcid.org/0000-0003-2354-1988) | ||
|
||
```{tableofcontents} | ||
|
||
Each tutorial is rendered on this website for easy viewing 👀, but they are all | ||
Jupyter notebooks designed to be ran interactively 💫. See the instructions | ||
below on how you can start running the tutorials in no time! 🚀 | ||
|
||
# 🌠 Quickstart | ||
|
||
To run these notebooks in an interactive Jupyter session online, | ||
🖱️ click on the button below to launch on regular | ||
[Binder](https://mybinder.readthedocs.io/en/latest/index.html). | ||
|
||
[](https://mybinder.org/v2/gh/GenericMappingTools/egu22pygmt/main) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Might need to increase limits, am getting There was a problem hiding this comment. Choose a reason for hiding this commentThe 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. |
||
|
||
Alternatively, you can go to a specific tutorial page, hover over the rocket 🚀 | ||
icon on the top right, and click 'Binder'. | ||
|
||
# 💻 Running the notebooks locally | ||
|
||
If you prefer to run the 🧑🏫 tutorials with a local installation of PyGMT, then | ||
follow along! For this EGU22 short course, we recommend creating a virtual | ||
conda environment and installing the 🐍 Python libraries inside. | ||
|
||
:::{tip} For users comfortable with using `git`, feel free to ⬇️ download or | ||
clone the repository containing the short course materials directly using | ||
`git clone https://github.com/GenericMappingTools/egu22pygmt.git` | ||
::: | ||
|
||
Here's the instructions to install the `egu22pygmt` environment: | ||
|
||
1. Ensure that you have the | ||
[`conda`](https://docs.conda.io/projects/conda/en/latest/user-guide/index.html) | ||
package manager installed (e.g. via | ||
[`miniconda`](https://docs.conda.io/en/latest/miniconda.html) or | ||
[Anaconda](https://www.anaconda.com/products/distribution)). | ||
You can also use [`mamba`](https://mamba.readthedocs.io/en/latest/installation.html#fresh-install) | ||
which tends to be a ⚡ faster alternative. | ||
|
||
2. Make a folder called 'egu22pygmt'. This will be where you will put all the | ||
Jupyter notebooks and data files 🗃️ used in the short course. | ||
|
||
3. Download a copy of the 'environment.yml' file which contains a 📄 list of | ||
dependencies required to run the tutorials in this short course. Get it at | ||
https://github.com/GenericMappingTools/egu22pygmt/blob/main/environment.yml. | ||
|
||
4. Run the following commands on the 🧑💻 command-line to create the virtual | ||
environment | ||
|
||
```bash | ||
cd /path/to/egu22pygmt | ||
conda create --name egu22pygmt --file environment.yml | ||
``` | ||
|
||
5. Once the installation is completed 🏁, launch | ||
[Jupyter Lab](https://jupyterlab.readthedocs.io) as follows: | ||
|
||
```bash | ||
conda activate egu22pygmt | ||
jupyter lab | ||
``` | ||
|
||
This should open up a page in your default browser. If not, you can click | ||
and open the 🔗 link that says `http://localhost:8888/lab?token=...` in your | ||
command-line terminal and this will will take you to the Jupyter Lab page. | ||
|
||
6. Download the Jupyter notebook(s) you want to run (e.g. | ||
https://www.generic-mapping-tools.org/egu22pygmt/first-figure.html) using | ||
either the download button on the ↗️ top right (select '.ipynb') or from | ||
GitHub at https://github.com/GenericMappingTools/egu22pygmt/tree/main/book. | ||
Make sure to put the *.ipynb file(s) inside of the 'egu22pygmt' folder. | ||
|
||
7. Open the Jupyter notebook in the left-pane file browser, e.g. by | ||
🖱️ double-clicking on `first-figure.ipynb`. You are now ready to run through | ||
the course materials 🎉! | ||
|
||
```{note} | ||
If you're intending to use PyGMT in another project outside of this course, | ||
please follow the official installation instructions at | ||
https://www.pygmt.org/latest/install.html | ||
``` |
Uh oh!
There was an error while loading. Please reload this page.