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?