-
Notifications
You must be signed in to change notification settings - Fork 1
Allow .nb.py as an alternative notebook extension #5
Comments
An initial implementation is available on branch v0.5.0. If I set the default config to
then a jupyter notebook 'notebook.ipynb' is duplicated to a python only version with name 'notebook.nb.py', as expected. If I modify that file and reopen the notebook, then the inputs are up to date. However, when I open a plain python file, say 'script.py' as a notebook, and save it, two additional files are created: 'script.ipynb' and also 'script.nb.py' (with contents identical to 'script.py'). Clearly
I will at least avoid generating two notebooks with the same extensions (not generate 'script.nb.py'), and think a bit more to the second case: should 'ipynb' files be generated only for extensions that are in 'nbrmd_formats' ? Or even, should 'nbrmd_formats' become a dictionary that tells which formats to save to, given the opened one? |
The new format for
|
New version v0.5.0. Fixes #30 #32 #29 #31 mwouts/nbsrc#5
This is indeed getting complicated. I believe that instead of thinking of the configuration options first, we should think of the expected user experience first, and then how it can be implemented. My expectations:
To discuss
|
Allowing companion python scripts to have
.nb.py
extension rather than.py
would possibly improve the user experience, as itThe text was updated successfully, but these errors were encountered: