Data Science On The Go with Docker and Raspberry Pi

Posted on Jun 26, 2017

Building a portable web-based DataScience development environment for ~ $20.

The image above contains the Raspberry Pi Foundation's latest version of their minimalist SBC - The Raspberry Pi Zero W

Introduction

I work in a number of programming environments and various languages, primarily Python, R and SQL. My MacbookPro serves as my main development computer, but I wasn't so keen on installing MySQL, and the potential for security exploits left me looking for a better option.

As a vocal owner of many Raspberry Pi computers, this seemed like a prime opportunity to let loose the new smaller single core model Zero W.

Installing and configuring a MySQL server with phpmyadmin for a web interface on the Raspberry Pi is a rather straightforward process and takes only a few minutes. I was very happy with the results, the Raspberry Pi Zero has sufficient cpu power and memory to function as a good networked database. Afterwards, I wanted to expand the functionality to include Python and R programming environments that can be accessed across the network through a web browser.

Adding Python and R turned out to be a lot trickier than MySQL in the sense that there are often multiple (possibly conflicting) dependencies required in order to successfully install most libraries/packages for Python & R. As a solution I decided to configure all of the necessary software/dependencies for Python & R within a docker image. Docker is a virtualization software that allows users to build and run docker images that contain a given set of software and all the necessary dependencies/requirements. The result is a standardized easy way to deploy the software, and the docker image only needs to be built/compiled once (a process that takes 2+ hours on a Raspberry Pi 3).

 

Continue reading for instructions setup your own DataScience environment on a Raspberry Pi.

About Author

Scott Edenbaum

Scott Edenbaum is a recent graduate from the NYC Data Science Academy. He was hired by the Academy to assist in buildout of the learning management system and seeks to pursue a career as a Data Scientist. Scott's...
View all posts by Scott Edenbaum >

Related Articles

Leave a Comment

nadeem February 11, 2018
for those of us starting it out, is it possible to have this updated. Many of the commands, i believe, are outdated. Thank you

View Posts by Categories


Our Recent Popular Posts


View Posts by Tags

#python #trainwithnycdsa 2019 2020 Revenue 3-points agriculture air quality airbnb airline alcohol Alex Baransky algorithm alumni Alumni Interview Alumni Reviews Alumni Spotlight alumni story Alumnus ames dataset ames housing dataset apartment rent API Application artist aws bank loans beautiful soup Best Bootcamp Best Data Science 2019 Best Data Science Bootcamp Best Data Science Bootcamp 2020 Best Ranked Big Data Book Launch Book-Signing bootcamp Bootcamp Alumni Bootcamp Prep boston safety Bundles cake recipe California Cancer Research capstone car price Career Career Day citibike classic cars classpass clustering Coding Course Demo Course Report covid 19 credit credit card crime frequency crops D3.js data data analysis Data Analyst data analytics data for tripadvisor reviews data science Data Science Academy Data Science Bootcamp Data science jobs Data Science Reviews Data Scientist Data Scientist Jobs data visualization database Deep Learning Demo Day Discount disney dplyr drug data e-commerce economy employee employee burnout employer networking environment feature engineering Finance Financial Data Science fitness studio Flask flight delay gbm Get Hired ggplot2 googleVis H20 Hadoop hallmark holiday movie happiness healthcare frauds higgs boson Hiring hiring partner events Hiring Partners hotels housing housing data housing predictions housing price hy-vee Income Industry Experts Injuries Instructor Blog Instructor Interview insurance italki Job Job Placement Jobs Jon Krohn JP Morgan Chase Kaggle Kickstarter las vegas airport lasso regression Lead Data Scienctist Lead Data Scientist leaflet league linear regression Logistic Regression machine learning Maps market matplotlib Medical Research Meet the team meetup methal health miami beach movie music Napoli NBA netflix Networking neural network Neural networks New Courses NHL nlp NYC NYC Data Science nyc data science academy NYC Open Data nyc property NYCDSA NYCDSA Alumni Online Online Bootcamp Online Training Open Data painter pandas Part-time performance phoenix pollutants Portfolio Development precision measurement prediction Prework Programming public safety PwC python Python Data Analysis python machine learning python scrapy python web scraping python webscraping Python Workshop R R Data Analysis R language R Programming R Shiny r studio R Visualization R Workshop R-bloggers random forest Ranking recommendation recommendation system regression Remote remote data science bootcamp Scrapy scrapy visualization seaborn seafood type Selenium sentiment analysis sentiment classification Shiny Shiny Dashboard Spark Special Special Summer Sports statistics streaming Student Interview Student Showcase SVM Switchup Tableau teachers team team performance TensorFlow Testimonial tf-idf Top Data Science Bootcamp Top manufacturing companies Transfers tweets twitter videos visualization wallstreet wallstreetbets web scraping Weekend Course What to expect whiskey whiskeyadvocate wildfire word cloud word2vec XGBoost yelp youtube trending ZORI