jbn / nbmerge

A tool to merge / concatenate Jupyter (IPython) notebooks
MIT License
83 stars 6 forks source link

Add recursive descent merging with private notebook filtering #2

Closed jbn closed 7 years ago

jbn commented 7 years ago

That is, something like,

nbmerge --recursive --exclude-private > merged.ipynb

BookBook also uses <number>-<name>.ipynb semantics for sorting. Specifically, it's a glob over -.ipynb (latex.py:143), lexicographically sorted. My convention uses lexicographic sorting, also. However, instead of that glob, it's aggregates all file that ending with .ipynb which do not begin with _. This lets me name files for inclusion as ###_Title_of_Notebook.ipynb. I think this is convenient because:

jbn commented 7 years ago

See: cb3cd80154797a2e91e0fd764cc586a45496876b