bigframes._config.option_context#

class bigframes._config.option_context(*args)[source]#

Context manager to temporarily set thread-local options in the with statement context.

You need to invoke as option_context(pat, val, [(pat, val), ...]).

Note

“bigquery” options can’t be changed on a running session. Setting any of these options creates a new thread-local session that only lives for the lifetime of the context manager.

Examples:

>>> import bigframes
>>> with bigframes.option_context('display.max_rows', 10, 'display.max_columns', 5):
...     pass

Methods

__init__(*args)