-
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
File names with dot '.' #138
Comments
Hello Dang, thanks for reporting this. As you noticed we already had an issue with this behavior at #87, so it is indeed a good idea to see if we can improve that part of the program. What happens is the following: Jupytext allows file extensions to be made of a prefix (made of at most three chars), plus the format extension. This allows to export a single document to multiple formats for a given extension - take for instance the demo world population notebook that is exported to all flavors of Python scripts. I agree that the current implementation is not perfect. In your example, not only the displayed name is not right, but also you will find it difficult to pair the script to a notebook, as jupytext thinks you script has extension Do you see a better way to allow multiple flavors of scripts for a single notebook? Probably the easiest way to solve your example would be to only allow |
Hello Dang, I've choosen the simplest approach. Jupytext 0.9.0 will use the full extension only if the extensions prefix is one of lgt/pct/spx or nb, so we should have no issues any more with file names with dots (unless they end with The fix is available now on branch 0.9.0. |
That has been a long pending subject! The next release introduces prefixes, suffixes, etc, and hopefully will fix this once for all... @kiendang , would you like to give a try to the RC?
Thanks! |
I expect this to be fixed in the RC (now at 1.0.0-rc2):
@kiendang, please reopen if you see any issue. Thanks. |
Sorry to trouble you again.
Currently file names with dot
.
with 3 or fewer characters after the dot will be truncated when displayed inside the notebook UIe.g.
file5.1.py
will be displayed as
file5
instead offile5.1
Looking through the code and release notes #87 #96 (b6cc7f4) it looks like this behavior is intentional? May I know why it's intended that way and is it possible to change it?
The text was updated successfully, but these errors were encountered: