Add gammapy jupyter CLI for developers #1766
This PR provides a new CLI
$ gammapy jupyter Usage: gammapy jupyter [OPTIONS] COMMAND [ARGS]... Perform a series of actions on Jupyter notebooks. The chosen action is applied for every Jupyter notebook present in the current working directory. Option --file allows to chose a single file, while option --fold allows to choose a different folder to scan. These options are mutually exclusive, only one is allowed. Examples -------- $ gammapy jupyter stripout $ gammapy jupyter --src=mynotebooks.ipynb execute $ gammapy jupyter --src=myfolder/tutorials test $ gammapy jupyter black Options: --src TEXT Local folder or Jupyter notebook filename. -h, --help Show this message and exit. Commands: black Format code cells with black. execute Execute Jupyter notebooks. stripout Strip output cells. test Check if Jupyter notebooks are broken.
I have refactored most of the code and removed the
Surely there are still fixes to address in code review, and I thank you for your patience.