Skip to content

hpc-unibe-ch/bc_ubelix_streamlit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Batch Connect - UBELIX Streamlit Server

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.

Prerequisites

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 and module load <modules> based CLI used to load appropriate environments (e.g. CUDA) within the batch job before launching the Streamlit server.

Install

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

Modify the application

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.

Build container image

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

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

License

  • Documentation, website content, and logo is licensed under CC-BY-4.0
  • Code is licensed under MIT (see LICENSE.txt)

About

Batch Connect - UBELIX Streamlit Server

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published