An interactive Batch Connect app that launches a Streamlit server within a batch job on UBELIX.
Note
This Streamlit server is a proof-of-concept application and should NOT be used in production. This can be used to prototype real-world streamlit applications to be deployed on UBELIX OnDemand.
This Batch Connect app requires the following software be installed on the compute nodes that the batch job is intended to run on (NOT the OnDemand node):
- Lmod
6.0.1+ or any other
module purge
andmodule load <modules>
based CLI used to load appropriate environments (e.g. CUDA) within the batch job before launching the Streamlit server.
This app is meant to be installed to the development environment of UBELIX OnDemand devs:
cd $HOME/ondemand/dev
git clone [email protected]:hpc-unibe-ch/bc_ubelix_streamlit.git streamlit
The application code is located in src/app.py
. Feel free to modify this
according to your needs. Note that you may need to install additional
dependencies to the container image (streamlit.def
) based on your application.
The container image is not included in this repository. To build the Streamlit container image use the following commands:
cd src
apptainer build --fakeroot ../streamlit.sif streamlit.def
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
- Documentation, website content, and logo is licensed under CC-BY-4.0
- Code is licensed under MIT (see LICENSE.txt)