From ab4ca11c4063e6e11388369ccfcd3ee18e812802 Mon Sep 17 00:00:00 2001 From: Matthew Brett Date: Tue, 25 Jul 2023 16:56:44 +0100 Subject: [PATCH] Enable jupyter_compat mode Latest reticulate should handle jupyter_compat correctly. See: https://github.com/rstudio/reticulate/pull/1423 --- scripts/install_r_requirements.R | 2 +- source/_common.R | 7 +++---- 2 files changed, 4 insertions(+), 5 deletions(-) diff --git a/scripts/install_r_requirements.R b/scripts/install_r_requirements.R index 7c485dba..1842bb77 100644 --- a/scripts/install_r_requirements.R +++ b/scripts/install_r_requirements.R @@ -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) diff --git a/source/_common.R b/source/_common.R index 0c92dc58..f995e343 100644 --- a/source/_common.R +++ b/source/_common.R @@ -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)