pyfolio icon indicating copy to clipboard operation
pyfolio copied to clipboard

AttributeError: module 'pyfolio' has no attribute 'plotting'

Open SirPinewood opened this issue 5 years ago • 0 comments

Hi,

With: import pyfolio ... ... ... with pyfolio.plotting.plotting_context(font_scale=1.1): pyfolio.create_full_tear_sheet(returns = ensemble_strat, benchmark_rets=dow_strat, set_context=False)

Then I get the following error: AttributeError Traceback (most recent call last) ~\AppData\Local\Temp/ipykernel_13384/4244565123.py in ----> 1 with pyfolio.plotting.plotting_context(font_scale=1.1): 2 pyfolio.create_full_tear_sheet(returns = ensemble_strat, 3 benchmark_rets=dow_strat, set_context=False)

AttributeError: module 'pyfolio' has no attribute 'plotting'

I am not the most experienced user - perhaps someone is able to give me a hint. I have the feeling a path is missing somewhere but Pyfolio is installed according to recommendations, with no errors.

Thanks,

Versions

  • Python version: 3.7
  • Matplotlib version: 3.5

SirPinewood avatar Nov 29 '21 19:11 SirPinewood