Has someone successfully imported Quantmod? I'm getting errors
When I try to import quantmod after installing it, I get several errors like -
"C:\ProgramData\Anaconda3\lib\site-packages\pandas_datareader\compat_init_.py:7: FutureWarning: pandas.util.testing is deprecated. Use the functions in the public API at pandas.testing instead. from pandas.util.testing import assert_frame_equal"
ModuleNotFoundError: No module named 'quantmod.theming'
ImportError: The plotly.plotly module is deprecated, please install the chart-studio package and use the chart_studio.plotly module instead.
I've almost tried every solution I got but it never worked. Is there any single person who has imported quantmod successfully in a jupyter notebook?
I've got it working. Almost all of the real functionality of the package doesn't really require the chart_studio part. If you remove the line from __init__.py about tools module, it works fine as far as I can tell. Here's my modified __init__.py:
"""Quantmod
A powerful financial charting library based on R's Quantmod.
With a Plotly backend and Cufflinks simplicity,
Quantmod provides beautiful charts and a variety of
quantitiative and technical finance tools.
Author
------
@jackwluo
Credits
-------
plotly.py : @chriddyp, @theengineear, et al.
cufflinks : @jorgesantos
"""
# flake8: noqa
from __future__ import absolute_import
from .core import *
from .chart import *
from .version import __version__
from . import ta
__docformat__ = 'restructuredtext'
# Offline mode from config initialization
I also changed the lines from chart.py from
import plotly.plotly as py
to
import chart_studio.plotly as py
But I kinda doubt that was actually necessary...