Skip to content
X lines of Python
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
data
notebooks transpose is required, got lost somewhere Apr 15, 2019
.gitignore finished and added Sep 21, 2016
LICENSE Initial commit Sep 15, 2016
README.md clarification Mar 8, 2019
aznbsetup.sh
environment.yml

README.md

xlines

x lines of Python

An Agile blog series exploring common geosciencey workflows in x lines, where ideally x ≤ 10 but not necessarily.

Terms of engagement

  • One line per English-language sentence.
  • No semi-colons or line continuation.
  • Lines can be broken for readability, especially sequence items, or function arguments.
  • import statements and comments don't count. I'm really interested in the bits of code that do the thing, whatever that is.
  • But we can only import libraries on conda-forge or PyPi.
  • Plotting and other kinds of inspection don't count, unless they're central to the point of the code. They're more just for seeing what you're doing.

Running the notebooks

Run in Binder

Binder

Run in Colaboratory

Open In Colab

Running the notebooks locally

If you want to run the notebooks on your own computer, I recommend installing miniconda, or Anaconda. To make an environment for this notebook, download this repo, then you can do this in a terminal (or cmd prompt on Windows):

# First, cd to the repo folder you just downloaded.

# Make the environment:
conda env create -f environment.yml

# Start it:
conda activate xlines

# Add it to Jupyter's kernels:
python -m ipykernel install --user --name xlines

# Now start Jupyter Notebook:
jupyter notebook
You can’t perform that action at this time.