🎉Community Raffle - Win $25

An exclusive raffle opportunity for active members like you! Complete your profile, answer questions and get your first accepted badge to enter the raffle.
Join and Win

Import function from other Python file

User: "green"
New Altair Community Member
Updated by Jocelyn
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!

Find more posts tagged with

Sort by:
1 - 1 of 11
    User: "kayman"
    New Altair Community Member
    Accepted Answer
    You can use sys to achieve this, then you just reference to the location of your script.

    like : 

    import sys
    sys.path.append('c:/some_folder/my_script')