Python in Retool

For the first time I am getting Retool to give me AI advice.

I am trying to write a procedure with IF ELSE statements and the AI response is telling me that it would be better to write this code in PYTHON.

I have tried to add a new block of code but I do not see Python as an option. Yet, I have heard that Retool is introducing this feature.

Is it possible to write code in Python from within Retool?

Mike

Within Workflows at the moment from what I understand

As @ScottR says, in Retool workflows, we can use Python. In Retool Apps not yet. @SigmaverseDev, when can we expect this to be possible in Retool Apps?

Thanks!

Thanks Scott:

I take that it will eventually come to our neck of the woods at a later date.

Mike

@mdsmith1 Definitely let us know if you have any questions about implementing Workflows

@PatrickMast, I think Python support in apps will come at some point, given the support in Workflows, but it's not on our current roadmap. I'll share this request internally & post back here if we add it!

Thank you @Tess!

Hi Everyone -

I’m Andrew, a Product Manager at Retool, and I’m digging through some old thread to share that we have a feature in Closed Beta that introduces a primitive called (backend) functions which executes single or multi-step logic server-side. This functionality unlocks the ability to execute python as part of your app!

If you’re interested in having this feature enabled for your organization, please shoot me an email with your subdomain.

1 Like

Hi @Andrew_Morse. I got tipped off to this by @Darren from this post. I’m wondering if this backend feature is going to allow capturing the full request response of a 307? I’m looking to be able to manually follow the returned redirect so that I can request the redirection url with auth headers.

Hey @Shawn_Crocker - Since our backend functions are a specialized type of workflow, I agree with Darren that it should work. I tested it out and looks like it will let you build out a function to handle this. Go ahead and check out this post, if everything there sounds good then fill out the form and I’ll get your organization added to the beta ASAP :slight_smile:

@Andrew_Morse Thanks. This looks really amazing! I have always loved the conciseness of the node style workflow environment and really like seeing some of its goodness is making it into the app environment.

edit: The application form is defaulting to the wrong account. I am not sure how to signup using my work account. When I try to switch accounts it pushes me into a google auth but my account is a teams account and is not linked to a google account.

1 Like

@Shawn_Crocker - You don’t actually need to be logged into Google to fill out the form. I see what you mean though that if you are logged in, you can’t “log out”. Go ahead and either just fill it out (the info you provide is what we get in the form, the google account is just Google’s way of saving your responses before you submit) or fill it out in incognito mode.

Worst case just DM me the answers and I’ll put the info in the sheet for tracking and get you all set up

@Andrew_Morse oh I see. Haha. I thought it was going to link my submission to a retool account.:zany_face: