Dear all,
this summer an attempt to use Python's logging module in SageMath for
logging/verbosing on
https://trac.sagemath.org/ticket/21349
>From the Sage-side this seems to be completed, but the logging does not
work well with the jupyter notebook.
Is anyone out there, who can help fixing this
I'm surprised at the apparent consensus that the only solution is to
re-implement "verbose" by some totally different method. I came across this
issue before and I found a perfectly acceptable fix, which I didn't bother
to make a ticket for because I didn't know if anyone else cared about this
issu
On 2016-08-09 19:31, William Stein wrote:
> The only good way is to rip out the "verbose" thing and replace it
> with the Python logging module. Then its easy to have different
> loggers for your code and for the flint interface, and make them log
> in different levels and/or differ
On Tuesday, August 9, 2016, Volker Braun wrote:
> The only good way is to rip out the "verbose" thing and replace it with
> the Python logging module. Then its easy to have different loggers for your
> code and for the flint interface, and make them log in different levels
> and/or different outp
Say I have some function doing something:
sage: def f(M):
: A = M # something will be done here
: verbose('something', 1)
: iA = A^(-1)
: return iA
Setting the level of verbosity to 1 gives the output
sage: set_verbose(1)
sage: f(Matrix([[1, 2], [3, 4]]))
verbose