Closed papayoun closed 9 months ago
The problem was not a bug, but my ignorance of seaborn objects. adding .show() to the seaborn.objects graph code was sufficient. Sorry for that!
(as I don't know how to use params option with the jupyter engine)
Using Parameters in Quarto for Jupyter engine is described https://quarto.org/docs/computations/parameters.html#jupyter
quarto render
However, as you are using parameter to adapt echo
this is indeed only possible with historical knitr option syntax.
In Quarto, conditional use this syntax: https://quarto.org/docs/authoring/conditional.html and it does not control the computation cell options
when-meta
can be a way to set some conditional based on a metadata value you would set in configuration or using a computed value.
We'll try to improve this in the future
Bug description
I want to do an exercise on python graphs using quarto (I do it within
Rstudio
). I want my document to contain the correction, but this correction should be displayed according to aparams
option. Therefore, i used theknitr
engine in quarto (as I don't know how to useparams
option with thejupyter
engine). However, using this engine, my graphs that useseaborn.objects
are not displayed (whereas usingseaborn
+matplotlib
, it works). However, theseaborn.objects
graphs are well displayed when the engine is set tojupyter
(just changeknitr
tojupyter
in the code below). I would like to fix that:seaborn.objects
graph withknitr
engine;jupyter
engine.Is there any solution?
Steps to reproduce
Exercise 2: Make the following graph with
seaborn.objects