How to convert python code in to oml code

hoan_20565
hoan_20565 Altair Community Member
edited November 2022 in Community Q&A

Hello,

Could you please tell me if we can convert python code in to oml?

TKS

Welcome!

It looks like you're new here. Sign in or register to get started.

Answers

  • Adriano_Koga
    Adriano_Koga
    Altair Employee
    edited August 2022

    there's no direct too for converting python to oml, as far as I know, BUT Compose can run Python commands/codes.

    Wouldn't this be helpful for your case?

  • hoan_20565
    hoan_20565 Altair Community Member
    edited October 2022

    there's no direct too for converting python to oml, as far as I know, BUT Compose can run Python commands/codes.

    Wouldn't this be helpful for your case?

    Hello, 

    Do you mean that we can run Python in OML?

  • João Marabisa
    João Marabisa
    Altair Employee
    edited November 2022

    Hello, 

    Do you mean that we can run Python in OML?

    Hi @hoan ,

    As mentioned by Adriano, in Compose (OML is the language and Compose the Software/IDE) we can run Python codes:

    image

    Besides that, there is a bridge between OML and Python, it means that they talk to each other. Below I'm using and OML function to directly execute a Python function:

    image

    Summary: We cannot convert directly, because this is not necessary, we can have a nice interaction between OML and Python.

Welcome!

It looks like you're new here. Sign in or register to get started.

Welcome!

It looks like you're new here. Sign in or register to get started.