mirror of https://github.com/pyodide/pyodide.git
Document loading multiple packages
This commit is contained in:
parent
ed3e0c5499
commit
c14147b386
|
@ -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
|
dependencies are also loaded. Dependency resolution is not yet implemented
|
||||||
when loading packages from custom URLs.
|
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`.
|
`pyodide.loadPackage` returns a `Promise`.
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
|
|
|
@ -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
|
dependencies are also loaded. Dependency resolution is not yet implemented
|
||||||
when loading packages from custom URLs.
|
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`.
|
`pyodide.loadPackage` returns a `Promise`.
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
|
|
Loading…
Reference in New Issue