Closed hamzashezad closed 3 months ago
i see in utils.lua that the jupytext command is constructed using kernelspec.language
field, which i provide myself when i run jupytext. could there be another way to extract the file extension? perhaps the display_name
or name
?
Hi @hamzashezad thanks for posting an issue.
The relevant code that would need changing is under here. That is the function that will parse the notebook metadata and extract the relevant bits. As you already have realized it looks for kernelspec.language
. I feel like this is the nominal way in which it should be done but would be happy to accept a PR (*) that adds fallback methods for the language detection. I would not expect such a PR to work for every language but it should provide the backbone to add the support for any language such that when something like this pops up for e.g. R we only need to add some entry to a dictionary.
(*) At the moment my life is very hectic and have minimal time to work on side projects but I'm open to reviewing and testing them.
@GCBallesteros, I will happily issue a PR. Thanks for the pointers :)
with the following notebook (note missing
language
tag inkernelspec
):i get the following error:
however, i can successfully convert the notebook to py:hydrogen using locally installed jupytext v1.16.1. this is the generated file;