Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Commit 0201a83

Browse files
committed
Widen exception HTML to fit 80-character wide lines
1 parent 3495a67 commit 0201a83

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

jupyter_dash/jupyter_app.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,12 @@ def _wrap_errors(_):
324324

325325
# Use ansi2html to convert the colored ANSI string to HTML
326326
conv = Ansi2HTMLConverter(scheme="ansi2html", dark_bg=False)
327-
html_str = conv.convert(ostream.getvalue())
327+
html_str = conv.convert(ansi_stacktrace)
328+
329+
html_str = html_str.replace(
330+
'<html>',
331+
'<html style="width: 80ex;">'
332+
)
328333

329334
# Remove explicit background color so Dash dev-tools can set background
330335
# color

0 commit comments

Comments
 (0)