Cantilever Plate App is a Flask web app created for the ANSYS course entitled ANSYS in a Python Web App application article.
We have cloned the original repository and made a few changes to make it a Rescale App. The goal is to demonstrate how to port an existing Flask web app to Rescale.
For introduction to Rescale Apps, see Hello World Rescale App.
NOTE: This App currently requires an active X-Server which is not started on Rescale Batch. A headless version of VTK is needed. Fix is coming. If eager, you can start this Rescale App within the ANSYS Interactive Workflow tile.
Currently, Rescale Apps rely on the jupyter4all
flag which needs to be enabled for the user, workspace or company. See Hello World repository for details.
Packaging a Dash web app for deployment is straightforward. While inside the root directory of the cloned code repository, issue a zip command to create a web app archive. Create a new Job, upload the archive as inputs, select ANSYS Mechanical software tile, set . launch.sh
as a command, select hardware with 2+ cores and submit.
❯ git clone https://github.com/rescale-labs/App_CantileverPlate_PyMAPDL_Flask
❯ cd App_CantileverPlate_PyMAPDL_Flask
❯ zip -r webapp.zip *
The review page of your Job should look like this.
Once started, look at the Job Logs section and search for the line mentioning the Notebook server. Highlight the link and open it in a new tab.
TODO: Stay tuned...
TODO: Stay tuned...