Skip to content

--- as slide separation markers confuses Jupyter's cell detection #8998

@anhi

Description

@anhi

Bug description

When using inline python code, for some reason, only some of the expressions are evaluated. I can't see any logic to which expressions work and which don't.

Steps to reproduce

---
title: Test
subtitle: test
format: revealjs
engine: jupyter
---

### test

- `{python} 1`

---


### test

- `{python} 2`

---


### test

- `{python} 3`

Expected behavior

A presentation with three slides, showing 1, 2, and 3.

Actual behavior

A presentation with three slides, the first showing "1", the second "{python} 2", the third "3".

Your environment

  • IDE: VSCode, OS: MacOS Ventura

Quarto check output

Quarto 1.4.551
[✓] Checking versions of quarto binary dependencies...
      Pandoc version 3.1.11: OK
      Dart Sass version 1.69.5: OK
      Deno version 1.37.2: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
      Version: 1.4.551
      Path: /Applications/quarto/bin

[✓] Checking tools....................OK
      TinyTeX: (not installed)
      Chromium: (not installed)

[✓] Checking LaTeX....................OK
      Using: Installation From Path
      Path: /Library/TeX/texbin
      Version: 2023

[✓] Checking basic markdown render....OK

[✓] Checking Python 3 installation....OK
      Version: 3.11.8
      Path: /tmp/env/bin/python3
      Jupyter: 5.7.1
      Kernels: julia-1.10, julia-1.8, julia-1.9, julia-1.8.5-_4-threads_-1.8, python3

[✓] Checking Jupyter engine render....OK

[✓] Checking R installation...........OK
      Version: 4.3.3
      Path: /opt/homebrew/Cellar/r/4.3.3/lib/R
      LibPaths:
        - /opt/homebrew/lib/R/4.3/site-library
        - /opt/homebrew/Cellar/r/4.3.3/lib/R/library
      knitr: 1.45
      rmarkdown: 2.25

[✓] Checking Knitr engine render......OK

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingengines-jupyterAnything related to Jupyter engine

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions