Skip to content

How to use the Julia jupyter kernel to generate plots in output #53

@00krishna

Description

@00krishna

I was trying to understand how to generate plots in a codebraid file with julia codeblocks. Julia has its own jupyter kernel, usually called IJulia.

Would something like this work, or does codebraid not yet support Julia jupyter kernels? Also, usually Julia jupyter kernels are attached to a Julia virtual environment. I think codebraid designed to pick the Julia environment that is in the same directory as the pandoc markdown file--as per the changelog and the addition of the --project=@. flag. So would this set then allow me to call the local IJulia jupyter kernel from the local Julia environment--as opposed to the global environment, etc.

I tried the following code:


```{.julia .cb-nb jupyter_kernel=julia session=random example=true}
using Plots
x = 1:10; y = rand(10); # These are the plotting data
plot(x, y)

While there are no errors, the file does not show the actual plot. I also attached the original file and the pdf.
julia_output.pdf
julia-braid-test.md

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions