Open lks-k opened 7 months ago
jupytext.nvim calls jupytext
using vim.fn.system(cmd)
. jupytext
must therefore be findable on the PATH which I believe is not the case above. The easiest way to get it on the PATH is by installing it globally. Next easiest is to activate the venv where it is installed prior to opening nvim.
Oh, I see. It's clear why the setup above didn't work then. I'll make sure jupytext
is included in the path. Thanks for your help! Out of curiosity, do you have any plans to incorporate the Python environment into future versions or rather stay as is?
Currently,
jupytext.nvim
does not utilize any virtual environment for thejupytext
package, even if one is specified using thepython3_host_prog
option.Steps to reproduce
python3 -m venv venv
,jupytext
in this environment (but not globally):venv/bin/python -m pip install pynvim jupytext
,nvim -nu minimal.lua
, and:checkhealth jupytext
inside Neovim.With the minimal setup
minimal.lua
like so:Output of
checkhealth
After executing the steps above the output of
:checkhealth jupytext
is as follows:Expected behaviour
The local installation of
jupytext
inside the environment should be used.More information