Skip to content

Instantly share code, notes, and snippets.

@sgbaird
Created November 28, 2025 00:16
Show Gist options
  • Select an option

  • Save sgbaird/30a8e3bb990b3e73ab19382b803abe80 to your computer and use it in GitHub Desktop.

Select an option

Save sgbaird/30a8e3bb990b3e73ab19382b803abe80 to your computer and use it in GitHub Desktop.
context7 chat about demo'ing the gripper of the flex (https://chatgpt.com/share/6928e9af-ad14-8007-b5a6-a13577985a44)
from opentrons import protocol_api
metadata = {
"apiLevel": "2.16",
"protocolName": "Flex Gripper Wellplate Demo",
"description": "Demo showing how to move a wellplate using the Flex gripper"
}
def run(protocol: protocol_api.ProtocolContext):
# Load a 96-well plate in deck slot D1
plate = protocol.load_labware("nest_96_wellplate_200ul_flat", "D1")
# Move plate from D1 to D2 using gripper
protocol.move_labware(
labware=plate,
new_location="D2",
use_gripper=True
)
# Move plate from D2 to C1 using gripper
protocol.move_labware(
labware=plate,
new_location="C1",
use_gripper=True
)
# Move plate back to D1
protocol.move_labware(
labware=plate,
new_location="D1",
use_gripper=True
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment