Skip to content

Commit beceac3

Browse files
committed
jupyter: add environment variable for quarto base format
Note that we already communicate this to the knitr engine via format$pandoc$to. Here we communicate the base-format which enables explicit detection of extended formats like dashboard and email.
1 parent 244d39a commit beceac3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/resources/jupyter/notebook.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,9 @@ def build_kernel_options(options):
121121

122122

123123
def set_env_vars(options):
124+
os.environ["QUARTO_OUTPUT_BASE_FORMAT"] = str(
125+
options["format"]["identifier"]["base-format"]
126+
)
124127
os.environ["QUARTO_FIG_WIDTH"] = str(options["fig_width"])
125128
os.environ["QUARTO_FIG_HEIGHT"] = str(options["fig_height"])
126129
if options["fig_format"] == "retina":

0 commit comments

Comments
 (0)