You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- text: <script src="https://giscus.app/client.js" data-repo="[ENTER REPO HERE]" data-repo-id="[ENTER REPO ID HERE]" data-category="[ENTER CATEGORY NAME HERE]" data-category-id="[ENTER CATEGORY ID HERE]" data-mapping="pathname" data-strict="0" data-reactions-enabled="1" data-emit-metadata="0" data-input-position="bottom" data-theme="preferred_color_scheme" data-lang="en" crossorigin="anonymous" async> </script>
597
+
598
+
```
599
+
600
+
601
+
602
+
603
+
# quarto engine
604
+
605
+
Quarto is a multi-language, next generation version of R Markdown from RStudio, with many new features and capabilities
606
+
607
+
608
+
::: panel-tabset
609
+
610
+
## using R
611
+
612
+
by defalut,Quarto uses Knitr to execute R code
613
+
614
+
```{r}
615
+
#| eval: false
616
+
#|
617
+
title: "matplotlib demo"
618
+
format:
619
+
html:
620
+
code-fold: true
621
+
622
+
```
623
+
624
+
625
+
## using Python
626
+
627
+
when set jupyter: python3 it will run quarto file with python
628
+
629
+
### First, install jupyter & rpy2
630
+
631
+
```{bash}
632
+
#| eval: false
633
+
pip install jupyter
634
+
pip install rpy2
635
+
```
636
+
637
+
638
+
### add engine jupyter: python3
639
+
```{r}
640
+
#| eval: false
641
+
---
642
+
title: "ggplot2 demo"
643
+
author: "Norah Jones"
644
+
date: "5/22/2021"
645
+
format:
646
+
html:
647
+
code-fold: true
648
+
jupyter: python3
649
+
---
650
+
```
651
+
652
+
Note that when rendering an .ipynb Quarto will not execute the cells within the notebook by default (the presumption being that you have already executed them while editing the notebook)
653
+
654
+
You can also specify this behavior within the notebook’s YAML front matter:
655
+
656
+
```{r}
657
+
#| eval: false
658
+
---
659
+
title: "My Notebook"
660
+
execute:
661
+
enabled: true
662
+
---
663
+
```
664
+
665
+
### Run R in python code chunk under python environment
0 commit comments