File tree Expand file tree Collapse file tree 3 files changed +72
-0
lines changed
Expand file tree Collapse file tree 3 files changed +72
-0
lines changed Original file line number Diff line number Diff line change 1+ ---
2+ title : " Environment Variables"
3+ summary : Environment variables Quarto inspects and sets
4+ format : html
5+ draft : true
6+ ---
7+
8+ ## Variables Quarto inspects
9+
10+ These are variables that you can set to control how Quarto renders documents. For example, you can set them explicitly before running ` quarto render ` :
11+
12+ ``` {.bash filename="Terminal"}
13+ export QUARTO_R=/opt/R/4.2.3/bin
14+ quarto render
15+ ```
16+
17+ You can read about other ways to set environment variables in Quarto Projects in [ Environment Variables] ( /docs/projects/environment.qmd ) .
18+
19+ | Variable | Description |
20+ | -----------------| -------------|
21+ | ` QUARTO_R ` | |
22+ | ` QUARTO_PYTHON ` | |
23+ | | |
24+
25+ ## Variables Quarto sets
26+
27+ These variables are set by Quarto you can query them. For example, you can query them in an executable code cell:
28+
29+ ::: {.panel-tabset}
30+
31+ ## R
32+
33+ ``` r
34+ Sys.getenv(" QUARTO_DOCUMENT_PATH" )
35+ ```
36+
37+ ## Python
38+
39+ ``` python
40+ import os
41+ print (os.environ[" QUARTO_DOCUMENT_PATH" ])
42+ ```
43+
44+ ## Julia
45+
46+ ``` julia
47+ ENV [" QUARTO_DOCUMENT_PATH" ]
48+ ```
49+
50+ :::
51+
52+
53+ | Variable | Description |
54+ | ---------------------------| -------------|
55+ | ` QUARTO_PROJECT_ROOT ` | |
56+ | ` QUARTO_DOCUMENT_PATH ` | |
57+ | | |
58+
59+
Original file line number Diff line number Diff line change 1+ ---
2+ title : " Advanced User Documentation"
3+ format : html
4+ search : false
5+ listing :
6+ type : table
7+ fields : [title, summary]
8+ field-display-names :
9+ summary : Summary
10+ ---
11+
12+ Topics on this page may be of interest to advanced users of Quarto.
Original file line number Diff line number Diff line change 11---
22title : Jupyter Kernel Execution
33format : html
4+ summary : How to support Quarto from a Jupyter kernel
45---
56
67Quarto executes Jupyter notebooks using [ ` nbclient ` ] ( https://github.com/jupyter/nbclient ) together with a few additional options
You can’t perform that action at this time.
0 commit comments