xoa.set_options
- class xoa.set_options(section=None, **options)[source]
Set configuration options
- Parameters:
Example
# Classic: for the session In [1]: set_options('plot', cmapdiv='cmo.balance', cmappos='cmo.amp') Out[1]: <xoa.set_options at 0x7f37bc7be810> # With dict In [2]: opts = {"plot.cmapdiv": "cmo.balance"} In [3]: set_options(**opts) Out[3]: <xoa.set_options at 0x7f37bc55c650> # Context: temporary In [4]: with set_options('plot', cmapdiv='cmo.delta'): ...: print('within context:', get_option('plot.cmapdiv')) ...: within context: cmo.delta In [5]: print('after context:', get_option('plot.cmapdiv')) after context: cmo.balance
Methods