I have been using Pyodide to run some python in my website. It has been working up until recently, however now has begin giving this error,
Uncaught ReferenceError: languagePluginLoader is not defined
at 2347:162
Some searching has revealed that this method is deprecated in pyodide anyway
https://pyodide.org/en/stable/usage/api/js-api.html#globalThis.loadPyodide
and Insteasd of using languagePluginUrl I should use loadPyodide.
I have no idea how to do this, I know nothing of js, only python,
My code is...
<script type="text/javascript">
languagePluginLoader.then(() => {
pyodide.loadPackage(['numpy']).then(() => {
pyodide.runPython(`
# My python code here
`);
});});
</script>
This used to work fine, so I think I just need to use the new method. Any help converting it to the new method appreciated - Thanks.