rmsrosa / nbbinder

Due to naming collision with Binder https://mybinder.org, this packaged has been archived and is survived by the renamed version NBJoint, at https://github.com/rmsrosa/nbjoint
Other
2 stars 0 forks source link

Add option to "tighten" the structure of the notebooks #3

Closed rmsrosa closed 4 years ago

rmsrosa commented 4 years ago

In relation to issue #1, it would be nice to have the option to tighten the structure of the notebook.

I mean, if the notebooks are, in order,

...
01.01-Blah.ipynb
01.03-Another_Blah.ipynb
...

The "tighten" the notebook would lead rename 01.03-Another_Blah.ipynb to 01.02-Another_Blah.ipynb.

This could be an extra argument, say tighten: bool=True, for the function nbbinder.restructure(), or a different function nbbinder.tighten(path_to_notes:str='.').

I think the best is to be an argument in the restructure function, which will marry better with the configuration file. This could be included in the key restructure_notebook of the YAML config file.

restructure_notebook:
  insert: True
  tigthen: True