Document loading multiple packages

This commit is contained in:
Roman Yurchak 2018-09-05 11:28:20 +02:00
parent ed3e0c5499
commit c14147b386
2 changed files with 10 additions and 0 deletions

View File

@ -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

View File

@ -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