Commit 5031e69f authored by Michael Droettboom's avatar Michael Droettboom Committed by GitHub

Merge pull request #318 from mdboom/update-api

Update for new Iodide renderer API
parents 7f0c6a98 3e0c8911
......@@ -370,8 +370,13 @@ var languagePluginLoader = new Promise((resolve, reject) => {
document.getElementsByTagName('head')[0].appendChild(link);
// Add a custom output handler for Python objects
<<<<<<< HEAD
self.iodide.addOutputHandler({
shouldHandle : (val) => {
=======
window.iodide.addOutputRenderer({
shouldRender : (val) => {
>>>>>>> Update for new Iodide renderer API
return (typeof val === 'function' &&
pyodide._module.PyProxy.isPyProxy(val));
},
......@@ -396,7 +401,7 @@ var languagePluginLoader = new Promise((resolve, reject) => {
div.appendChild(pre);
element = div;
}
return element;
return element.outerHTML;
}
});
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment