Online Plotly Compiler

Code, compile, and run Plotly programs online. Write your code in this editor and click the "Run" button to execute it.

Code
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()