This repo is a set of notebooks I prepare for the workshop Introduction to Python language and Google Colab for spatial data visualization and analysis, a Professional Geospatial Workshop organised by the Geospatial Lab of Hong Kong (see the poster of the workshop for details).
This workshop aims to let attendances without prior knowledge in coding grasp a taste of Python. Therefore, not much theoretical knowledges are covered. The rundown workshop is organised in a way for attendances to make maps immediately. In that way, their motivation could stay high (they could see the product, easily) when need to learn less-fun aspects of spatial data afterwards.
Slides of the workshop are also available in this Google Drive folder.
The notebooks (tentatively) covers the following:
- A (very) quick intro to Python
- Using Google Colab for Jupyter Notebooks
- Create static maps with matplotlib and contextily
- Create interactive, dynamic maps with folium
- In Google Colab, Click File -> Open notebook
- Click the GitHub tab
- Enter
https://github.com/KHwong12/geolab
for the URL and click Enter - Choose the notebook you would like to open
Or, click the Open in Colab badge on top of this document.
Sometimes, Google Colab requires users to have a GitHub account in order to view the jupyter notebooks, regardless of repository's visibility.
You may need to download this folder to your local computer, then upload and open it in Google Colab.
- On this Webpage on GitHub, click on the Code green button
- Click Download ZIP
- Unzip the file in your local computer
- Click File -> Open notebook
- Click on the Upload tab in the pop up window
- Select the notebook you would like to view and drag it to the Upload File area
- Google Colab should redirect you to a new webpage with the new notebook opened
The notebooks are written in Markdown, then converted to Jupyter Notebook using the jupytext plugin of Jupyter with the following command.
jupytext --to notebook THEMDNOTEBOOK.md
The open source and open science culture helped me countless number of times to prepare the materials. In particular, part of the notebooks in this workshop are inspired by the following sources:
- The Geo-python course (https://geo-python-site.readthedocs.io/en/latest/index.html) by University of Helsinki
- Data 8: The Foundations of Data Science (https://github.com/data-8/materials-x19) by UC Berkeley
- BWSI Remote Sensing course (https://github.com/bwsi-hadr)
- CP255 Urban Informatics and Visualization by UC Berkeley