plotly.offline.iplot gives a large blank field as its output in Jupyter Notebook/Lab

I have had similar issues with plotly offline in Jupyter in the past - sometimes it's surprisingly inconsistent when/why the plots fail to appear. It may be worth a try starting with an increased data rate limit.

jupyter notebook --NotebookApp.iopub_data_rate_limit=1.0e10


For me helped change notebook to Trusted (this enabled Javascript and give plotly way to build graph into the jupyter notebook.).

This option you can found here:

In upper right side of notebook


I tried all the solutions suggested here, but none of them worked for me. What solved the issue was adding:

import plotly.io as pio
pio.renderers.default='notebook'

and also using fig.show("notebook") rather than simply fig.show(), as suggested here.