"plug and play" web UI extension for flexible SDLs.
Granting SDLs flexibility and modularity makes it almost impossible to design a UI, yet it's a necessity for allowing more people to interact with it (democratisation). This web UI aims to ease up the control of any Python-based SDLs by displaying functions and parameters for initialized modules dynamically. The modules can be hardware API, high-level functions, or experiment workflow. With the least modification of the current workflow, user can design, manage and execute their experimental designs and monitor the execution process.
This software is developed and tested using Windows. This software and its dependencies are compatible across major platforms: Linux, macOS, and Windows. Some dependencies (Flask-SQLAlchemy) may require additional setup.
Python >=3.10 for the best compatibility. Python >=3.7 without Ax.
This software is compatible with the latest versions of all dependencies.
- bcrypt~=4.0
- Flask-Login~=0.6
- Flask-Session~=0.8
- Flask-SocketIO~=5.3
- Flask-SQLAlchemy~=3.1
- SQLAlchemy-Utils~=0.41
- Flask-WTF~=1.2
- python-dotenv==1.0.1
- ax-platform (optional 1.0 for Python>=3.10)
- baybe (optional)
pip install ivoryos
or
git clone https://gitlab.com/heingroup/ivoryos.git
cd ivoryos
pip install .
The installation may take 10 to 30 seconds to install. The installation time may vary and take up to several minutes, depending on the network speed, computer performance, and virtual environment settings.
In your SDL script, use ivoryos(__name__)
.
import ivoryos
ivoryos.run(__name__)
Create an account and login (local database with bcrypt password)
- Direct control: direct function calling Devices tab
- Workflows:
- Design Editor: drag/add function to canvas in Design tab. click
Compile and Run
button to go to the execution configuration page - Execution Config: configure iteration methods and parameters in Compile/Run tab.
- Design Library: manage workflow scripts in Library tab.
- Workflow Data: Execution records are in Data tab.
- Design Editor: drag/add function to canvas in Design tab. click
ivoryos.run(__name__, logger="logger name")
or
ivoryos.run(__name__, logger=["logger 1", "logger 2"])
After one successful connection, a blueprint will be automatically saved and made accessible without hardware connection. In a new Python script in the same directory, use ivoryos.run()
to start offline mode.
ivoryos.run()
In the abstract_sdl.py, where instances of AbstractSDL
is created as sdl
,
addresses will be available on terminal.
ivoryos.run(__name__)
- Running on all addresses (0.0.0.0)
- Running on http://127.0.0.1:8000
- Running on http://0.0.0.0:8000
When you run the application for the first time, it will automatically create the following folders and files in the same directory:
-
ivoryos_data/
: Main directory for application-related data.ivoryos_data/config_csv/
: Contains iteration configuration files in CSV format.ivoryos_data/llm_output/
: Stores raw prompt generated for the large language model.ivoryos_data/pseudo_deck/
: Contains pseudo-deck.pkl
files for offline access.ivoryos_data/results/
: Used for storing results or outputs during workflow execution.ivoryos_data/scripts/
: Holds Python scripts compiled from the visual programming script design.
-
default.log
: Log file that captures application logs. -
ivoryos.db
: Database file that stores application data locally.
- Allow plugin pages ✅
- pause, resume, abort current and pending workflows ✅
- dropdown input ✅
- show line number option ✅
- snapshot version control
- optimizer-agnostic
- check batch-config file compatibility
If you find this project useful, please consider citing the following manuscript:
Zhang, W., Hao, L., Lai, V. et al. IvoryOS: an interoperable web interface for orchestrating Python-based self-driving laboratories. Nat Commun 16, 5182 (2025).
@article{zhang_et_al_2025,
author = {Wenyu Zhang and Lucy Hao and Veronica Lai and Ryan Corkery and Jacob Jessiman and Jiayu Zhang and Junliang Liu and Yusuke Sato and Maria Politi and Matthew E. Reish and Rebekah Greenwood and Noah Depner and Jiyoon Min and Rama El-khawaldeh and Paloma Prieto and Ekaterina Trushina and Jason E. Hein},
title = {{IvoryOS}: an interoperable web interface for orchestrating {Python-based} self-driving laboratories},
journal = {Nature Communications},
year = {2025},
volume = {16},
number = {1},
pages = {5182},
doi = {10.1038/s41467-025-60514-w},
url = {https://doi.org/10.1038/s41467-025-60514-w}
}
For an additional perspective related to the development of the tool, please see:
Zhang, W., Hein, J. Behind IvoryOS: Empowering Scientists to Harness Self-Driving Labs for Accelerated Discovery. Springer Nature Research Communities (2025).
@misc{zhang_hein_2025,
author = {Wenyu Zhang and Jason Hein},
title = {Behind {IvoryOS}: Empowering Scientists to Harness Self-Driving Labs for Accelerated Discovery},
howpublished = {Springer Nature Research Communities},
year = {2025},
month = {Jun},
day = {18},
url = {https://communities.springernature.com/posts/behind-ivoryos-empowering-scientists-to-harness-self-driving-labs-for-accelerated-discovery}
}
Ivory Zhang, Lucy Hao
Authors acknowledge Telescope Innovations, Hein Lab members for their valuable suggestions and contributions.