python

Why use h5py context manager?

Using an h5py context manager helps avoid exceeding ulimit errors from too many open files. Example Python file I/O context manager, including with h5py.

Numpy N-D rot90 flip

Numpy 1.12 adds pathlib support throughout, and upgrades rot90 and flip to handle N-D arrays–big improvement.

How to install VisPy OpenGL for Python

VisPy uses PyOpenGL for beautiful, fast 3-D and 2-D plotting from Python and Numpy arrays. Here’s an easy way to setup VisPy–you don’t need a discrete GPU.

How to install Glumpy OpenGL for Python

Glumpy uses PyOpenGL for beautiful, fast 3-D and 2-D plotting from Python and Numpy arrays. Here’s an easy way to setup Glumpy–you don’t need a discrete GPU.

Switch from IDL to Python

Python is a high performance language for data analytics tasks common to science and engineering. Simple guide to transition from IDL to Python with examples.