How to enable beginner users to use external libraries #6628
Replies: 5 comments
-
Mr. Takukuwa, there are several ways to use Python libraries with an external library, but they all require some code. Please tell me what you are trying to do. Your ideas will inspire a guidebook on how to do several things with minimal code.
I hope this is helpful to you. これがお役に立てば幸いです。 |
Beta Was this translation helpful? Give feedback.
-
@chrislee35, this is quite a trick. Be aware that this touches the internals deeply, so it can stop working at upgrades. On the other hand, it will likely keep working for quite some time... |
Beta Was this translation helpful? Give feedback.
-
For this one off example, I'm okay with that. If I extend this to include other mapper/calculation functions (e.g., IP addressses), I might patch owfeatureconstructor to have a singleton FunctionsManager. The FunctionsManager could have functions added through add-ons, settings, or other avenues, to then make that available to all instances of the Formula widget. But, I haven't matured this idea enough to officially propose it. |
Beta Was this translation helpful? Give feedback.
-
I'm wondering what this request and discussion is about. How can it make sense to use the Python Script widget without writing code? And if you use Python Script, it is already possible to use an external library, for instance you can start the script with "import pandas" ... |
Beta Was this translation helpful? Give feedback.
-
Thanks @wvdvegte, I'm rather confused as well about what's happening here. :) Anyway, I'm converting it to a discussion and let it live. By the way, @chrislee35, I like your idea about add-ons registering new functions for feature constructor. At least in principle -- if it doesn't cause problems. |
Beta Was this translation helpful? Give feedback.
-
I want to allow beginner users to use a Python script that incorporates an external library. Is it possible to provide this to the users without requiring them to write code?
Beta Was this translation helpful? Give feedback.
All reactions