Online Plotly Compiler

Code, compile, and run Plotly programs online

Python
import plotly.express as px
df = px.data.gapminder().query("country=='Canada'")
fig = px.line(df, x="year", y="lifeExp", title='Life expectancy in Canada')
fig.show()
AI Prompt