Skip to content

Instantly share code, notes, and snippets.

View C-H-Simpson's full-sized avatar

Charles H. Simpson C-H-Simpson

  • UCL Institute of Environmental Design and Engineering
  • London, UK
  • X @CharlesHSimpson
View GitHub Profile
@C-H-Simpson
C-H-Simpson / SoftwareForResearchers.md
Last active November 8, 2022 11:57
My opinionated recommendations of software for researchers

Software for researchers

by Charles Simpson, 2022-11-08

Python

  • When you use python you are usually importing a lot of code from other packages.
  • Conda is a package for managing your python package environment.
  • When using conda, people often have problems with packages conflicting, or conda taking a very long time to solve dependencies. This can be avoided with some simple tricks.

mamba not conda

mamba is a faster re-implementation of conda. I recommend using it as much as possible. I recommend setting up your environment as follows:

@C-H-Simpson
C-H-Simpson / lcz_sample.ipynb
Created July 14, 2021 10:35
Sampling from the LCZ raster
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@C-H-Simpson
C-H-Simpson / env.sh
Created January 15, 2021 13:31
Setup script for conda environment in a reproducible example jupyter notebook
#! /usr/bin/env bash
# Usage
# . env.sh name_of_env environment.yml
# When it's done you will be able to select the kernel you have created in your jupyter notebook.
# You can do this within the jupyter notebook using:
# !. env.sh name_of_env environment.yml
# You may then need to refresh your browser before you can select the kernel.