Skip to content

Instantly share code, notes, and snippets.

@paulrougieux
Created June 27, 2018 13:54
Show Gist options
  • Save paulrougieux/fc61e3bf7ab4b6749e608d18301b4943 to your computer and use it in GitHub Desktop.
Save paulrougieux/fc61e3bf7ab4b6749e608d18301b4943 to your computer and use it in GitHub Desktop.
Variable do not persist in note book mode, but they persist when markdown is compiled
---
title: "R Notebook"
output:
html_document:
df_print: paged
---
```{r setup, include=FALSE}
knitr::opts_chunk$set(echo = TRUE)
library(reticulate)
```
```{python}
x = 1
```
```{python}
print(x)
```
```{r}
print(py$x)
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment