I just tried to use plotly offline in a jupyter notebook (using jupyter lab). The docs gives this example:
import plotly import plotly.graph_objs as go plo
I don't have enough points to add the comment: The @jupyterlab/plotly-extension has been deprecated in favor of the plotly supported render extension, which is at: https://www.npmjs.com/package/jupyterlab-plotly.
Install via:
jupyter labextension install jupyterlab-plotly