We use some essential cookies to make our website work.

We use optional cookies, as detailed in our cookie policy, to remember your settings and understand how you use our website.

DataSciencePi: Using a Raspberry Pi as a plug-in processor

By Russell Barnes. Posted

DataSciencePi: Using a Raspberry Pi as a plug-in processor

Advertisement

Introducing the smarter desktop: use cloud apps, thin clients, and get real work done on a Raspberry Pi. Also in the magazine we’re building a digital jukebox, controlling a robot arm, storing…

or free PDF download

Scott Edenbaum, a recent graduate from the NYC Data Science Academy, has turned a humble Pi Zero into DataSciencePi: a data crunching, code trialling, data science-ing auxiliary processor.

Wanting to avoid “the potential for security exploits” of installing MySQL on his main development computer, Scott instead used virtualisation software Docker to create standard environments for Python and R (a programming language suited to data science).

Scott’s approach avoids the “multiple (possibly conflicting) dependencies” of Python and R, while allowing him to create his sandbox coding and testing environment quickly and easily. Building the environment from scratch each time is “a process that takes 2+ hours on a Raspberry Pi 3”, let alone a modest Pi Zero.

DataSciencePi: A plug-in processor made from a Raspberry Pi

DataSciencePi

“Because the device is so inexpensive, I can see there being a lot of possibility using it for education” Scott tells us, while the standardised environment saves “headaches” such as installing libraries and managing package repositories.

Scott’s project could replace Excel “for some tasks”, while Docker “allows deployment and management of a few devices or hundred, without too much extra work.” He says there are “a lot of interesting cases I haven’t thought of.”

The project is on GitHub, and Scott has documented the installation process.

Russell Barnes photo

Russell runs Raspberry Pi Press, which includes The MagPi, Hello World, HackSpace magazine, and book projects. He’s a massive sci-fi bore.

Subscribe to Raspberry Pi Official Magazine

Save up to 37% off the cover price and get a FREE Raspberry Pi Pico 2 W with a subscription to Raspberry Pi Official Magazine.

Subscribe

Sign up to the newsletter

Get every issue delivered directly to your inbox and keep up to date with the latest news, offers, events, and more.