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

Fix notebook error formatting #2695

Merged
merged 2 commits into from
Apr 12, 2024
Merged

Fix notebook error formatting #2695

merged 2 commits into from
Apr 12, 2024

Conversation

seeM
Copy link
Contributor

@seeM seeM commented Apr 8, 2024

Intent

Address #2607.

Approach

Plumb the new session mode arg through to the shell and kernel, then use it to determine whether we should format tracebacks.

There's some tension between VSCode and Positron notebook UIs here. VSCode notebooks do error formatting in the notebook-renderers extension, whereas Positron notebooks expect the runtime to do formatting via ANSI/OSC8 escape codes. We may need a way to configure the runtime to still do error formatting for Positron notebooks but not VSCode notebooks, but since we aren't enabling Positron notebooks yet I think this is okay to merge.

QA Notes

See the issue for a repro.

Don't modify tracebacks in notebook mode. The notebook frontend assumes
the format of tracebacks and adds links to them. If we modify the
traceback, the frontend's formatting breaks.

Also minor improvements to Positron notebook UI error styling.
@seeM seeM force-pushed the fix-notebook-errors branch from c5dd79d to 0e95aa4 Compare April 10, 2024 13:33
@seeM seeM requested a review from nstrayer April 11, 2024 17:51
@seeM
Copy link
Contributor Author

seeM commented Apr 12, 2024

Merging this so long, but happy to make address any issues in follow-up PRs

@seeM seeM merged commit 7cbd63a into main Apr 12, 2024
23 checks passed
@seeM seeM deleted the fix-notebook-errors branch April 12, 2024 10:47
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

Successfully merging this pull request may close these issues.

1 participant