library(reticulate) python <- "~/.virtualenvs/python-3.7.7-venv/bin/python" if (file.exists(python)) use_python(python, required = TRUE)
import plotly.express as px fig = px.scatter(x=[0, 1, 2, 3, 4], y=[0, 1, 4, 9, 16]) fig.show()
import plotly.express as px fig = px.scatter(x=[0, 1, 2, 3, 4], y=[0, 1, 4, 9, 16]) fig
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.