Back to schedule

Please note: Seats are limited and you need to register separately after purchasing a conference ticket.
Please check out the requirements of this tutorial below.

-> Full description of this tutorial (external) <-

This is a two-part tutorial. The first half involves remote debugging on devices that participants won't be able to follow along on their own computer, and thus feel more like a presentation. The second half will involve remote debugging that participants can follow along.

First Half:

Python Debugging: Pro Tips and Not-So-Obvious Tricks

Let’s dive into methods for debugging remote python in environments such as CircuitPython, Raspberry Pi, Docker containers, remote Linux Servers, and Jupyter Notebooks.

Abstract

If you are anything like me, when you started with Python 'print' was the debugger of choice. But you likely found that was slow, tedious, and didn't cut it for more complex problems.

Let’s dive into methods for debugging remote python in environments such as CircuitPython, Raspberry Pi, Docker containers, remote Linux Servers, and Jupyter Notebooks.

You’ll learn how to sync code to devices, attach debuggers, and step through your code. And existing (or newly forged) Jupyter fans will learn tips to debug your notebooks.

This fun session covers a range of scenarios and empowers you to supercharge your debugging techniques!


Second Half:
Django in the Cloud

Curious about using Python in the cloud, but don’t know where to start?

Whether you’re excited to learn about it for a personal project, or you need to get up to speed on an enterprise team, this tutorial will provide a comprehensive overview of everything you need to know.

First, you’ll learn how to configure Visual Studio Code to be an incredibly powerful and productive development environment that enables you to quickly and easily create and debug Python apps.

Next, you’ll learn how to develop scalable web applications using Django and PostgreSQL, and deploy them to the cloud on Azure in just a few clicks.

Abstract

Part 1: Setting Up Your Environment and Creating a Local Application
  • Python environment best practices
  • Setting up Visual Studio Code for development with the Python extension
  • Anatomy of a Django web app, connecting our application to a database, introduction to Django Migrations
  • Visual Studio Code productivity tips - using snippets in Visual Studio Code to speed up development by reducing common boilerplate code into reusable templates
  • Running a Django web app in our local environment with a local database
  • Debugging server code and templates
Together, we’ll build a small API that allows us to accept and interact with user input.

Part 2: Web Apps in the Cloud
  • Cloud-based databases. Creating and connecting to a PostgreSQL database within Azure, as well as running remote database migrations
  • Configuration – How to configure your local application to access cloud-based resources
  • Deployment – How to deploy our application to Azure Web Apps on Linux in a few clicks from Visual Studio Code
  • Looking at Logs – seeing what’s going on under the hood
Conclusion Wrap up, cover what was learned, go over next steps and additional resources.

Requirements

  • Bring your laptop with VS Code Insiders Edition installed - any OS is good, but will support Ubuntu 18.04, Windows 10 latest update, macOS latest update.

Dave Glover

Dave Glover is a passionate software developer, with considerable experience and interest in low powered embedded platforms, communications, cloud systems and AI.