Rendering a book type project (as defined in _quarto.yml) with a single chapter renders well to PDF, however adding multiple chapters gives a MultipleDefinitionError: The variable 'mo' was defined by another cell error.
Follow example is created with quarto create project (type book) and quarto add marimo-team/quarto-marimo. Then use a index.qmd and index2.qmd both as this file index.qmd.
_quarto.yml:
project:
type: book
book:
title: "Big Book"
author: "Norah Jones"
date: "22.8.2025"
chapters:
- index.qmd
- index2.qmd
- intro.qmd
- summary.qmd
- references.qmd
bibliography: references.bib
format:
html:
theme:
- cosmo
- brand
pdf:
documentclass: scrreprt
which gives the following error
MultipleDefinitionError: The variable 'my_value' was defined by another cell
MultipleDefinitionError: The variable 'mo' was defined by another cell
MultipleDefinitionError: The variable 'my_value' was defined by another cell
MultipleDefinitionError: The variable 'mo' was defined by another cell
MarimoExceptionRaisedError: Name `mo` is not defined. It was expected to be defined in
MarimoExceptionRaisedError: Name `mo` is not defined. It was expected to be defined in
MarimoExceptionRaisedError: Name `mo` is not defined. It was expected to be defined in
MarimoExceptionRaisedError: Name `mo` is not defined. It was expected to be defined in
Rendering to a html target works perfectly though.
Rendering a book type project (as defined in
_quarto.yml) with a single chapter renders well to PDF, however adding multiple chapters gives aMultipleDefinitionError: The variable 'mo' was defined by another cellerror.Follow example is created with
quarto create project(typebook) andquarto add marimo-team/quarto-marimo. Then use aindex.qmdandindex2.qmdboth as this file index.qmd._quarto.yml:which gives the following error
Rendering to a html target works perfectly though.