showΒΆ
Source:
.. plotly::
import plotly.express as px
fig = px.scatter(x=[0, 1, 2, 3, 4], y=[0, 1, 4, 9, 16])
fig.show()
Output:
import plotly.express as px
fig = px.scatter(x=[0, 1, 2, 3, 4], y=[0, 1, 4, 9, 16])
fig.show()
(Source code, html)
Source:
.. plotly::
:fig-vars: figure
import plotly.express as px
figure = px.scatter(x=[0, 1, 2, 3, 4], y=[0, 1, 4, 9, 16])
figure.show()
Output:
import plotly.express as px
figure = px.scatter(x=[0, 1, 2, 3, 4], y=[0, 1, 4, 9, 16])
figure.show()
(Source code, html)