From c14147b386495668ce9fb2373e2de3a5e332bba7 Mon Sep 17 00:00:00 2001 From: Roman Yurchak Date: Wed, 5 Sep 2018 11:28:20 +0200 Subject: [PATCH] Document loading multiple packages --- docs/using_pyodide_from_iodide.md | 5 +++++ docs/using_pyodide_from_javascript.md | 5 +++++ 2 files changed, 10 insertions(+) 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