sagemath / sagecell

The Sage Cell Server---providing a way to embed Sage computations into any web page.
Other
201 stars 70 forks source link

Add ability to silence terminal output #557

Closed siefkenj closed 2 years ago

siefkenj commented 2 years ago

A lot of the terminal output seems unnecessary (and clutters the console) in a larger project. This is especially true when sagecell.makeCell is being called multiple times.

This PR adds a flag, sagecell.quietMode to disable non-essential output. It defaults to false, which doesn't change current behavior, but I would advocate for it defaulting to true.

novoselt commented 2 years ago

I would prefer the default to stay false, so that if there are some issues on some sites it is possible to see what is going on there in as much detail as possible. If someone deliberately turns it to true, presumably they understand much better what they are doing in general ;-)