I'm not being able to import plotly.figure_factory
The code I use is based on this example
The module is imported by the following snippet:
import plotly.plotly as py
import plotly.figure_factory as FF
I couldn't find any documentation on figure_factory
in plotly
's website.
Any ideas ?
To install the package, open up terminal and type $ pip install plotly or $ sudo pip install plotly . Plotly's graphs are hosted using an online web service, so you'll first have to setup a free account online to store your plots. To retrieve your personal API key, follow the link here: https://plot.ly/settings/api#/.
Simply visit plot.ly and select the + Create button in the upper right hand corner. Select Notebook and upload your Jupyter notebook (. ipynb) file! The notebooks that you upload will be stored in your Plotly organize folder and hosted at a unique link to make sharing quick and easy.
Plotly's Figure Factory Module Plotly's Python API contains a figure factory module which includes many wrapper functions that create unique chart types that are not yet included in plotly. js, Plotly's open-source graphing library.
plotly module is deprecated, | Data Science and Machine Learning | Kaggle.
Plotly's documentation is sometimes a bit inconsistent and missed some updates to the library itself.
If you substitute your second line with
from plotly.tools import FigureFactory as FF
your code should work as expected.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With