You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, the Trace* routines (TraceBuitins, TraceEvaluation, Stacktrace) use Python print() to report information.
This means that the information is hidden from some front-ends like Django and Jupyter-based front ends. It also means that the information is not accessible from inside Mathics3.
These routines should be written to return a list of information (same as WMA Trace routines work). Other builtin functions should be additionalPrintXXX routines which format and print this inside Mathics3. See for example how Python's routines work for gathering exception and traceback information while there are other routines for printing that information.
There is an underlying principle that a person should be able to write profilers and debuggers in pure Mathics3 code. Of course the underlying gather of data needs to be done in Python, but all the information it gathers should be accessible in Mathics3.
The text was updated successfully, but these errors were encountered:
Currently, the Trace* routines (TraceBuitins, TraceEvaluation, Stacktrace) use Python
print()
to report information.This means that the information is hidden from some front-ends like Django and Jupyter-based front ends. It also means that the information is not accessible from inside Mathics3.
These routines should be written to return a list of information (same as WMA Trace routines work). Other builtin functions should be additional
PrintXXX
routines which format and print this inside Mathics3. See for example how Python's routines work for gathering exception and traceback information while there are other routines for printing that information.There is an underlying principle that a person should be able to write profilers and debuggers in pure Mathics3 code. Of course the underlying gather of data needs to be done in Python, but all the information it gathers should be accessible in Mathics3.
The text was updated successfully, but these errors were encountered: