From 70cbaa816fc33549f3afa52d3f56d7f2df32dd07 Mon Sep 17 00:00:00 2001 From: Michael Droettboom Date: Sat, 23 Jun 2018 08:08:59 -0400 Subject: [PATCH] Fix #53: Make run all work --- src/matplotlib-sideload.html | 4 ++-- src/matplotlib.html | 4 ++-- src/pyodide.js | 4 ++++ src/python.html | 4 ++-- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/src/matplotlib-sideload.html b/src/matplotlib-sideload.html index 18782f971..20821d279 100644 --- a/src/matplotlib-sideload.html +++ b/src/matplotlib-sideload.html @@ -3,7 +3,7 @@ Python - iodide - +
- + diff --git a/src/pyodide.js b/src/pyodide.js index d104e4619..fed4aa7d8 100644 --- a/src/pyodide.js +++ b/src/pyodide.js @@ -62,6 +62,10 @@ var languagePluginLoader = new Promise((resolve, reject) => { '_importlib.invalidate_caches()\n'); }); + if (window.iodide !== undefined) { + window.iodide.evalQueue.await([promise]); + } + return promise; }; diff --git a/src/python.html b/src/python.html index 061faab4c..31bc5b0b9 100644 --- a/src/python.html +++ b/src/python.html @@ -3,7 +3,7 @@ Python - iodide - +
- +