import third party library in worker script #2403
Replies: 3 comments 3 replies
-
|
you need to pass a config that contains all packages you want to list but also, if that's all you need to do (heavy Python computations to pass along the main thread) I suggest you testing the pyscript bridge: https://github.com/pyscript/pyscript/tree/main/bridge#readme |
Beta Was this translation helpful? Give feedback.
-
|
I tried passing the config file using this html tag but it is still not working. How do I pass the config file to the worker?
Thanks I will take a look at pyscript bridge and see how I can use it in my case. |
Beta Was this translation helpful? Give feedback.
-
|
as this discussion's topic is solved, I've filed an issue to track the PyWorker Closing this as it's been solved and it was not an issue, just lack of details while bootstrapping the PyWorker. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi I am trying to use the web worker to run some computation heavy task at the background. I activate the worker.py in my main.py
In my worker.py file
However whenever i run my code I get the no module name numpy error. Why is that the case? I can import numpy in my main.py file and perform the computation there.
thanks
Beta Was this translation helpful? Give feedback.
All reactions