Consider adding a standalone shell engine that doesn't rely on Knitr or Jupyter #4634
Replies: 3 comments 2 replies
-
|
What about Windows user? 🤔 In my opinion, Quarto is not about building engines, but is about the publishing/editing/writing side. This being said, if you are aware of some existing tool such as Jupyter/knitr/etc., please do share to Quarto team. Final note, please note that knitr/R or Jupyter/Python are not installed nor provided by Quarto, they are external tools. |
Beta Was this translation helpful? Give feedback.
-
|
This is not exactly what you asked for, but the nice thing about jupyter is that there exist jupyter kernels for a lot of languages. See this impressive list: https://github.com/jupyter/jupyter/wiki/Jupyter-kernels In principle, they should all be usable for code execution with Quarto. And syntax highlighting is done by pandoc, anyway: A bash kernel is here: https://github.com/takluyver/bash_kernel |
Beta Was this translation helpful? Give feedback.
-
|
Just adding my +1 to this issue and two cents. I want to make clear right up top that I'm not suggesting that the Quarto project should create an engine for every language. I'm suggesting that the ability to run shell code (particularly bash) with a persistent shell between code blocks is a very common thing to want to do, very valuable, and there are other similar projects that do it well (e.g. Atuin). Simply having some documentation which demonstrates how to do this with existing methods would be really really helpful. I currently maintain an internal quarto website project with many active contributors, and a couple of hundred pages. It would be really lovely if there was a simple "bash" engine (or well supported route). The following approaches don't work well for us:
The issue with https://github.com/takluyver/bash_kernel (aside from the fact there's been no active contribution since 2023) is the part which auto restarts the kernel. This means that if you have code in your .qmd like this: Whilst I expect the Here's a full file to aid reproduction of the issue if necessary: bash_kernel_gotchas.qmdHere's a screenshot of what happens when that qmd is run - as far as quarto is concerned there was no error! To reiterate, I don't think it's your responsibility to fix or maintain https://github.com/takluyver/bash_kernel. But if you do not provide an example qmd in your docs which demonstrates how I can write documentation and use a persistent bash shell, then it falls to me to:
If you agree with my claim that the ability to create a qmd file which runs shell code (particularly bash) with a persistent shell between code blocks is a very common thing to want to do, and very valuable, then you have an opportunity to make your project much more obviously valuable and usable to more people by adding a simple example to your docs! I would be enormously grateful for such an addition. |
Beta Was this translation helpful? Give feedback.

Uh oh!
There was an error while loading. Please reload this page.
-
Quarto CLI seems to be very useful for creating basic Linux and Bash shell documentation. It would be nice if Quarto supported syntax highlighting and execution of shell code without the need for the full Knitr or Jupyter stacks.
What would it take to create a standalone execution engine just for the shell?
Beta Was this translation helpful? Give feedback.
All reactions