st4sd-examples
A set of notebooks and examples of how to use ST4SD APIs to launch, query, and retrieve experiments results.
Science Score: 44.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
✓CITATION.cff file
Found CITATION.cff file -
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Academic email domains
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (12.8%) to scientific vocabulary
Repository
A set of notebooks and examples of how to use ST4SD APIs to launch, query, and retrieve experiments results.
Basic Info
- Host: GitHub
- Owner: st4sd
- License: apache-2.0
- Language: Jupyter Notebook
- Default Branch: main
- Size: 56.6 KB
Statistics
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
- Releases: 1
Metadata Files
README.md
ST4SD Examples
This repository contains notebooks illustrating how to use ST4SD APIs to launch, query, and retrieve experiment results.
Quick links
- Available notebooks
- Requirements
- Running via CLI
- Running via a container
- Help and Support
- Contributing
- License
Available notebooks
In the notebooks folder you will find:
- ST4SD Runtime API Example
- Illustrates the Runtime APIs used for launching, monitoring and retrieve high level results
- ST4SD Datastore - Common Query Examples
- Illustrates the Datastore APIs used for more intricate querying and arbitrary information retrieval
- ST4SD Runtime API Property Retrieval
- Illustrates ways to retrieve properties measured by the experiments
- bite-size examples for using python wrappers to the ST4DS REST-APIs
Requirements
These notebooks require st4sd-runtime-core to be installed.
You can follow the instructions in the st4sd-runtime-core repository to install it locally with Jupyter support and proceed to running via CLI, or skip to running via a container to use a pre-built container image.
NOTE: ST4SD requires authentication to be used and the notebooks will guide you on how to do it. To limit the chances of the tokens being stored in the notebook and pushed somewhere we make use of the Password IPython widget. Visual Studio Code, however, currently does not seem to allow pasting in the rendered Password input. If you want to use VSCode, paste your token in the cell that follows it, but make sure to remove it before pushing or sharing your notebooks!
Running via CLI
NOTE: Ensure that if you installed st4sd-runtime-core into a virtual environment, it is activated.
- Clone the repository locally using
bash
git clone https://github.com/st4sd/st4sd-examples.git
Or, if you prefer to use SSH cloning:
bash
git clone git@github.com:st4sd/st4sd-examples.git
- Change into the directory you just cloned
bash
cd st4sd-examples
- Start the Jupyter notebook (in this example "ST4SD Runtime API Example.ipynb")
bash
jupyter-notebook "notebooks/ST4SD Runtime API Example.ipynb"
Running via a container
- Clone the repository locally using
bash
git clone https://github.com/st4sd/st4sd-examples.git
Or, if you prefer to use SSH cloning:
bash
git clone git@github.com:st4sd/st4sd-examples.git
- Change into the directory you just cloned
bash
cd st4sd-examples
- Pull the
st4sd-runtime-corecontainer image
bash
docker pull quay.io/st4sd/official-base/st4sd-runtime-core
- Start the container
NOTE: the following command assumes that port 8888 is free.
bash
docker run -w /st4sd-examples --rm -it -v $PWD:/st4sd-examples -p 8888:8888 quay.io/st4sd/official-base/st4sd-runtime-core jupyter notebook --ip 0.0.0.0 --no-browser --allow-root
You can now find the notebooks at one of the addresses that are printed out by the container (use the token provided at the end of the string to authenticate).
Help and Support
Please feel free to reach out to one of the maintainers listed in the MAINTAINERS.md page.
Contributing
We always welcome external contributions. Please see our guidance for details on how to do so.
References
If you use ST4SD in your projects, please consider citing the following:
bibtex
@software{st4sd_2022,
author = {Johnston, Michael A. and Vassiliadis, Vassilis and Pomponio, Alessandro and Pyzer-Knapp, Edward},
license = {Apache-2.0},
month = {12},
title = {{Simulation Toolkit for Scientific Discovery}},
url = {https://github.com/st4sd/st4sd-runtime-core},
year = {2022}
}
License
This project is licensed under the Apache 2.0 license. Please see details here.
Owner
- Name: ST4SD: Simulation Tookit for Scientific Discovery
- Login: st4sd
- Kind: organization
- Website: https://st4sd.github.io/overview/
- Repositories: 5
- Profile: https://github.com/st4sd
Citation (CITATION.cff)
# This CITATION.cff file was generated with cffinit.
# Visit https://bit.ly/cffinit to generate yours today!
cff-version: 1.2.0
title: Simulation Toolkit for Scientific Discovery
message: >-
If you use this software, please cite it using the
metadata from this file.
type: software
authors:
- given-names: Michael A.
family-names: Johnston
affiliation: IBM Research
- given-names: Vassilis
family-names: Vassiliadis
affiliation: IBM Research
- given-names: Alessandro
family-names: Pomponio
affiliation: IBM Research
orcid: 'https://orcid.org/0000-0003-1655-7500'
- given-names: Edward
family-names: Pyzer-Knapp
affiliation: IBM Research
identifiers:
- type: url
value: 'https://github.com/st4sd/st4sd-runtime-core'
description: ST4SD Runtime
repository-code: 'https://github.com/st4sd/st4sd-runtime-core'
url: 'https://st4sd.github.io/overview/'
keywords:
- accelerated-discovery
- simulation
- toolkit
license: Apache-2.0
date-released: '2022-12-08'
GitHub Events
Total
- Delete event: 1
- Push event: 1
- Pull request event: 2
- Create event: 1
Last Year
- Delete event: 1
- Push event: 1
- Pull request event: 2
- Create event: 1
Issues and Pull Requests
Last synced: 7 months ago
All Time
- Total issues: 0
- Total pull requests: 1
- Average time to close issues: N/A
- Average time to close pull requests: less than a minute
- Total issue authors: 0
- Total pull request authors: 1
- Average comments per issue: 0
- Average comments per pull request: 0.0
- Merged pull requests: 1
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 0
- Pull requests: 1
- Average time to close issues: N/A
- Average time to close pull requests: less than a minute
- Issue authors: 0
- Pull request authors: 1
- Average comments per issue: 0
- Average comments per pull request: 0.0
- Merged pull requests: 1
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
- VassilisVassiliadis (7)