Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • Stranger Tools Stranger Tools
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 288
    • Issues 288
    • List
    • Boards
    • Service Desk
    • Milestones
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Container Registry
    • Terraform modules
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • alyaalya
  • Stranger ToolsStranger Tools
  • Wiki
  • Ansa tools documentation
  • Running Python scripts in Ansa

Running Python scripts in Ansa · Changes

Page history
Figures added and minor corrections authored Feb 03, 2021 by Samuel Gomez's avatar Samuel Gomez
Hide whitespace changes
Inline Side-by-side
Ansa-tools-documentation/Running-Python-scripts-in-Ansa.md
View page @ aa4183d8
## Using the GUI
First we click in the Script button. Then we have two options available to run a script in the graphical interface:
First we click in the Script button.
![stranger-tools](../figures/script-buttom.png)
Then we have two options available to run a script in the graphical interface:
* Load Script.
* Run function.
......@@ -8,8 +13,12 @@ First we click in the Script button. Then we have two options available to run a
In order to run a python script from the terminal we have to add -execpy 'load_script:python_script.py' when launching Ansa. Where we should substitute python_script by the actual script path.
`/path/to/Ansa/ansa64.sh -execpy 'load_script:python_script.py'`
```bash
/path/to/Ansa/ansa64.sh -execpy 'load_script:python_script.py'
```
Additionally, we can use -nogui option if access to the GUI is not required after the script execution.
`/path/to/Ansa/ansa64.sh -nogui -execpy 'load_script:python_script.py'`
\ No newline at end of file
```bash
/path/to/Ansa/ansa64.sh -nogui -execpy 'load_script:python_script.py'
```
\ No newline at end of file
Clone repository

Ansa tools documentation

  • Running Python scripts in Ansa
  • Ansa2mpio

pyAlya documentation

  • Alya Python module