Imports

#collapse-hide
import pandas as pd
import plotly
import plotly.express as px
from IPython.display import display_html, HTML
from io import StringIO

Plotly Express

df = px.data.iris()
fig = px.scatter(df, x="sepal_width", y="sepal_length", color="species")
HTML(fig.to_html(include_plotlyjs='cdn'))