santosjorge / cufflinks

Productivity Tools for Plotly + Pandas
MIT License
3.02k stars 675 forks source link

go_offline() not go offline unless run from ipython #239

Open QuocTran opened 4 years ago

QuocTran commented 4 years ago

This is a bug. cf.go_offline() will not go offline unless it is in a ipython due to wrong indentation This line https://github.com/santosjorge/cufflinks/blob/master/cufflinks/offline.py#L32 need to be outside of the if run_from_ipython(): condition check.

eduard93 commented 4 years ago

Workaround:

import cufflinks as cf
cf.offline.py_offline.__PLOTLY_OFFLINE_INITIALIZED=True
aaronsmith1234 commented 3 years ago

fyi, i just ran into this issue, and spent about an hour trying to figure out what in the world was going on.... love Cufflinks, thanks for all the work you do!