Skip to content

Commit

Permalink
Enable jupyter_compat mode (#119)
Browse files Browse the repository at this point in the history
Latest reticulate should handle jupyter_compat correctly.

See: rstudio/reticulate#1423
  • Loading branch information
matthew-brett authored Jul 25, 2023
1 parent cafb999 commit 573b13a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion scripts/install_r_requirements.R
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,5 @@ fs::dir_create('~/R-dev') # ?also correct for Windows
# Install our patched version of reticulate.
# https://github.com/rstudio/reticulate/pull/1401
remotes::install_github("rstudio/reticulate",
ref='e8abae30', # Matplotlib compat merge.
ref='a003118f', # jupyter-compat fixes.
dependencies=TRUE)
7 changes: 3 additions & 4 deletions source/_common.R
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,9 @@ knitr::opts_chunk$set(
fig.asp = 0.618, # 1 / phi
fig.show = "hold",
eval = NA,
echo = NA
# Do not enable Reticulate jupyter_compat mode for now, see:
# https://github.com/rstudio/reticulate/issues/1387
# jupyter_compat = TRUE # Reticulate enable - only show repr for last expr
echo = NA,
# See: https://github.com/rstudio/reticulate/issues/1387
jupyter_compat = TRUE # Reticulate enable - only show repr for last expr
)

options(dplyr.print_min = 6, dplyr.print_max = 6)
Expand Down

0 comments on commit 573b13a

Please sign in to comment.