Hi, I am currently running Python in a web worker. I use the following code to run a Python script.
callMain(["-c", "print('hello')"])
Now I’m trying to reuse my web worker so that I can run another Python code snippet. Using callMain again causes errors bacause Python is already initialized.
Is there a way of refreshing the web worker’s global state so that I can run multiple code snippets, one after the other?