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
531 stars 30 forks source link

docs: Enhance/Refactor detecting kernel which name is same as venv #243

Open dotpie opened 1 week ago

dotpie commented 1 week ago

Just for suggestion. From what I've observed, Molten use kernel name as a kernel ID. Therefore it display the default name of kernel in every environments, (python3 in conda) which make user confused. I refactor it based on the assumption that user installed a kernel inside of the project

Whether the user installs ipykernel or not, this logic searches for a kernel with the same name as the venv.
If not, it asks the user to select the kernel to connect to.

This PR intended following details:

https://github.com/user-attachments/assets/7f23e058-ba65-4f98-aaaa-53a56bd3e331