Welcome to the community @Hoang_Vu !
Not sure I understand. The screenshot you posted shows the Python option.
In the 1.0 release we made a change so that it automatically imports the module if you include it in an imports in your code.
You can find the list of supported here: Packages built in Pyodide — Version 0.23.4
Here is an example module not included in pyodide
This is a picture from an article i attached above and i see there is support for declaring modules for python.
We removed the python modules field as they are now imported automatically if they are supported, You can find the support list here: Packages built in Pyodide — Version 0.23.4
Request is not on the supported list so I would expect that to fail.
Hi @Jon ,
It’s a bit inconvenient when Pyodide only supports a few modules
Even with the previous Python Modules field it would only pull in what Pyodide supports so the functionality itself has not really changed.
We use Pyodide because it sandboxes the code and protects the instance, While this may not be ideal for everyone it does allow python to be used and you were after any specific modules you could ask the maintainer of the module to support pyodide.
Alternatively if you didn’t care about the python sandbox you could build your own docker image that includes python and the modules you want to use then use them from the execute command node.
This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.