Commit 7e6d7cd4 authored by Wei Ouyang's avatar Wei Ouyang Committed by GitHub

fix languagePluginLoader

parent ff5b9e61
......@@ -8,14 +8,14 @@ Iodide](using_pyodide_from_iodide.md).
Include `pyodide.js` in your project.
This has a single function which bootstraps the Python environment:
This has a single `Promise` object which bootstraps the Python environment:
`languagePluginLoader`. Since this must happen asynchronously, it returns a
`Promise`, which you must call `then` on to complete initialization. When the
promise resolves, pyodide will have installed a namespace in global scope:
`pyodide`.
```javascript
languagePluginLoader().then(() => {
languagePluginLoader.then(() => {
// pyodide is now ready to use...
console.log(pyodide.runPython('import sys\nsys.version'));
});
......
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