Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement *PYTHON #3656

Open
4 tasks
germa89 opened this issue Jan 13, 2025 · 2 comments
Open
4 tasks

Implement *PYTHON #3656

germa89 opened this issue Jan 13, 2025 · 2 comments

Comments

@germa89
Copy link
Collaborator

germa89 commented Jan 13, 2025

  • Implement testing for *PYTHON command, since it provides a window to PyMAPDL inside MAPDL.
    • First implement just a few basic text based test
    • Implement full regression tests in a selfhosted machine.
  • Consider a Kubernetes implementation for this (and all workflows requiring selfhosted inside the network)

Pinging @koubaa for visibility.

@mikerife
Copy link

I'm having a hard time understanding why I would want to use *PYTHON when running PyMAPDL...what's the point?

@germa89
Copy link
Collaborator Author

germa89 commented Jan 16, 2025

Because Python inside MAPDL inside Python... inception 😉

I'm having a hard time understanding why I would want to use *PYTHON when running PyMAPDL...what's the point?

From my perspective, there are not that many cases for the normal user. However, executing Python in MAPDL is useful. You could, for instance (as commented with @koubaa ), implement the PyMAPDL server side in Python (it is easier than in C++), and then just having *PYTHON to start that server. You can also use *PYTHON to start an ssh server in your MAPDL instance (a bit of a security breach in here). You could also spawn another process that will watch for MAPDL main process and make sure it is restarting after crashing... the possibilities are endless.

I'm actually looking forward to see what we can do with this command:

Last Inception gif...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants