Skip to content

ojs_define from pytthon creates a cell (even with python has output and echo set to false) #11495

@jguhlin

Description

@jguhlin

Bug description

#| output: false
#| echo: false
ojs_define(value = 0)

You can see the div here in firefox

Image

The unfortunately messes up dashboard rendering, and as this is usually at the top of files (to process variables before loading ojs) it pushes everything down a bit.

Steps to reproduce

#| output: false
#| echo: false
ojs_define(value = 0)

Expected behavior

No new div should be created, as output/echo are both false

Actual behavior

No response

Your environment

No response

Quarto check output

Quarto 1.6.37
[>] Checking environment information...
      Quarto cache location: C:\Users\Joey\AppData\Local\quarto
[>] Checking versions of quarto binary dependencies...
      Pandoc version 3.4.0: OK
      Dart Sass version 1.70.0: OK
      Deno version 1.46.3: OK
      Typst version 0.11.0: OK
[>] Checking versions of quarto dependencies......OK
[>] Checking Quarto installation......OK
      Version: 1.6.37
      Path: E:\Quarto\bin
      CodePage: 1252

[>] Checking tools....................OK
      TinyTeX: v2024.03
      Chromium: (not installed)

[>] Checking LaTeX....................OK
      Using: TinyTex
      Path: C:\Users\Joey\AppData\Roaming\TinyTeX\bin\windows\
      Version: 2023

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

[>] Checking Python 3 installation....OK
      Version: 3.12.7 (Conda)
      Path: C:/Development/FutureBeesStuff/.pixi/envs/default/python.exe
      Jupyter: 5.7.2
      Kernels: python3

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

[>] Checking R installation...........OK
      Version: 4.4.1
      Path: C:/Development/FutureBeesStuff/.pixi/envs/default/lib/R
      LibPaths:
        - C:/Development/FutureBeesStuff/.pixi/envs/default/lib/R/library
      knitr: (None)
      rmarkdown: (None)

      The knitr package is not available in this R installation.
      Install with install.packages("knitr")
      The rmarkdown package is not available in this R installation.
      Install with install.packages("rmarkdown")

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingdashboardsojs-engineIssues with the ojs engine

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions