Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
SirPinewood opened this issue Nov 29, 2021 · 0 comments
Open

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

SirPinewood opened this issue Nov 29, 2021 · 0 comments

Comments

@SirPinewood
Copy link

SirPinewood commented Nov 29, 2021

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant