Skip to content

Commit a5203bb

Browse files
committed
Expose update_display to Python
Signed-off-by: martinRenou <martin.renou@gmail.com>
1 parent 3721ea2 commit a5203bb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/xinterpreter.cpp

+3
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,10 @@ namespace xpyt
425425
py::module sys = py::module::import("sys");
426426
sys.attr("displayhook") = m_displayhook;
427427
}
428+
429+
// Expose display functions to Python
428430
py::globals()["display"] = display_module.attr("display");
431+
py::globals()["update_display"] = display_module.attr("update_display");
429432
}
430433

431434
void interpreter::load_extensions()

0 commit comments

Comments
 (0)