Hello.
I am pleased to find your pyodide example, because I am not familiar with javascript and pyodide and there are little docs about pyodide with javascript.
I am trying to use pyodide to deploy keras model to mobile.
When testing your example, error occurs for some specific condition.
I inserted my code snippet into your example2 code.
from scipy.interpolate import splrep, splev
X = [1,2,3,4,5]
pixVal = [10, 20,30,40,50]
wl = [10, 30, 60, 90]
spl0 = splrep(pixVal, X, k=3)
X_spl1 = splev(wl, spl0)
When I test it many times(run script -> reload(F5) -> run -> reload ...), some times later it produces error as below image.
I tested in Windows 10.
I am not sure whether this bug is from pyodide or sample code incompleteness or another issue.
If this issue is settled, I would be very appreciative.
Thanks for good code example.