.. currentmodule:: xarray
Xarray offers a small number of configuration options through :py:func:`set_options`. With these, you can
- Control the
repr:display_expand_attrsdisplay_expand_coordsdisplay_expand_datadisplay_expand_data_varsdisplay_max_rowsdisplay_style
- Control behaviour during operations:
arithmetic_join,keep_attrs,use_bottleneck. - Control plotting:
cmap_divergent,cmap_sequential,facetgrid_figsize. - Aspects of file reading:
file_cache_maxsize,netcdf_engine_order,warn_on_unclosed_files.
You can set these options either globally
xr.set_options(arithmetic_join="exact")
or locally as a context manager:
with xr.set_options(arithmetic_join="exact"):
# do operation here
pass