Change default IJulia kernel associated to a notebook

mocalvao
Sat, 04 Feb 2023 17:37:20 +0000
New to Julia

Hi there

I cloned the git repo rethinking.jl for the Statistical Rethinking, 2nd. ed. book, in order to follow along with its notebooks. My currrent version of Julia is 1.8.3, but I still have older ones (such as 1.6.2, for instance). My problem is when I issue:

julia> using IJulia; notebook(detached=true)

and then select one of the notebooks from the cloned repo, it is automatiicaly opened with the 1.6.2 kernel, instead of the 1.8.3 I would like. Is there a way to tell IJulia (for good) to open it (and any other notebooks, for that matter) always with the newest available kernel? I thought I might achieve this by editing either the Project.toml or Manifest.Toml files, but the ones downloaded did not seem to have any direct reference to the Julia version…

Thanks in advance

PS: in hindsight, I thought of deleting the .toml files from the cloned repo, running the commands generate and activate, and then adding all the used packages from scratch, but there should be a more direct way…

3 posts - 2 participants