Marimo's print routing breaks Numba compilation In notebooks that do not use mo.Thread,…
- User
Marimo's print routing breaks Numba compilation
In notebooks that do not use
mo.Thread,printmust retain builtin identity so Numba can compile functions that call it.mo.Threadmust continue routing output to the spawning cell, with output isolation between concurrent threads.Interface
No new interfaces are introduced.
- Assistant
Now let me check how the kernel globals include
printtoday and any tests asserting that: - Assistant
Now update
kernel_lifecycle.py: - Assistant
Now the remaining call sites of
create_main_moduleand the pyodide session: - Assistant
Now the lazy installation in
mo.Thread: - Assistant
Now update the
print_overridedocstring to describe the lazy installation: - Assistant
Now let me check the test at
test_runtime.py:4187that patchespatch_main_module: - Assistant
All 18 pass. Now run broader suites that touch the changed code paths:
- Assistant
That failure is a missing frontend build artifact (
marimo/_static/index.html), unrelated to my change. Let me confirm it fails on the pristine tree: - Assistant
Pre-existing failure, confirmed unrelated. Now a wider sweep plus type/lint checks:
- Assistant
Identical error set (only line numbers shifted). Let me review the final diff of the core changes:
- Assistant
That's a different
KernelArgs(frommarimo._ipc.types) — unrelated. Final verification pass on the touched suites: - Assistant
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.