What is the workflow for using NixOS + venvs? #239
-
This is a very interesting and good plugin, but I'm running into some weird problems. Add to that the complication of using NixOS. Namely:
To be honest, I'm still trying to figure out how to work with NixOS + venvs in general, so apologies if these are silly questions. Thank you either way! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Following the venv guide is a good place to start. I'm also running nixOS, and I'll say that my venvs are a little weird b/c I was also confused at first. You definitely don't need to install anything with Your LSP and your jupyter kernel are gonna be totally separate, running different packages. This is why I'd recommend naming your kernels after the venv that they're installed from. So you can start the kernel that matches your current venv. |
Beta Was this translation helpful? Give feedback.
Following the venv guide is a good place to start. I'm also running nixOS, and I'll say that my venvs are a little weird b/c I was also confused at first.
You definitely don't need to install anything with
wrapNeovimUnstable
. You just have to install some python packages (pip in a venv, or with a nix shell both seem to work, not sure about mixing the two) and then when you runpython -m ipykernel install --user --name whatever
the kernel should "capture" all of the available packages. My understanding is also a bit shaky tbh, but that's the behavior that I've observed so far.Your LSP and your jupyter kernel are gonna be totally separate, running different packages. This is why I'd recomm…