-
Notifications
You must be signed in to change notification settings - Fork 392
Open
Description
- Remove IJulia from your environment
import Pkg; Pkg.rm("IJulia") - Run a document with Julia in command line
---
title: Julia
format: html
jupyter: julia-1.8
---
```{julia}
b = 2
```> quarto render test.qmd
Starting julia-1.8 kernel...ERROR:
Kernel died before replying to kernel_info
NativeCommandExitException: Program "quarto.exe" ended with non-zero exit code: 1.
IJulia is missing so I expect it to fail but no hint about that. Also this is same short error message as in #2539 (comment)
Doing the --no-execute-daemon will make the error more clear
> quarto render test.qmd --no-execute-daemon
Starting julia-1.8 kernel...ERROR: LoadError: ArgumentError: Package IJulia not found in current path.
- Run `import Pkg; Pkg.add("IJulia")` to install the IJulia package.
Stacktrace:
[1] macro expansion
@ .\loading.jl:1163 [inlined]
[2] macro expansion
@ .\lock.jl:223 [inlined]
[3] require(into::Module, mod::Symbol)
@ Base .\loading.jl:1144
in expression starting at C:\Users\chris\.julia\packages\IJulia\6TIq1\src\kernel.jl:1
2023-02-10 10:55:48,405 - traitlets - ERROR - Error occurred while starting new kernel client for kernel e17486eb-37df-40ba-b972-59a1ab07821c: Kernel died before replying to kernel_info
Kernel died before replying to kernel_info
NativeCommandExitException: Program "quarto.exe" ended with non-zero exit code: 1.
So after that we install Julia with import Pkg; Pkg.add("IJulia")
and then we try to render again using the usual
> quarto render test.qmd
Starting julia-1.8 kernel...Done
Executing 'test.ipynb'
Cell 1/1...Done
pandoc
to: html
output-file: test2.html
standalone: true
section-divs: true
html-math-method: mathjax
wrap: none
default-image-extension: png
metadata
document-css: false
link-citations: true
date-format: long
lang: en
title: Julia
jupyter: julia-1.8
Output created: test.html
This time it works.
So it seems to me that we are not passing all the error message when the daemon is used, as we get the cause only when --no-execute-daemon is passed, but the fix (installing the IJulia package) is fixing the issue with using the daemon also.
Sharing in case we can improve this