Python® Overview

Your students will find coding in Python more engaging when you include data collection and sensor technology in your curriculum.

Why Code in Python with Vernier Sensors

Unleash the power of Vernier Technology and Python in your computer science, engineering, or science classroom. Give students the opportunity to code beyond the screen by integrating sensor data collection into their activities.

* Go Direct spectrometers are not supported.


  • Students form a deeper understanding of the importance of coding when they see their code interact with sensor data.
  • Students get the Python experience needed to expand coding skills and prepare for advanced computer science courses and future careers. 
  • Sensor data helps students learn to plot graphs, create lists, share data, analyze data, visualize data, and much more.

Python and Go Direct® Sensors

We have created a getting started guide and examples that make it easy to start using our Go Direct family of sensors with Python. This includes USB or Bluetooth wireless support for Windows® 10, macOS®, and Linux.

Web VPython with Go Direct Sensors

We have created a guide and examples that make it easy to start using our Go Direct family of sensors with Web VPython via USB or Bluetooth wireless technology. Web VPython requires no software installation. Additionally, Go Direct sensors are compatible with a Chrome browser on Windows, macOS, Linux, and Chromebooks.

Python and LabQuest® Sensors

Your students can communicate in Python to LabQuest sensors that are connected to LabQuest® – combining a powerful data acquisition device and sensor input with Python. Includes support for Windows® 10 and macOS®.

Featured Code Examples

This example collects data from one or more Go Direct sensors and displays and graphs the readings using the MatPlotLib library.

Use the accelerometer, gyro, and force sensors in the Go Direct Hand Dynamometer to control a Turtle graphic object.

This program combines VPython and the 3‑axis accelerometer built into Go Direct Force and Acceleration to create a “live” freebody diagram for a ring with three forces acting on it.

Raspberry Pi is a trademark of the Raspberry Pi Foundation.