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

Commit 46f7412

Browse files
committed
Format width of stack trace in dev tools ui so it doesn't require a horizontal scroll bar
1 parent fe4f35b commit 46f7412

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

jupyter_dash/jupyter_app.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,9 +342,11 @@ def _wrap_errors(_):
342342
conv = Ansi2HTMLConverter(scheme="ansi2html", dark_bg=False)
343343
html_str = conv.convert(ansi_stacktrace)
344344

345+
# Set width to fit 75-character wide stack trace and font to a size the
346+
# won't require a horizontal scroll bar
345347
html_str = html_str.replace(
346348
'<html>',
347-
'<html style="width: 80ex;">'
349+
'<html style="width: 75ch; font-size: 0.86em">'
348350
)
349351

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

0 commit comments

Comments
 (0)