Frequently Asked Questions (FAQ)¶
How can I load external python files in Pyodide?¶
The two possible solutions are,
include these files in a python package, build a pure python wheel with
python setup.py bdist_wheeland load it with micropip.
fetch the python code as a string and evaluate it in Python,
In both cases, files need to be served with a web server and cannot be loaded from local file system.
Why can’t I load files from the local file system?¶