-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
PR: Set Python as default file extension for the "Save As" dialog #3765
Conversation
favorite_exts = ['.py', '.R', '.jl', '.pyw', '.pyx', '.C', '.CPP'] | ||
other_exts = ['.ipynb', '.md'] + [ext for ext in pygments_exts if ext not in favorite_exts] | ||
all_exts = tuple(favorite_exts + other_exts) | ||
print(all_exts) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please remove this print
other_exts = ['.ipynb', '.md'] | ||
all_exts = tuple(pygments_exts + other_exts) | ||
favorite_exts = ['.py', '.R', '.jl', '.pyw', '.pyx', '.C', '.CPP'] | ||
other_exts = ['.ipynb', '.md'] + [ext for ext in pygments_exts if ext not in favorite_exts] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please move .ipynb
and .md
to favorite_exts
(after .jl
)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, great!!!
I think this is ready. Let's merge it and see how it goes :-) Thanks @malliwi88! |
Fixes #3764
Take a look to this @ccordoba12 and @goanpeca.
This PR can solve your problems @rlaverde with save_as feature.
any suggestions and comments are welcome. 👍