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
I have been trying to render a toy Quarto project combining Quarto Markdown files (.qmd) and Julia scripts (.jl) annotated with the percent format. I have hit two Quarto upstream issues (10034 and 3157) which made it tricky for me to understand what was and wasn't possible at the moment.
I have drafted an extended version of the "note" block at the beginning of the README file. It could make it easier for other users to understand the current situation. I can make a PR, if this reads like something that can be worked on.
Note
This Julia package provides a code evaluation engine that Quarto
can use. Please run the quarto CLI tool rather than this package
directly unless you would like to help with the development of this engine.
Starting from the pre-releasev1.5.29
this engine is available out-of-the-box with quarto when you set engine: julia in
your Quarto Markdown files. You don't need to follow the developer instructions below. Note, however, the following Quarto upstream issues.
QuartoNotebookRunner can process Julia scripts annotated with the percent format (see this test file for an example). However, at the moment, Quarto mistakenly assigns the Jupyter engine as soon as the percent format is detected, even if the Julia engine is explicitly set in the script header. A somewhat unsatisfactory workaround is to move the code of interest to a Quarto Markdown file. Alternatively, it is still possible to render individual Julia scripts using QuartoNotebookRunner directly, as described in the Usage section below. Quarto projects including Julia scripts can not be rendered until the upstream issue is resolved.
If you are working with Quarto Projects, be aware that Quarto is failing to set a project-wide engine other than Python. A simple workaround is to set the Julia engine in each Quarto Markdown file of your project.
The text was updated successfully, but these errors were encountered:
If you are working with Quarto Projects, be aware that Quarto is failing to set a project-wide engine other than Python.
This is not quite true. Quarto completely disregards the engine key when it's set in the project file, as far as I know, it affects all languages (but python only has one backend, jupyter)
I have been trying to render a toy Quarto project combining Quarto Markdown files (
.qmd
) and Julia scripts (.jl
) annotated with the percent format. I have hit two Quarto upstream issues (10034 and 3157) which made it tricky for me to understand what was and wasn't possible at the moment.I have drafted an extended version of the "note" block at the beginning of the README file. It could make it easier for other users to understand the current situation. I can make a PR, if this reads like something that can be worked on.
Note
This Julia package provides a code evaluation engine that Quarto
can use. Please run the
quarto
CLI tool rather than this packagedirectly unless you would like to help with the development of this engine.
Starting from the pre-release
v1.5.29
this engine is available out-of-the-box with
quarto
when you setengine: julia
inyour Quarto Markdown files. You don't need to follow the developer instructions below. Note, however, the following Quarto upstream issues.
Scripts with the percent format
QuartoNotebookRunner can process Julia scripts annotated with the percent format (see this
test file
for an example). However, at the moment, Quarto mistakenly assigns the Jupyter engine as soon as the percent format is detected, even if the Julia engine is explicitly set in the script header. A somewhat unsatisfactory workaround is to move the code of interest to a Quarto Markdown file. Alternatively, it is still possible to render individual Julia scripts using QuartoNotebookRunner directly, as described in the Usage section below. Quarto projects including Julia scripts can not be rendered until the upstream issue is resolved.Project-wide engine
If you are working with Quarto Projects, be aware that Quarto is failing to set a project-wide engine other than Python. A simple workaround is to set the Julia engine in each Quarto Markdown file of your project.
The text was updated successfully, but these errors were encountered: