Code Editor (IDE) for Python API Development in Hypermesh

KrisGarner
KrisGarner Altair Community Member
edited May 7 in Community Q&A

I'm currently exploring the new Python API and wondering if there is a way to use a proper code editor to run scripts / interact with Hypermesh entities / view info in the output terminal (e.g. like Spyder or VS Code).  I have spoken with Altair previously and I think the Compose editor might be intended for this purpose, but not sure if how it works or how to get hold of it (I think it might be a separate installation?).  Is this available in 2023.1? If not, when will it be?

n.b. I think if it is not planned, then any such code editor may want to be packaged along with Hypermesh?

I am currently using the Python Idle console (in HM) which is fine for code snippets, but not larger programs.

Thanks,

Kristian

Answers

  • Michal Stefuca
    Michal Stefuca
    Altair Employee
    edited May 7

    Hi Kristian,

    We are planning to integrate a light version of Compose in HyperMesh which will facilitate script debugging and editing. The project is ongoing.

    Currently, we do not support using third party tools as a debugger. We will explore the possibilities once the Compose integration is finalized.

    Thanks,

    Michal Stefuca
    Automation & Customization

  • KrisGarner
    KrisGarner Altair Community Member

    Hi Michal -how is this going? I have got 2024.1 installed now (both Hypermesh and Compose) and wondering if it is possible to use Compose to write / debug scripts (maybe with syntax highlighting for HM API library functions?) and then also to run the scripts interactively with your current session. This could be model entities in HM or curves in HG. For example, I could get a load of curves, do some maths on them and then create new curves from these. Some of this can be done via standard functionality and even on the Python prompt in HM, but having this added capability would be useful, thanks.

  • tdepa
    tdepa Altair Community Member

    Compose is the worst possible IDE for this. Please support VSCode or similar real IDE. Thanks.

  • KrisGarner
    KrisGarner Altair Community Member

    @Michal Stefuca -just tagging you here as I can't seem to add the "Automation and Customisation" tag after posting.

  • Michal Stefuca
    Michal Stefuca
    Altair Employee

    Hi @KrisGarner

    Compose debugger is not yet available. The project is making good progress, and we should see it being released next year.

    FYI We are also investigating the option of supporting VS Code in the future.

    Thanks,
    Michal