Is it possible to execute bash/shell scripts? #5275
-
|
Is it possible to execute bash/shell scripts? Or at least show code highlighting? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 2 replies
-
|
Seems like I have found a solution. Setting |
Beta Was this translation helpful? Give feedback.
-
|
You can use Jupyter (as long as you have the right kernel to execute Bash code) instead of |
Beta Was this translation helpful? Give feedback.
-
|
@mcanouil Need to revive this question. Why don't bash chunks work with jupyter engine? knitr.qmd jupyter.qmd Related to #7172 |
Beta Was this translation helpful? Give feedback.




Just to correct a little: it's not a question for the Jupyter developers, because quarto is the tool converting .qmd code cells to .ipynb notebooks.
With that said, it is the case that Jupyter notebooks generally don't support the execution of code cells in multiple languages the way that knitr does. So, with the Jupyter engine, you need to find a different way to do it.
The Python kernel in the Jupyter engine offers cell magics, and that's how we expose shell execution capabilities in quarto: https://quarto.org/docs/computations/execution-options.html#shell-commands