Prevent rendering with jupyter notebook #11542
-
DescriptionI have a qmd document that looks like so:
When I try to render this quarto always tries to use jupyter. I do not want to use python or jupyter to render this document. How can i explicitly tell quarto to use the knitr engine instead? This results in an error
This makes sense because I do not have nbformat installed nor do i want to have it installed |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 1 reply
-
I can avoid this by adding an empty R code chunk to the document
but this seems a little bit silly. I do not have an active conda environment, virtualenv, or other such environment. So defaulting to jupyter notebooks seems a bit interesting. |
Beta Was this translation helpful? Give feedback.
-
By default, Quarto tries to guess the compute engine to use. If you don't want any engine because you don't have any computations, you can use ---
title: "Quarto Playground"
format: html
engine: markdown
---
This is a playground for Quarto.
{{< lipsum 1 >}}
{#fig-placeholder} If you prefer to have |
Beta Was this translation helpful? Give feedback.
-
Adding |
Beta Was this translation helpful? Give feedback.
-
Thanks all! This works for me! The docs, from what I could find, only showed jupyter: and knitr: to specify settings. The engine argument is exactly what i need |
Beta Was this translation helpful? Give feedback.
By default, Quarto tries to guess the compute engine to use.
If there is an R code cell, then
knitr
is used elseJupyter
.If you don't want any engine because you don't have any computations, you can use
engine: markdown
(if you have code cells, those won't be evaluated of course).If you prefer to have
knitr
, you can set it explicitly:engine: knitr
.