Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A way for showing pre-formatted output (e.g. tracebacks) #102

Open
rocky opened this issue Jul 7, 2021 · 0 comments
Open

A way for showing pre-formatted output (e.g. tracebacks) #102

rocky opened this issue Jul 7, 2021 · 0 comments
Labels
enhancement New feature or request

Comments

@rocky
Copy link
Member

rocky commented Jul 7, 2021

Right now we don't have a way to show pre-formatted output. And in tracebacks endings are wrapped:

System::exception:
Exception raised:  Traceback (most recent call last):  File "/src/external-vcs/github/Mathics3/mathics-django/mathics_django/web/views.py", line 265, in query result = evaluation.evaluate(expr, timeout=settings.TIMEOUT)  File "/src/external-vcs/github/mathics/Mathics/mathics/core/evaluation.py", line 361, in evaluate result = run_with_timeout_and_stack(evaluate, timeout, self)  File "/src/external-vcs/github/mathics/Mathics/mathics/core/evaluation.py", line 118, in run_with_timeout_and_stack return request()  File "/src/external-vcs/github/mathics/Mathics/mathics/core/evaluation.py", line 354, in evaluate return self.format_output(self.last_eval, format)  File "/src/external-vcs/github/Mathics3/mathics-django/mathics_django/web/models.py", line 33, in <lambda> evaluation, expr, format  File "/src/external-vcs/github/Mathics3/mathics-django/mathics_django/web/format.py", line 102, in format_output return eval_boxes(result, result.boxes_to_js, obj)  File "/src/external-vcs/github/Mathics3/mathics-django/mathics_django/web/format.py", line 32, in eval_boxes boxes = fn(evaluation=obj, **options)  File "/src/external-vcs/github/mathics/Mathics/mathics/builtin/box/graphics3d.py", line 339, in boxes_to_js j...

https://github.com/Mathics3/mathics-django/blob/master/mathics_django/web/views.py#L277-L282 is where we detect an error.

@rocky rocky added the enhancement New feature or request label Jul 7, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant