Source code for tradeexecutor.visual.qs_wrapper

"""Deal with warnings from unmaintained libraries."""
import warnings


[docs]def import_quantstats_wrapped(): with warnings.catch_warnings(): # DeprecationWarning: Importing display from IPython.core.display is deprecated since IPython 7.14, please import from IPython display warnings.simplefilter(action='ignore', category=FutureWarning) # yfinance: The default dtype for empty Series will be 'object' instead of 'float64' in a future version. Specify a dtype explicitly to silence this warning. import quantstats return quantstats