jupytext.nvim icon indicating copy to clipboard operation
jupytext.nvim copied to clipboard

fix: jypytext not found and update vim health methods

Open gogamid opened this issue 1 year ago • 5 comments

Fix: jypytext not available on macOS Sonoma 14.5

Problem: jypytext was not found on macOS Sonoma 14.5 using global package, virtual environment, or Python host via vim.g.

Solution: Using a table in vim.fn.system instead of a string fixes the issue.

Changes:

  • Changed string to table in vim.fn.system.
  • Additionally updated vim.health methods.

gogamid avatar Jun 02 '24 21:06 gogamid

#23

gogamid avatar Jun 02 '24 21:06 gogamid

@GCBallesteros any chance we could get this merged? The checkhealth fix would be very nice.

hahuang65 avatar Sep 18 '24 15:09 hahuang65

@hahuang65 Sorry for the radio silence. Will review and merge soon.

GCBallesteros avatar Sep 25 '24 08:09 GCBallesteros

With this change, in init.lua, the calls to vim.fn.shellescape now need to be removed.

tjni avatar Oct 24 '24 02:10 tjni

Actually, for me the change to a table for cmd breaks the functionality for some reason. The call to jupytext is: jupytext 'file.ipynb' --output='file.md' --to=md:markdown but this returns 1 with a "no such file or directory" for 'file.ipynb'. The exact same command in the shell works, so keeping cmd as a string makes it work as it's then called through the shell

idrilirdi avatar Apr 24 '25 16:04 idrilirdi