diff --git a/docs/using_pyodide_from_iodide.md b/docs/using_pyodide_from_iodide.md index 89ee3a816..ac7809ad5 100644 --- a/docs/using_pyodide_from_iodide.md +++ b/docs/using_pyodide_from_iodide.md @@ -61,6 +61,11 @@ When you request a package from the official repository, all of that package's dependencies are also loaded. Dependency resolution is not yet implemented when loading packages from custom URLs. +Multiple packages can also be loaded in a single call, +```js +pyodide.loadPackage(['cycler', 'pytz']) +``` + `pyodide.loadPackage` returns a `Promise`. ```javascript diff --git a/docs/using_pyodide_from_javascript.md b/docs/using_pyodide_from_javascript.md index 4e0bc67df..c9b2cf877 100644 --- a/docs/using_pyodide_from_javascript.md +++ b/docs/using_pyodide_from_javascript.md @@ -49,6 +49,11 @@ When you request a package from the official repository, all of that package's dependencies are also loaded. Dependency resolution is not yet implemented when loading packages from custom URLs. +Multiple packages can also be loaded in a single call, +```js +pyodide.loadPackage(['cycler', 'pytz']) +``` + `pyodide.loadPackage` returns a `Promise`. ```javascript