Skip to content

Jupyter Notebook output renderer stucks preprocessing raw strings #251968

Open
@Marucmp

Description

@Marucmp

Type: Bug

  1. Create a new Jupyter Notebook file with raw string, containing a lot (12+) of escape charachters, like r"\a\c\e\f\g\h\i\k\l\m\n\o"
  2. Throw some exception or error outside try/except block (which works fine as well as showing variable itself) within a cell with raw string, e.g.
raw_str = r"\a\c\e\f\g\h\i\k\l\m\n\o"
1/0
  1. Time for error message rendering is too high and depends on a string length (feels like exponential). 12-13 symbols is enough to "Window is not responding" pop-up to appear.

Image

  1. Even with disabled extensions just reopening Notebook file without running any cells results in a renderer behaving incorrectly (it takes long time for it to show outputs)

VS Code version: Code 1.101.1 (18e3a1e, 2025-06-18T13:35:12.605Z)
OS version: Windows_NT x64 10.0.19045
Modes:

System Info
Item Value
CPUs Intel(R) Xeon(R) E-2176M CPU @ 2.70GHz (12 x 2712)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) undefined
Memory (System) 63.79GB (52.23GB free)
Process Argv
Screen Reader no
VM 0%
Extensions disabled

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions