jckantor / nbpages

Command line tool to maintain a repository of Jupyter notebooks.
https://jckantor.github.io/nbpages/
MIT License
3 stars 4 forks source link

Create /data and /figures folders with setup. #22

Closed adowling2 closed 4 years ago

adowling2 commented 4 years ago

This means it will work the same for /notebooks and /docs.

How to handle the case with two repos? It would need to copy only the files that are used.

adowling2 commented 4 years ago

Only do this if the folders do not exist.

adowling2 commented 4 years ago

It is easy to find the figures. Is there an easy way to find all possible data files? Restrict to only .txt and .csv for now?

adowling2 commented 4 years ago

We need to leave out comments when we parse through the code.

adowling2 commented 4 years ago

Is there a simple regular expression to ignore comments in Python code?

adowling2 commented 4 years ago

Important order is strip then search.

adowling2 commented 4 years ago

This would also require extending the destination to a higher-level folder. Or tell the user to always run in the destination repo. You can still keep dst as a useful option.

adowling2 commented 4 years ago

Change --src to -src_repo.

adowling2 commented 4 years ago

Remove dst and src options. Make these and /data and /figure part of nbpages.cfg.

adowling2 commented 4 years ago

We discussed/agreed on putting /data and /figure in the top directory.

jckantor commented 4 years ago

removed dst and src command line options, now configurable in nbpages.cfg. /figures and /data now created by setup (in not present), alternative directory names can be set in nbpages.cfg