diff --git a/include/pyjs/pre_js/load_pkg.js b/include/pyjs/pre_js/load_pkg.js index 274bba8..5ad2e02 100644 --- a/include/pyjs/pre_js/load_pkg.js +++ b/include/pyjs/pre_js/load_pkg.js @@ -321,3 +321,16 @@ Module["bootstrap_from_empack_packed_environment"] = async function console.error(e); } } + +Module["init_python_phases"] = async function ( + python_version = [3,11], + prefix, + verbose = true +) +{ + if(verbose) { + console.log('Turn on support for running python code for xeus-python'); + } + await Module.init_phase_1(prefix, python_version, verbose); + Module.init_phase_2(prefix, python_version, verbose); +}