ulagbulag / openark-demo

OpenARK python Project collections & Web demo via Streamlit

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

OpenARK Python Demo Server

You can conveniently experience various features of MobileX and learn how to use the Python API to implement each feature.

Requirements

  • OpenARK
  • Python
    • Install with your package manager
    • Install with Anaconda environment (recommended)

Install Python Dependencies

# Please activate your virtual environment,
# i.e. conda activate <my_env>
pip install -r requirements.txt

Run server

In your OpenARK VINE Desktop (aka. MobileX Station),

# Please activate your virtual environment,
# i.e. conda activate <my_env>
streamlit run Home.py --server.port=8501

# Then, open "http://localhost:8501/" with your browser.
# On Linux: xdg-open "http://localhost:8501/"
# On MacOS: open "http://localhost:8501/"

Upload my own Feature

  1. Copy the template (templates/Custom_Feature.py) into pages/ directory and rename it into your feature name.
  2. Check the TODO-commented lines (TODO(user): ) and replace them.
  3. Run the server.
  4. You can edit your code while running the server. The server can automatically detect the changes and reload them.

About

OpenARK python Project collections & Web demo via Streamlit

License:GNU General Public License v3.0


Languages

Language:Python 89.9%Language:Just 5.2%Language:Dockerfile 3.6%Language:Shell 1.3%