Octoframes / jupyter_capture_output

A cellmagic that captures celloutput such as text, image or video to files.
https://octoframes.github.io/jupyter_capture_output/
MIT License
31 stars 0 forks source link

Make verbose output optional #12

Open kolibril13 opened 1 year ago

kolibril13 commented 1 year ago

Currently, there is a log message displayed in the cell-output after the capture cell magic is called. There could be a flag that gives control over this behavior. Two options are possible:

  1. Show message by default, and the --nonverbose flag hides the message.
  2. Hide message by default, and the --verbose flag will show the message.

Personally, I am slightly in favor of the second option because it is more minimalistic, but I am open to arguments for using the 1. option.

These are the lines that produce the log messages: https://github.com/Octoframes/jupyter_capture_output/blob/d12349ba72db7bcf6159094055fa4c5f95ed8e94/jupyter_capture_output/co_cellmagic.py#L19

https://github.com/Octoframes/jupyter_capture_output/blob/d12349ba72db7bcf6159094055fa4c5f95ed8e94/jupyter_capture_output/co_cellmagic.py#L22

https://github.com/Octoframes/jupyter_capture_output/blob/d12349ba72db7bcf6159094055fa4c5f95ed8e94/jupyter_capture_output/co_cellmagic.py#L26