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

get_report error #43

Closed
lawzeus opened this issue Oct 17, 2021 · 5 comments
Closed

get_report error #43

lawzeus opened this issue Oct 17, 2021 · 5 comments

Comments

@lawzeus
Copy link

lawzeus commented Oct 17, 2021

Describe the bug
the sample code (as per --> https://empyrial.gitbook.io/empyrial/save-the-tearsheet/get-a-report) is throwing an error

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'https://empyrial.gitbook.io/empyrial/save-the-tearsheet/get-a-report...'
  2. Run the sample code
  3. Scroll down to '....'
  4. See error

NameError Traceback (most recent call last)
/var/folders/41/q1hx0rjd5xzck1vl121t6b2m0000gn/T/ipykernel_11664/2518190224.py in
10 empyrial(portfolio)
11
---> 12 get_report(portfolio)

NameError: name 'get_report' is not defined

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • Version [e.g. 22]

Additional context
using jypiterlab notebook

@santoshlite
Copy link
Owner

Hi!

I'll be a little bit busy this week, I'll check that this weekend :)
Thanks for raising these issues!

Best,

@santoshlite
Copy link
Owner

Hello,

I tried to reproduce the error but I didn't get one. I did get my report as you can see.

image

https://colab.research.google.com/drive/10LfcDL3efTtxTuGwLeMzvJZrUZXzybEE?usp=sharing

Maybe, you should retry it again. If it doesn't work, install the most recent version of Empyrial. If even by doing that, there is still a problem, please tell me and send your code so I can reproduce the error.

Best

@lawzeus
Copy link
Author

lawzeus commented Nov 29, 2021 via email

@stenio123
Copy link

Make sure it is in your imports (and that you run the imports again). I had the same error :-D

from empyrial import get_report, empyrial, Engine

@lawzeus
Copy link
Author

lawzeus commented Dec 29, 2021 via email

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

3 participants