Tips for using Plotly with Jupyter Notebook 5.0 (the latest version)

Jupyter notebook 5.0 has an iopub.data_rate set to 10^7,
that usually is insufficient for large plotly plots or when using
plotly.offline.

If this limit is exceeded the notebook stops working and the following message is displayed:

IOPub data rate exceeded.
The notebook server will temporarily stop sending output
to the client in order to avoid crashing it.
To change this limit, set the config variable
--NotebookApp.iopub_data_rate_limit.

To fix this behaviour you can either start the notebook with the command:

jupyter notebook --NotebookApp.iopub_data_rate_limit=1.0e10

i.e with a greater than default iopub.data_rate,
or create a jupyter_notebook_config.py as it it is explained here:
http://jupyter-notebook.readthedocs.io/en/latest/config.html

1 Like