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

Jupyter import issue: magic(...) is deprecated #342

Open
svendaj opened this issue Mar 31, 2024 · 1 comment
Open

Jupyter import issue: magic(...) is deprecated #342

svendaj opened this issue Mar 31, 2024 · 1 comment

Comments

@svendaj
Copy link

svendaj commented Mar 31, 2024

Hi @ranaroussi , you are doing fantastic job (using also your yfinance). I have issue with importing QuantStats to Kaggle notebooks (IPython version 8.20.0). pip install is successful, but when

import quantstats as qs

line 300 of qs.utils throws:

File /opt/conda/lib/python3.10/site-packages/quantstats/utils.py:300, in _in_notebook(matplotlib_inline)
    297 if shell == "ZMQInteractiveShell":
    298     # Jupyter notebook or qtconsole
    299     if matplotlib_inline:
--> 300         get_ipython().magic("matplotlib inline")
    301     return True
    302 if shell == "TerminalInteractiveShell":

and fails with

DeprecationWarning: `magic(...)` is deprecated since IPython 0.13 (warning added in 8.1), use run_line_magic(magic_name, parameter_s).
@grzesir
Copy link

grzesir commented Jul 30, 2024

Check out https://github.com/Lumiwealth/quantstats_lumi, which is being updated regularly. We are a fork of this library that is being maintained by Lumiwealth

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

2 participants