pyodide.loadPackage(names, messageCallback, errorCallback)ΒΆ
Load a package or a list of packages over the network.
This makes the files for the package available in the virtual filesystem. The package needs to be imported from Python before it can be used.
Parameters
name |
type |
description |
---|---|---|
names |
{String, Array} |
package name, or URL. Can be either a single element, or an array. |
messageCallback |
function |
A callback, called with progress messages. (optional) |
errorCallback |
function |
A callback, called with error/warning messages. (optional) |
Returns
Loading is asynchronous, therefore, this returns a Promise
.