Creating a custom show function

I am creating a notebook application similar to Jupyter and I would like to write a custom backend for Plotly.
Matplotlib allows this through their backend class which allows you to override the behavior of the show() method.
How would I go about this in Plotly? Can I override show() directly or is there a similar backend class in Plotly (maybe making a new Renderer)?