How can I setup a python kernel #237
Replies: 1 comment 13 replies
-
Ive never done that myself but, a few ways to go about it: 1, bashBeforeWrapper section in categoryDefinitions You can literally run that script on startup if you want https://nixcats.org/nixCats_format.html#nixCats.flake.outputs.categories
Stuff you add to the path with lspsAndRuntimeDeps is suffixed to the path by default, so it should be overridden by the one from the shell? 3, You could add ipykernel from nixpkgs to python.libraries section in categoryDefinitions? And add --set PYTHONPATH whatever in python3.wrapperArgs or python3.envVars sections? and then enable hosts.python3.enable = true in settings? That would create a packagename-python3 in your path with those settings, and set vim.g.python3_host_prog to the path of it, which stuff will look for, possibly whatever you need to see the python kernel will look at that too? And if not you could likely configure it to point to that variable in lua? https://nixcats.org/nixCats_format.html#nixCats.flake.outputs.settings.hosts 3 would have least impact on startup time, tied with 2 |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I'm currently doing this through a devenv using this script:
Is there anyway to do this with nixCats instead?
Beta Was this translation helpful? Give feedback.
All reactions