Black Lives Matter. Please consider donating to Black Girls Code today.
Learn how to use COVID-19 data in open source Dash apps. Register for the Sept 23rd webinar with IQT!

From Jupyter notebook to Sphinx documentation

I generated some in-line plots in a Jupyter notebook:

import plotly.offline as py
py.init_notebook_mode()

py.iplot(...)

I’m then using nbsphinx to convert this Jupyter notebook to HTML, but the plotly plots aren’t showing up. Plots that I made with matplotlib show up in the docs just fine.

What I want to do is replicate https://plot.ly/python/ipython-notebook-tutorial/. It has Jupter notebook style in and out blocks, and it shows interactive plots made using plotly. How can I do that?