plot(1:10)
library("reticulate")
matplotlib <- import("matplotlib")
matplotlib$use("Agg", force = TRUE)

```{python py-plot} import matplotlib.pyplot as plt

x = range(1, 10) plt.plot(x, x)

```{python py-plot-w-fig.path, fig.path="to-be-ignored-and-generate-warning"}
import matplotlib.pyplot as plt

x = range(1, 10)
plt.plot(x, x)


jdblischak/workflowr documentation built on Feb. 27, 2024, 4:37 p.m.