The Altair Community and the RapidMiner community is on read-only mode until further notice. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here.
Options
Import function from other Python file
I'm new to RapidMiner and I'm trying to use the Python Transfomer. I've been able to import libraries installed in my Anaconda environments. However, I want to import a function from another Python file (.py script) I have locally in my computer to be used in the Python Transformer. Is there any way I can do this?
Thanks in advance! Any help would be appreciated!
Thanks in advance! Any help would be appreciated!
Tagged:
0
Best Answer
-
Options
kayman Member Posts: 662
Unicorn
You can use sys to achieve this, then you just reference to the location of your script.
like :import syssys.path.append('c:/some_folder/my_script')1
Answers