Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

g:jupytext_fmt = 'md:myst' doesn't work #26

Open
vincentxavier opened this issue Oct 2, 2021 · 2 comments
Open

g:jupytext_fmt = 'md:myst' doesn't work #26

vincentxavier opened this issue Oct 2, 2021 · 2 comments

Comments

@vincentxavier
Copy link
Contributor

When you set
let g:jupytext_filetype_map = {'md:myst': 'markdown'} let g:jupytext_extension_map = {'md:myst': 'md'} let g:jupytext_fmt = 'md:myst'
the new format isn't taken into account and opening a file yields an error about unrecognized format despite jupytext --to md:myst working

A clear and concise description of what the bug is.

Diagnostics

  • vim --version: NVIM v0.4.4

  • Operating system information (e.g. uname -a): SMP Debian 5.14.6-3 (2021-09-28) x86_64 GNU/Linux

  • python --VV: Python 3.9.7 (default, Sep 24 2021, 09:43:00)

  • Are you using Anaconda? No

  • Does converting the notebook to/from ipynb with jupytext on the command line work? Yes

  • Does it work when you set g:jupytext_command in ~/.vimrc to be the exact some jupytext that you used manually, with the exact same version of Python? Yes

@goerz
Copy link
Owner

goerz commented Oct 3, 2021

There is no g:jupytext_extension_map. This is not a user-configurable mapping. The keys in s:jupytext_extension_map should be all the formats that jupytext supports, and if jupytext gains new formats, that dict should be extended accordingly. I'm not really following the development of jupytext, but I'd merge PR's that extend s:jupytext_extension_map with new formats.

@StanczakDominik
Copy link

Could probably be closed since #28 got merged, right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants