fix: jupytext ignoring python3_host_prog#26
fix: jupytext ignoring python3_host_prog#26PlatyPew wants to merge 3 commits intoGCBallesteros:mainfrom
Conversation
Signed-off-by: Platy <daryl.limkz@gmail.com>
|
Would be nice to have this merged since it is expected behaviour. |
|
If I understand the neovim documentation correctly, |
|
molten-nvim will use Python packages installed in g:python3_host_prog, for example. That is to say, plugins should be able to leverage what's installed in g:python3_host_prog. Technically molten-mvim is a python plugin and Jupytext is a Lua plugin, yes, but Jupytext is a plugin used for Python, so it's in a weird position, I'm not disagreeing with that. Jupytext is a CLI tool yes, but it's also a Python package. Let's not forget that. And it can be treated as such. VIRTUAL_ENV would be set for the project to be worked on, not for a plugin dependency. installing jupytext in project to be worked on would be pointless, no? Plus, it would be really convenient to manage all Python dependencies required by Neovim plugins in the same place without having to go through hoops of using uv or pipx. |
Prevents existing configurations from breaking.
|
I've updated the PR to prioritise any system-wide installations of Jupytext (as long as it's in $PATH). It will only use the Jupytext Python package installed within This way it does not break any existing configurations, but also allows jupytext to be installed in the same place as other Neovim plugins as an alternative. |
Jupytext will now use the python3_host_prog if it is set
Fixes #24