cf.environment

cf.environment(display=True)[source]

Return the names and versions of cf-python dependencies.

Parameters:
display: bool, optional

If False then return the description of the environment as a string. By default the description is printed.

Returns:
out: None or str

If display is True then the description of the environment is printed and None is returned. Otherwise the description is returned as a string.

Examples:
>>> cf.environment()
Platform: Linux-4.4.0-53-generic-x86_64-with-debian-stretch-sid
HDF5 library: 1.8.17
netcdf library: 4.4.1
python: 2.7.13 /home/space/anaconda2/bin/python
netCDF4: 1.2.4 /home/space/anaconda2/lib/python2.7/site-packages/netCDF4/__init__.pyc
numpy: 1.11.3 /home/space/anaconda2/lib/python2.7/site-packages/numpy/__init__.pyc
psutil: 5.0.1 /home/space/anaconda2/lib/python2.7/site-packages/psutil/__init__.pyc
matplotlib: 1.5.1 /home/space/anaconda2/lib/python2.7/site-packages/matplotlib/__init__.pyc
ESMF: 7.0.0 /home/space/anaconda2/lib/python2.7/site-packages/ESMF/__init__.pyc
cfplot: 2.1.10 /home/space/anaconda2/lib/python2.7/site-packages/cfplot/__init__.pyc
cf: 2.0.2 /home/space/cf-python/cf/__init__.pyc