Skip to content

ojs_define not working with jupyter:julia-1.11 #13949

@adityam

Description

@adityam

I have:

  • searched the issue tracker for similar issues
  • installed the latest version of Quarto CLI
  • formatted my issue following the Bug Reports guide

Bug description

The following document works with engine: julia but fails with jupyter: julia-1.11

---
title: Test
jupyter: julia-1.11
---

```{julia}
using JSON, DataFrames

df = DataFrame(a = Int[], b = Float64[])
push!(df, (1,2.5))
push!(df, (2,3.5))
push!(df, (3,1.5))

ojs_define(data = df)
```

```{ojs}
data
```

```{ojs}
Plot.plot({
 grid: true,
 marks: [
   // Axes
   Plot.line(data, {x:"a", y:"b"})
 ]
})
```

The reason appears to be different definitions of ojs_define.

Perhaps the simplest option could be to copy the definition from QuartoNotebookRunner, but I am not sure if that will work as I don't completely understand the internals of calling julia in both environments.

Steps to reproduce

No response

Actual behavior

No response

Expected behavior

No response

Your environment

No response

Quarto check output

quarto check
Quarto 1.8.27
[✓] Checking environment information...
      Quarto cache location: /home/adityam/.cache/quarto
[✓] Checking versions of quarto binary dependencies...
      Pandoc version 3.6.3: OK
      Dart Sass version 1.87.0: OK
      Deno version 2.3.1: OK
      Typst version 0.13.0: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
      Version: 1.8.27
      Path: /opt/quarto/bin

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

[✓] Checking LaTeX....................OK
      Using: Installation From Path
      Path: /usr/bin
      Version: undefined

[✓] Checking Chrome Headless....................OK
      Chrome:  (not detected)

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

[✓] Checking Python 3 installation....OK
      Version: 3.13.7
      Path: /usr/bin/python3
      Jupyter: 5.8.1
      Kernels: julia-1.9, julia-1.11, julia-1.10, python3

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

[✓] Checking R installation...........(None)

      Unable to locate an installed version of R.
      Install R from https://cloud.r-project.org/

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions