From Jupyter notebook to Sphinx documentation

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

import plotly.offline as py


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 It has Jupter notebook style in and out blocks, and it shows interactive plots made using plotly. How can I do that?