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

jupytext --to python does not work (--to py does) #216

Closed
stared opened this issue Apr 14, 2019 · 3 comments
Closed

jupytext --to python does not work (--to py does) #216

stared opened this issue Apr 14, 2019 · 3 comments
Milestone

Comments

@stared
Copy link

stared commented Apr 14, 2019

After typing in the command line jupytext --to python my_notebook.ipynb I got an error:

jupytext.formats.JupytextFormatError: No format associated to extension '.python'```

At the same time `jupytext --to py my_notebook.ipynb` works like a charm (generating the *light* python file).

I guess it is an issue with README.md, not the package.

@mwouts
Copy link
Owner

mwouts commented Apr 14, 2019

That's right! Thanks @stared for reporting this. I think the --to python used to work but only a very long time ago... let me fix this...

@mwouts mwouts added this to the 1.1.0 milestone Apr 14, 2019
@mwouts
Copy link
Owner

mwouts commented Apr 14, 2019

I confirm that the --to argument must now be either notebook, markdown or rmarkdown, or an extension, or a format description (ext:format_name), with possibly a suffix/prefix. Indeed python is not any more part of the list - I will update the readme. Thanks @stared

mwouts added a commit that referenced this issue Apr 14, 2019
@mwouts mwouts closed this as completed Apr 14, 2019
@stared
Copy link
Author

stared commented Apr 15, 2019

Thanks you a lot, @mwouts!

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

2 participants