Skip to content

Commit

Permalink
Merge pull request #267 from geocompx/266-update-all-ipynb-and-py-fil…
Browse files Browse the repository at this point in the history
…es-with-convertsh

Update qmd -> .ipynb -> .py files, close #266
  • Loading branch information
michaeldorman authored Oct 5, 2024
2 parents 36efc01 + 0982703 commit 386321e
Show file tree
Hide file tree
Showing 24 changed files with 3,650 additions and 3,418 deletions.
391 changes: 256 additions & 135 deletions code/chapters/01-spatial-data.py

Large diffs are not rendered by default.

178 changes: 63 additions & 115 deletions code/chapters/02-attribute-operations.py

Large diffs are not rendered by default.

474 changes: 210 additions & 264 deletions code/chapters/03-spatial-operations.py

Large diffs are not rendered by default.

541 changes: 228 additions & 313 deletions code/chapters/04-geometry-operations.py

Large diffs are not rendered by default.

278 changes: 118 additions & 160 deletions code/chapters/05-raster-vector.py

Large diffs are not rendered by default.

282 changes: 119 additions & 163 deletions code/chapters/06-reproj.py

Large diffs are not rendered by default.

445 changes: 225 additions & 220 deletions code/chapters/07-read-write.py

Large diffs are not rendered by default.

445 changes: 340 additions & 105 deletions code/chapters/08-mapping.py

Large diffs are not rendered by default.

File renamed without changes.
File renamed without changes.
File renamed without changes.
7 changes: 7 additions & 0 deletions code/chapters/references.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/usr/bin/env python
# coding: utf-8

# # References {.unnumbered}
#
# ::: {#refs}
# :::
477 changes: 334 additions & 143 deletions ipynb/01-spatial-data.ipynb

Large diffs are not rendered by default.

203 changes: 71 additions & 132 deletions ipynb/02-attribute-operations.ipynb

Large diffs are not rendered by default.

504 changes: 218 additions & 286 deletions ipynb/03-spatial-operations.ipynb

Large diffs are not rendered by default.

635 changes: 251 additions & 384 deletions ipynb/04-geometry-operations.ipynb

Large diffs are not rendered by default.

304 changes: 131 additions & 173 deletions ipynb/05-raster-vector.ipynb

Large diffs are not rendered by default.

301 changes: 134 additions & 167 deletions ipynb/06-reproj.ipynb

Large diffs are not rendered by default.

493 changes: 260 additions & 233 deletions ipynb/07-read-write.ipynb

Large diffs are not rendered by default.

578 changes: 463 additions & 115 deletions ipynb/08-mapping.ipynb

Large diffs are not rendered by default.

235 changes: 0 additions & 235 deletions ipynb/README.ipynb

This file was deleted.

63 changes: 8 additions & 55 deletions ipynb/index.ipynb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"cells": [
{
"cell_type": "raw",
"cell_type": "markdown",
"metadata": {},
"source": [
"---\n",
Expand All @@ -10,15 +10,11 @@
" It's a short and practical open source book in which you'll\n",
" develop and use geocomputation to solve practical\n",
" problems and lay the foundations for advanced geospatial applications.\n",
"---"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"---\n",
"\n",
"::: {.content-visible when-format=\"html\"}\n",
"## Welcome {.unnumbered}\n",
"\n",
"# Welcome {.unnumbered}\n",
"\n",
"This is the online home of *Geocomputation with Python*, a book on reproducible geographic data analysis with open source software.\n",
"\n",
Expand All @@ -37,58 +33,15 @@
"\n",
"For details on reproducing the book, see the README in the project's GitHub repo: <https://github.com/geocompx/geocompy>.\n",
"\n",
"````{=html}\n",
"<!-- \n",
"Note: we don't need this here but commenting out the content rather than deleting because some of it could be ported into the README.\n",
"Reasonable? \n",
"Happy for these lines to be deleted also (RL 2022-12)\n",
"\n",
"## Reproducing this book\n",
"\n",
"An important aspect of scientific research that results can be independently verified by others.\n",
"Information that is generated by scientific means does not on auguments of authority or other [logical fallacies](https://bookofbadarguments.com/) as the basis for belief.\n",
"Instead science relies on a network of people who are open minded yet skeptical to test assumptions and in some cases 'bust myths'.\n",
"\n",
"In the digital age, trust in claims depends on computational reproducibility.\n",
"\n",
"### Local with Quarto\n",
"\n",
"To run the code locally, recommended for using the material on real data, you need to have a reasonable computer, e.g., with 8 GB RAM.\n",
"You'll need administrative rights to install the requirements, which include:\n",
"\n",
"- A suitable integrated development environment (IDE) such as VS Code, RStudio or Jupyter Notebook\n",
"- Quarto, if you want to reproduce the book's open access website\n",
"- Either an Anaconda-like environment (we recommend `miniconda3`) or Docker to get systems dependencies\n",
"\n",
"See the [project's README](https://github.com/geocompx/geocompy) for details on getting set-up.\n",
"After you have installed the necessary dependencies and cloned or [unzipped](https://github.com/geocompx/geocompy/archive/refs/heads/main.zip) the book's source code, you should be able to reproduce the code in its entirety with the following command:\n",
"\n",
"```bash\n",
"quarto preview\n",
"```\n",
"\n",
"If you see output like that below (with the IDE and browser arranged to see live updates after editing the source code), congratulations, it has worked!\n",
"\n",
"![](https://user-images.githubusercontent.com/1825120/161321382-ac36aeab-5628-4bef-b3dd-7b2becdd4860.png)\n",
"\n",
"### Local with Jupyter\n",
"\n",
"Alternatively, you can [download](https://github.com/geocompx/geocompy/archive/refs/heads/main.zip) and unzip the book's source code. The unzipped directory `py-main/code/chapters/` contains:\n",
"\n",
"* The source `ipynb` files, one for each chapter\n",
"* The `data` sub-directory with the sample data used in the code sections\n",
"\n",
"Assuming that all required packages are installed (see beginning of each chapter), you can execute the `ipynb` files through your chosen working environment (VScode, Jupyter Notebook, etc.). -->\n",
"````\n",
":::"
":::\n"
]
}
],
"metadata": {
"kernelspec": {
"name": "venv",
"display_name": "Python 3",
"language": "python",
"display_name": "test"
"name": "python3"
}
},
"nbformat": 4,
Expand Down
Loading

0 comments on commit 386321e

Please sign in to comment.