Getting Started#

This tutorial covers:

Installation with pip#

To install bluesky-adaptive with pip, we suggest setting up a new environment with venv.

python3 -m venv adaptive-env
source adaptive-env/bin/activate
pip install bluesky-adaptive

The pip line can be modified to include extra dependencies, such as those for the agents packaged with bluesky-adaptive. Valid commands include:

  • pip install "bluesky-adaptive[agents]" to install all agents

  • pip install "bluesky-adaptive[dev]" to install development dependencies

  • pip install "bluesky-adaptive[all]" to install all of the above

Installation from source#

To install an editable installation for local development:

git clone https://github.com/bluesky/bluesky-adaptive
cd bluesky-adaptive
pip install -e ".[dev]"

Getting started wtih bluesky-pods#

To develop agents against the full Bluesky stack, we suggest getting started using bluesky-pods. These use podman to run the full Bluesky stack in containers in a common pod.

git clone (https://github.com/bluesky/bluesky-pods)
cd bluesky-pods/compose/acq-pod
podman-compose --in-pod true up -d

To get a bluesky terminal in this pod run:

bash launch_bluesky.sh

From here, we will have an ipython session where we can import bluesky-adaptive and start developing agents.