Black Lives Matter. Please consider donating to Black Girls Code today.

Rendering graph in jupyterlab

I am trying to use to display an interactive plot from a jupyterlab notebook. I use the python nbinteract library to convert my .ipynb notebook to html, commit my code to my repo and then when I go to the exported html, the plot is static and I can’t interact with it. What do I need to change? Does anyone have an example of viewing a jupyter/jupyterlab notebook on page? Here is the basic code I am trying to be able to interact with (although I have a lot more examples in the code, I am trying to get the basic example to work first…)

import plotly.graph_objects as go
fig = go.Figure(
data=[go.Bar(y=[2, 1, 3])],
layout_title_text=“A Figure Displayed with”