-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
Here's a small example Quarto doc which has a Distributed example. Running this code by itself (Julia command line or REPL) produces the desired output. The Quarto document/website also renders if using the Jupyter engine.
---
engine: Julia
---
# Introduction
This is a book created from markdown and executable code.
```{Julia}
using Distributed
Distributed.addprocs(4)
```
When running with the first three lines deleted (i.e. the Jupyter engine):
dist_mwe quarto preview
Preparing to preview
Watching files for changes
Browse at http://localhost:3374/
GET: /
Starting julia-1.11 kernel...Done
Executing 'intro.quarto_ipynb'
Cell 1/1: ''...Done
pandoc
to: html
output-file: intro.html
standalone: true
toc: true
number-sections: true
title-prefix: dist_mwe
section-divs: true
html-math-method: mathjax
wrap: none
default-image-extension: png
number-offset:
- 1
variables: {}
metadata
crossref:
chapters: true
document-css: false
link-citations: true
date-format: long
lang: en
bibliography:
- references.bib
theme:
- cosmo
- brand
hide-description: true
title: "[1]{.chapter-number}\_ [Introduction]{.chapter-title}"
GET: /intro.html
When running with the Julia engine in the front matter:
➜ dist_mwe quarto preview
Preparing to preview
[1/1] intro.qmd
Starting julia control server process. This might take a while...
Julia server process started.
Running [1/1] at line 10: using Distributed
Julia Version 1.11.4
Commit 8561cc3d68d (2025-03-10 11:36 UTC)
Build Info:
Official https://julialang.org/ release
Platform Info:
OS: macOS (arm64-apple-darwin24.0.0)
CPU: 14 × Apple M4 Max
WORD_SIZE: 64
LLVM: libLLVM-16.0.6 (ORCJIT, apple-m1)
Threads: 1 default, 0 interactive, 1 GC (on 10 virtual cores)
Environment:
JULIA_PROJECT = @.
JULIA_LOAD_PATH = @:@stdlib
Also tested on Julia 1.10.9 with same effect (doesn't work with QuartoNotebookRunner, but same code will run with the IJulia kernel via Quarto, as well as in the REPL).
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels