Skip to content

Instantly share code, notes, and snippets.

@33eyes
Last active March 22, 2022 02:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save 33eyes/1201f7dac47283a684fb3d036b354075 to your computer and use it in GitHub Desktop.
Save 33eyes/1201f7dac47283a684fb3d036b354075 to your computer and use it in GitHub Desktop.
How to render Plotly in Jupyterlab on SageMaker
from IPython.display import HTML
import plotly.express as px
# Create Plotly fig objects in plotly as usual, and then use HTML(fig.to_html()) to render them in Jupyterlab on SageMaker.
# Or just write to html file: fig.write_html("fig.html") and view it.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment