xorbits.option_context#
- xorbits.option_context(config=None)[源代码]#
Context manager to temporarily set options in a
withstatement.- 参数:
config (dict) – A dictionary of key-value option pairs to set temporarily.
- 返回:
No return value.
- 返回类型:
None
示例
>>> with xorbits.option_context({'show_progress': False}): ... # Code here will run with show_progress=False >>> # Outside the context, the original configuration is restored