Skip to content

Commit

Permalink
Fixes to template changes
Browse files Browse the repository at this point in the history
Make language selection more explicit.  No longer rely on the notebook
extension to tell us the language.
  • Loading branch information
matthew-brett committed Nov 14, 2024
1 parent 55f0955 commit 9f57a91
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion source/_common.R
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ knitr::opts_chunk$set(
options(dplyr.print_min = 6, dplyr.print_max = 6)

# Book edition from notebook format in build spec
is_py_ed <- ._spec$noteout$`nb-format` == 'ipynb'
is_py_ed <- ._spec$processing$language == 'python'
is_r_ed <- !is_py_ed

knitr::opts_template$set(svg_fig = list(eval=TRUE, echo=FALSE,
Expand Down
2 changes: 1 addition & 1 deletion source/_quarto.yml.template
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ noteout:
pre-filter: ['todo', 'comment']
filter-divspans: {filter_divspans}
nb-flatten-divspans: {nb_flatten_divspans}
nb-format: Rmd
nb-format: {nb_format}
nb-strip-header-nos: false
interact-url: "/{interact-sdir}/lab/index.html?path="
url-root: {url-root}
Expand Down

0 comments on commit 9f57a91

Please sign in to comment.