Persistent failure to find jupyter-cache with Julia #6667
-
DescriptionI have a Quarto project running Julia 1.9 blocks that renders fine with --no-cache, but fails with "jupyter-cache package is required for cached execution" when cacheing. I have tried:
I am stumped. What else can I try? |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 13 replies
-
Could you share a repository where you have the "faulty" setup? Or the steps to reproduce? PS: I do not use Conda for many reasons and prefer virtualenv. |
Beta Was this translation helpful? Give feedback.
-
The repo is at https://github.com/tobydriscoll/udmath351/tree/master/course. I did look at those docs. pip did not behave any differently than installing via conda. If the answer is in there, I've missed it. P.S. I use mamba rather than conda in practice. Just what I grew up with, so to speak. |
Beta Was this translation helpful? Give feedback.
-
Can you check somehow that the python version used with your kernelspec is indeed the one you have installed the jupyter-cache package into ? I know that I already had issues with Julia and Jupyter because Julia was not using the Jupyter installed with Conda, but another Jupyter installed in my usual python setup. As explained at https://quarto.org/docs/computations/julia.html#ijulia it could happen that when you install IJulia in Julia, it will use an existing Jupyter and not install conda or anything. It would mean to me that Though you said
So it seems that IJulia is configured with a Jupyter that knows about Jupyter-cache. Unless it was not tested with same kernel Quarto loads from YAML spec. I don't know how mamba works - so maybe there is a specificity and Quarto miss something. THough I believe we rely on |
Beta Was this translation helpful? Give feedback.
-
I still don't know "why," but I do have "how." According to the IJulia docs, unsetting Thanks for looking into it! |
Beta Was this translation helpful? Give feedback.
I still don't know "why," but I do have "how."
According to the IJulia docs, unsetting
ENV["JUPYTER"]=""
and rebuilding IJulia is supposed to force it to use its own miniconda environment. That wasn't happening, no matter what traces of IJulia I tried removing and rebuilding, so I finally just nuked the.julia
folder and installed packages from scratch. Now it uses the julia miniconda, and the quarto cacheing works again.Thanks for looking into it!