Created
November 15, 2022 23:43
-
-
Save FrankGrimm/287d3689339ccbe92d4e6b6c7f1b22b7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
title: "object passing example" | |
format: | |
html: | |
code-fold: true | |
--- | |
```{python} | |
import numpy as np | |
var = np.arange(0, 2, 0.01) | |
var | |
``` | |
foobar | |
```{r} | |
library(reticulate) | |
py$var | |
var2 <- py$var [1:4] | |
``` | |
foobar | |
```{python} | |
r.var2 | |
``` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment