-
Notifications
You must be signed in to change notification settings - Fork 386
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
Infer script extension based on Jupyter kernel - 'auto' extension #93
Comments
Sure, we could do that. What would you think of using a keyword like |
Yes, |
I have implemented this on branch v0.8.0. Would you like to test it? You should be able to use 'auto' in all the options that accepts extensions. See for instance the tests: https://github.com/mwouts/jupytext/blob/v0.8.0/tests/test_contentsmanager.py#L440 |
|
More precisely with notebook metadata: "jupytext": {
"formats": "ipynb,auto:percent"
} The script metadata is as follows: # jupytext:
# formats: ipynb,auto:percent,py:light |
Thanks @z-m-k for the feedback. I confirm that I also observe the same behavior. I'll soon add a few more tests, and correct this. |
@z-m-k the new release (v0.8.0) should have a good support for the auto extension. Please reopen if that is not the case! Thanks |
If I provide a list of let's say: "ipynb,jl,py" it would be great if jupytext inferred which script extensions to create based on the kernel specified in ipynb.
The text was updated successfully, but these errors were encountered: