Embedding Maps with Python & Plotly

Embed a Plotly visualization

Data Visualization is an art form. Whether it be a simple line graph or complex objects like wordclouds or sunbursts, there are countless tools across different programming languages and platforms. The field of geospatial analysis is no exception. In this tutorial we’ll build a map visualization of the United States Electoral College using Python’s plotly module and a Jupyter Notebook. Python Visualization Environment Setup This guide was… Read More

Building Facebook Messenger Bots with Python in less than 60 minutes

bots

Chatbots are magical. Bots can be an amazing product that allow people to create new experiences, from reporting personal news to delivering women’s healthcare information. When I first learned about bots, I never imagined I would be able to make one on my own. However, I quickly dug into the Facebook Messenger documentation and began learning how with a bit of Python 3 and Flask, one… Read More

Build a Serverless Remote-Controlled Lego Robot with Twilio Sync and Runtime

TbwNN7JmDjzlPNZnayxnpGAT3a2YfpoR-urTR-vJSw5m8vFfTSjo4o2FQpBNVu907TPzuG5tRHnN-e4x5vGE1a1jK0Ws19EWpD-cP6t9K9M2doH7OT6bt1Kk1inDGs07tj_OaOTk

The world of Internet connected devices is exploding and there are billions of things already online. Today we’ll skip the smart thermostats and fridges and move straight to programmable droids. Building Your Droid We use Twilio Sync for IoT in this project, which is currently in Developer Preview. Sign up for the preview, and the team will get you on-boarded. To keep this project entertaining, repurposable, and extensible,… Read More

Making Sentiment Analysis Easy With Scikit-Learn

Scikit-learn logo

Sentiment analysis uses computational tools to determine the emotional tone behind words. Python has a bunch of handy libraries for statistics and machine learning so in this post we’ll use Scikit-learn to learn how to add sentiment analysis to our applications. Sentiment Analysis isn’t a new concept. There are thousands of labeled datasets out there, labels varying from simple positive and negative to more complex systems… Read More

Building TwilioQuest with Twilio Sync, Django, and Vue.js

c5hfRvo7c0uOc8yzOOv2V7AJ7PYHWMriz-rfGO0AqeYREEdzwH5ZRTXuMpB6NhDLIPAp81Buw2uly8Z8cuYW1JXz52mazdUvztg24LoyjAt-RaUK_1_o6LxRSSGH2_9OjkOnNIQd

TwilioQuest is our developer training curriculum disguised as a retro-style video game. While you learn valuable skills for your day job, you get to earn XP and wacky loot to equip on your 8-bit avatar. Today we’ll pull back the curtain and show the code that the Developer Education team wrote to create TwilioQuest. Meet Wagtail, a Python & Django Based CMS TwilioQuest is full of content…. Read More

Basic Statistics in Python with NumPy and Jupyter Notebook

Jupyter, Python and NumPy logos

While not all data science relies on statistics, a lot of the exciting topics like machine learning or analysis relies on statistical concepts. In this tutorial, we’ll learn how to calculate introductory statistics in Python. What is Statistics? Statistics is a discipline that uses data to support claims about populations. These “populations” are what we refer to as “distributions.” Most statistical analysis is based on probability,… Read More

How to Receive and Respond to Text Messages in Python with Django and Twilio

Screen Shot 2017-10-10 at 1.54.04 PM

You’re building a Django app and want to be able to respond to SMS messages? Let’s walk through the well written Django tutorial and add Twilio SMS to the canonical basic Django app. Setting up your environment Before moving on, make sure to have your environment setup. Getting everything working correctly, especially with respect to virtual environments is important for isolating your dependencies if you have multiple projects running… Read More

Never Forget A Friend’s Birthday with Python, Flask and Twilio

Python birthday reminders

Have you ever forgotten a friend’s birthday? It happens to the best of us. After the frustration of checking Facebook every day for birthdays, I wanted a better push notification system with better filters. I wrote an article, Building a Simple Birthday App with Flask-SQLAlchemy, showing a way to export your Facebook birthday calendar to an .ics file and import it into a DB with Flask and Flask-SQLAlchemy…. Read More

How to Build A Boba Tea Shop Finder with Python, Google Maps and GeoJSON

Boba tea

If you plant me anywhere in Manhattan, I can confidently tell you where the nearest bubble tea place is located. This may be  because I have a lot of them memorized, but for the times my memory betrays me, luckily I have the boba map on my data blog. In this tutorial, we’ll use a combination of Python, the Google Maps API, and geojsonio to create what… Read More