Skip to content

Commit 980615e

Browse files
committed
Add website
1 parent f948f1d commit 980615e

16 files changed

+1021
-0
lines changed

CONTRIBUTING.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
---
2+
layout: default
3+
---
4+
5+
# Pandas Tutorial - contributing guide
6+
7+
First of all, thanks for considering contributing to the course! 👍
8+
9+
## How you can contribute
10+
11+
There are several ways you can contribute to this course.
12+
13+
### Share the love ❤️
14+
15+
Think this course is useful? Let others discover it, by telling them in person, via Twitter or a blog post.
16+
17+
### Ask a question ⁉️
18+
19+
Trying out the material and got stuck? Post your question as an [issue on GitHub](https://github.com/jorisvandenbossche/DS-python-geospatial/issues/new). While we cannot offer user support, we'll try to do our best to address it, as questions often lead to the discovery of bugs.
20+
21+
Want to ask a question in private? Contact the package maintainer by [email](jorisvandenbossche@gmail.com).
22+
23+
### Propose an idea 💡
24+
25+
Have an idea for to improve the course? Take a look at the [issue list](https://github.com/jorisvandenbossche/DS-python-geospatial/issues) to see if it isn't included or suggested yet. If not, suggest your idea as an [issue on GitHub](https://github.com/jorisvandenbossche/DS-python-geospatial/issues/new).
26+
27+
### Report a bug 🐛
28+
29+
Using the course and discovered a bug or a typo? That's annoying! Don't let others have the same experience and report it as an [issue on GitHub](https://github.com/jorisvandenbossche/DS-python-geospatial/issues/new) so we can fix it. A good bug report makes it easier for us to do so, so please include:
30+
31+
* Your operating system name and version (e.g. Mac OS 10.13.6).
32+
* Any details about your local setup that might be helpful in troubleshooting.
33+
* Detailed steps to reproduce the bug.
34+
35+
### Contribute code 📝
36+
37+
Care to fix issues or typo's? Awesome! 👏
38+
39+
Some notes to take into account:
40+
41+
- When updating course material, **edit the 'solved' notebooks**, the other ones (the ones used in the tutorial) are generated automatically using the `convert_notebooks.sh` script.
42+
- the exercises are cleared using the `nbtutor` notebook extension: <https://github.com/jorisvandenbossche/nbtutor>
43+
44+
45+
46+

_config.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
title: Python for GIS and Geoscience
2+
logo:
3+
description: Specialist course Doctoral schools of Ghent University
4+
show_downloads: true
5+
theme: jekyll-theme-minimal

check_environment.py

Lines changed: 67 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,67 @@
1+
# This script is adapted from Andreas Mueller:
2+
# https://github.com/amueller/scipy-2018-sklearn/blob/master/check_env.ipynb
3+
# and glemaitre: https://github.com/glemaitre/pyparis-2018-sklearn/blob/master/check_environment.py
4+
5+
from __future__ import print_function
6+
from distutils.version import LooseVersion as Version
7+
import sys
8+
9+
10+
try:
11+
import curses
12+
curses.setupterm()
13+
assert curses.tigetnum("colors") > 2
14+
OK = "\x1b[1;%dm[ OK ]\x1b[0m" % (30 + curses.COLOR_GREEN)
15+
FAIL = "\x1b[1;%dm[FAIL]\x1b[0m" % (30 + curses.COLOR_RED)
16+
except:
17+
OK = '[ OK ]'
18+
FAIL = '[FAIL]'
19+
20+
try:
21+
import importlib
22+
except ImportError:
23+
print(FAIL, "Python version 3.4 is required,"
24+
" but %s is installed." % sys.version)
25+
26+
27+
def import_version(pkg, min_ver, fail_msg=""):
28+
mod = None
29+
try:
30+
mod = importlib.import_module(pkg)
31+
if pkg in {'PIL'}:
32+
ver = mod.VERSION
33+
elif pkg in {'xlrd'}:
34+
ver = mod.__VERSION__
35+
else:
36+
ver = mod.__version__
37+
if Version(ver) < min_ver:
38+
print(FAIL, "%s version %s or higher required, but %s installed."
39+
% (lib, min_ver, ver))
40+
else:
41+
print(OK, '%s version %s' % (pkg, ver))
42+
except ImportError:
43+
print(FAIL, '%s not installed. %s' % (pkg, fail_msg))
44+
return mod
45+
46+
47+
# first check the python version
48+
print('Using python in', sys.prefix)
49+
print(sys.version)
50+
pyversion = Version(sys.version)
51+
if pyversion >= "3":
52+
if pyversion < "3.6":
53+
print(FAIL, "Python version 3.6 is required,"
54+
" but %s is installed." % sys.version)
55+
else:
56+
print(FAIL, "Python 3 is required, but %s is installed." % sys.version)
57+
58+
print()
59+
requirements = {'numpy': "1.9", 'matplotlib': "2.0",
60+
'pandas': "1.1", 'xarray': '0.16',
61+
'geopandas': '0.8', 'rasterio': '1.1',
62+
'owslib': '0.19', 'fsspec': '0.8',
63+
's3fs': '0.3', 'pyproj': '2.4'}
64+
65+
# now the dependencies
66+
for lib, required_version in list(requirements.items()):
67+
import_version(lib, required_version)
60.6 KB
Loading

img/download-button.png

31 KB
Loading
588 KB
Loading

img/navigator_notebook.png

146 KB
Loading

img/navigator_notebook.svg

Lines changed: 144 additions & 0 deletions
Loading

img/navigator_terminal.png

195 KB
Loading

img/remark.min.js

Lines changed: 16 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)