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

Headless Offline Plotting fails #3

Open
Immortalin opened this issue Sep 17, 2017 · 4 comments
Open

Headless Offline Plotting fails #3

Immortalin opened this issue Sep 17, 2017 · 4 comments

Comments

@Immortalin
Copy link

Immortalin commented Sep 17, 2017

Hi! Plotting fails when ran headlessly i.e. without iPython notebook, just the python interpreter due to the iplot function.

E.g. python canvas_demo.py gives

/chartpy/engine.py", line 1449, in plot_chart
    fig = data_frame.iplot(kind=chart_type_ord,
AttributeError: 'DataFrame' object has no attribute 'iplot'
@saeedamen
Copy link
Contributor

I suspect you might not have Python package cufflinks installed? You might also need to check the chartconstants.py file (eg. plotly_plot_mode = 'offline_html' # 'online', 'offline_jupyter')

@Immortalin
Copy link
Author

Immortalin commented Sep 19, 2017

@saeedamen can the dependency on cufflinks be removed? Cufflinks requires iPython, which adds additional dependencies for headless setups.

@saeedamen
Copy link
Contributor

@Immortalin it's a bit difficult to remove the Cufflinks depenency. I use Cufflinks to make the underlying Plotly API easier to call (and use directly with pandas DataFrames). Also I suspect many users will end up using it to plot in IPython notebooks anyway. I give the option though of directing the plots to different outputs though, HTML online/offline and IPython too.

@nnadiabfata
Copy link

help me please i am a student and i based my research paper on iplot i have a serious problem from yesterday i tried to find solution with pasting errors but with no result

ModuleNotFoundError: No module named 'plotly.subplots'
AttributeError: 'DataFrame' object has no attribute 'iplot'

in the terminal
cufflinks 0.17.0 has requirement plotly>=4.1.1, but you'll have plotly 2.7.0 which is incompatible.

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