setup_charting_and_output#
API documentation for tradeexecutor.backtest.notebook.setup_charting_and_output Python function.
- setup_charting_and_output(mode=OutputMode.interactive, image_format='svg')[source]#
Sets up Jupyter Notebook based charting.
Set Quantstats chart to SVG output and for high-resolution screens
Mute common warnings like Matplotlib font loading
Example:
# Set Jupyter Notebook output mode parameters from tradeexecutor.backtest.notebook import setup_charting_and_output setup_charting_and_output()
- Parameters:
mode (OutputMode) – What kind of viewing context we have for this notebook output