Skip to content

Instantly share code, notes, and snippets.

@FrankGrimm
Created November 15, 2022 23:43
Show Gist options
  • Save FrankGrimm/287d3689339ccbe92d4e6b6c7f1b22b7 to your computer and use it in GitHub Desktop.
Save FrankGrimm/287d3689339ccbe92d4e6b6c7f1b22b7 to your computer and use it in GitHub Desktop.
---
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