Getting started

Requirements

pydgrid requires the following Python packages:

  • NumPy, for basic numerical routines
  • numba, for accelerating the code
  • json, for reading network data
  • matplotlib, for results plotting
  • bokeh, for results visualization
  • pytest, for running the tests from the package

pydgrid is usually tested on Linux and Windows on Python 3.5 and 3.6 against latest NumPy.

Installation

The easiest and fastest way to get the package up and running is to install anaconda with Python 3.5 or earlier.

Then you can install pydgrid from PyPI using pip:

$ pip install pydgrid

Warning

It is recommended that you never ever use sudo with distutils, pip, setuptools and friends in Linux because you might seriously break your system [1][2][3][4]. Options are per user directories, virtualenv or local installations.