Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
$("#interactive-python-interpreter-run").click(function(){
var program = document.getElementById("interactive-python-interpreter-code").value;
var output = document.getElementById("interactive-python-interpreter-output");
output.innerHTML = '';
Sk.configure({output:skuplt_out});
try {
Sk.importMainWithBody("", false, program);
} catch (e) {
alert(e);
}
});
$("#interactive-python-interpreter-run").click(function(){
var program = document.getElementById("interactive-python-interpreter-code").value;
var output = document.getElementById("interactive-python-interpreter-output");
output.innerHTML = '';
Sk.configure({output:skuplt_out});
try {
Sk.importMainWithBody("", false, program);
} catch (e) {
alert(e);
}
});