API Reference¶
Python API¶
Backward compatibility of the API is not guaranteed at this point.
Convert a nested JS array to nested Python list. |
|
|
Runs a code string. |
|
Finds the imports in a string of code |
|
Get code autocompletion candidates |
|
Fetches a given URL |
A wrapper around a Javascript Error to allow the Error to be thrown in Python. |
Javascript API¶
Backward compatibility of the API is not guaranteed at this point.
An alias to the global Python namespace |
|
Load a package or a list of packages over the network |
|
|
|
Access a Python object in the global namespace from Javascript |
|
Gets the Python’s string representation of an object. |
|
Runs Python code from Javascript. |
|
Runs Python code with automatic preloading of imports. |
|
Returns the pyodide version. |
Micropip API¶
|
Install the given package and all of its dependencies. |