Hi, 

I noticed that `ojs_define` is only defined using Python and R, but not Julia. 
Is there any particular reason why this is the case? 

I coded a quick implementation of it myself and so far it seems to be working fine. 

Here is a MWE notebook code: 

````
---
title: ojs_define using Julia
---

```{julia}
using JSON3, DataFrames, JSONTables


convert(x) = x
convert(x::AbstractDataFrame) = JSONTables.ArrayTable(Tables.rows(x))

function ojs_define(; kwargs...)
    content = Dict("contents" => [Dict("name" => k, "value" => convert(v)) for (k, v) in kwargs])
    tag = "<script type='ojs-define'>$(JSON3.write(content))</script>"
    IJulia.display(MIME("text/html"), tag)
end

ojs_define(
    array=[1,2,3],
    string="somestring",
    dict=Dict("a" => 1, "b" => [1, 2]),
    df=DataFrame(x=randn(100), y=randn(100))
)

```

```{ojs}
array
string
dict
df
Plot.plot({
    grid: true,
    marks: [
        Plot.dot(df, { x: "x", y: "y" })
    ]
})
```
````

I am not familiar with the internals of quarto, but if you think this feature is worth implementing I am glad to open a pull request.  
cscheid
2022-06-23T11:07:57Z
p-gw
Future
closed
`ojs_define` in Julia
https://github.com/quarto-dev/quarto-cli/issues/1203