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

Cells with HTML output print the entire unformatted traceback instead of just the error message #64

Open
joelostblom opened this issue Sep 12, 2024 · 0 comments

Comments

@joelostblom
Copy link

When the output of a cell is regular text, any errors that are raised have their traceback truncated, which I find helpful. For example, this code:

import altair as alt
from vega_datasets import data

cars = data.cars()
alt.Chart(cars).mark_point().encode(
    x='Horsepower',
    y='Miles_per_Gallons',
).to_dict()

Prints only the error message, which makes it easy to see what went wrong:

image

However, when the output is HTML, such as when removing the to_dict() call above, the entire traceback is outputted and the ascii color codes are not respected which makes it very hard to read what is going on:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant