benlubas / molten-nvim

A neovim plugin for interactively running code with the jupyter kernel. Fork of magma-nvim with improvements in image rendering, performance, and more
GNU General Public License v3.0
608 stars 33 forks source link

[Bug] Error initializing Molten with MoltenInit: "Could not initialize kernel named 'python3'" #233

Closed LuisHernandez2508 closed 2 months ago

LuisHernandez2508 commented 2 months ago

Hi, I encountered an issue when trying to initialize Molten using MoltenInit. The error message states that it could not initialize the python3 kernel.

molten-nvim ~

Error message:

[Molten] Could not initialize kernel named 'python3'. Caused By: [Errno 2] No such file or directory: '/home/luish/.local/share/jupyter/runtime/kernel-2e290922-e7b2-40af-9f44-b059bb43aa13.json' Kernel: python3 2024-09-06-122758_2160x1440_scrot

Description

I expected Molten to initialize with the python3 kernel, but the kernel failed to load with the error above. Any advice or help on resolving this issue would be greatly appreciated.

Reproduction Steps

Run MoltenInit. Select the python3 kernel. The error message appears.

benlubas commented 2 months ago

run mkdir -p ~/.local/share/jupyter/runtime

Hopefully that will fix it. Although normally you get a different error for this problem so it might be something else

LuisHernandez2508 commented 2 months ago

Thanks! It worked perfectly. Appreciate your help!