Getting quarto and IJulia to work

mateuszbaran
Thu, 29 Feb 2024 09:40:45 +0000
Jupyter-Notebook

I have some issues getting Quarto and IJulia to work on my computer (Linux Mint) and standard tips don’t seem to work. What happens is the following:

1. Trying to render a Quarto notebook results in the following error message:

➜  examples git:(main) ✗ quarto render RayleighQuotient.qmd

Starting julia-1.10 kernel...Traceback (most recent call last):
  File "/opt/quarto/share/jupyter/jupyter.py", line 21, in <module>
    from notebook import notebook_execute, RestartKernel
  File "/opt/quarto/share/jupyter/notebook.py", line 14, in <module>
    from yaml import safe_load
ModuleNotFoundError: No module named 'yaml'

2. Trying to directly run the .ipynb notebook results in

ERROR: LoadError: ArgumentError: Package IJulia [7073ff75-c697-5162-941a-fcdaad2a7d2a] is required but does not seem to be installed:
 - Run `Pkg.instantiate()` to install all recorded dependencies.

but IJulia is installed and built (re-tried multiple times…)
3. .ipynb notebooks do work in VSCode but through its extension magic.
4. Ideally I’d like the notebook to be rendered with Julia’s Conda but it’s really hard to even figure out which Python is actually used by Quarto or jupyter-notebook.
5. It used to work perfectly fine before I upgraded from Julia 1.9 to 1.10.

Do you have any tips? I’ve spent a couple of hours trying to fix it and this is basically my last attempt before giving up.

12 posts - 6 participants