-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Labels
Description
I apologize in advance if this is the wrong repository to bring this up (the other option being the quarto-cli repo). I originally posted about this on StackOverflow and was told in the comments to try posting it here -- so following that advice (also because this used to work with the old IJulia based method).
Basically, I have a Quarto markdown file trying to make a plot in Julia. The plot shows up with the gr backend but not with the plotly backend. For an MWE the project YAML is as follows
_quarto.yml file
project:
title: "Quarto for preprints"
execute-dir: project
output-dir: .
preview:
port: 4240
browser: false
The notebook file itself is as follows:
index.qmd file
---
title: "Quarto for preprints"
engine: julia
author:
- name: John Doe
affiliations:
department: CSL
format:
html:
toc: true
anchor-sections: true
self-contained: true
embed-resources: true
standalone: true
grid:
margin-width: 350px
code-tools:
source: true
toggle: false
execute:
echo: true
cache: true
keep-ipynb: false
freeze: false
---
Dorem ipsum etc.
## Background
More dorem ipsum.
```{julia}
#| echo: false
try
using Plots
catch e
import Pkg
Pkg.add("Plots");
Pkg.add("PlotlyBase");
Pkg.add("PlotlyKaleido");
finally
using Plots
plotly()
end
```
```{julia}
t=0:0.1:10
plot(t, sin.(2*t), label="sin(2t)", title="A simple plot", xlabel="Time (s)",
ylabel="Amplitude")
```
Issue could be related to this but that issue is closed and reportedly fixed. Maybe a different fix is required with Julia?