
Episode 102
Making Your Notebook Interactive and Using Python's Assert
The Real Python Podcast · Real Python
March 18, 202247m 9s
Audio is streamed directly from the publisher (dts.podtrac.com) as published in their RSS feed. Play Podcasts does not host this file. Rights-holders can request removal through the copyright & takedown page.
Show Notes
<p>Would you like to build visualizations that allow your audience to play with data? How do you effectively use Python’s assert statement during development? This week on the show, Christopher Trudeau is here, and he’s brought another batch of PyCoder’s Weekly articles and projects.</p>
<p>We talk about an article that shows how to build interactive visualizations with pandas, seaborn, and ipywidgets. These widgets allow you to add sliders, buttons, and dropdown menus to your Jupyter Notebooks.</p>
<p>Christopher shares the Real Python article “Python’s assert: Debug and Test Your Code Like a Pro”. It covers how to use <code>assert</code> statements to document, debug, and test code while in development.</p>
<p>We cover several other articles and projects from the Python community, including a news roundup, code review guidelines for data science teams, a project to manage your to-do lists using Python and Django, a Python 4 dream list, a static site generator based on Django, and a book of practical Python projects.</p>
<div class="alert alert-primary" role="alert">
<p><strong>Course Spotlight:</strong> <a href="https://realpython.com/courses/build-neural-network-python-ai/">Building a Neural Network & Making Predictions With Python AI</a></p>
<p>In this step-by-step course, you’ll build a neural network from scratch as an introduction to the world of artificial intelligence (AI) in Python. You’ll learn how to train your neural network and make predictions based on a given dataset.</p>
</div>
<p>Topics:</p>
<ul>
<li>00:00:00 – Introduction</li>
<li>00:02:12 – Tomli TOML Parser Will Be in Python 3.11 Standard Library</li>
<li>00:03:53 – Python Core Moving Bug Tracking to Github</li>
<li>00:05:54 – Python Release: Python 3.11.0a6</li>
<li>00:06:09 – PEPs have a new home with a shiny, new theme! </li>
<li>00:07:03 – Python’s assert: Debug and Test Your Code Like a Pro</li>
<li>00:10:35 – Sponsor: FusionAuth</li>
<li>00:11:12 – Interactive Visualizations with Pandas, Seaborn and Ipywidgets</li>
<li>00:16:06 – Code Review Guidelines for Data Science Teams</li>
<li>00:19:22 – Manage Your To-Do Lists Using Python and Django</li>
<li>00:23:56 – Video Course Spotlight</li>
<li>00:24:56 – Your Python 4 Dream List</li>
<li>00:34:37 – django-distill | Static Site Generator Based on Django</li>
<li>00:38:40 – Practical Python Projects Book</li>
<li>00:46:02 – Thanks and Goodbye</li>
</ul>
<p>News:</p>
<ul>
<li><a href="https://github.com/hukkin/tomli/issues/141">Tomli TOML Parser Will Be in Python 3.11 Standard Library</a></li>
<li><a href="https://discuss.python.org/t/github-issues-migration-is-coming-soon/13791">Python Core Moving Bug Tracking to Github</a></li>
<li><a href="https://www.python.org/downloads/release/python-3110a6/">Python Release: Python 3.11.0a6 | Python.org</a></li>
<li><a href="https://twitter.com/brettsky/status/1501671557503983617">“PEPs have a new home with a shiny, new theme!” | Brett Cannon on Twitter</a></li>
</ul>
<p>Topic Links:</p>
<ul>
<li><a href="https://realpython.com/python-assert-statement/">Python’s assert: Debug and Test Your Code Like a Pro</a> – Learn how to use Python’s <code>assert</code> statement to document, debug, and test code in development.</li>
<li><a href="https://python.plainenglish.io/interactive-visualizations-with-pandas-seaborn-and-ipywidgets-173e5d7d6a5e">Interactive Visualizations with Pandas, Seaborn and Ipywidgets</a> – Create interactive visual output using ipywidgets.</li>
<li><a href="https://tdhopper.com/blog/code-review-guidelines">Code Review Guidelines for Data Science Teams</a> – Although written for data science teams, a good article on why any team of coders should do code reviews. How to do them, what to look for, and how to improve your code.</li>
<li><a href="https://realpython.com/django-todo-lists/">Manage Your To-Do Lists Using Python and Django</a> – Use Django to build a to-do list manager app. This step-by-step tutorial will teach you how to use Django’s class-based views to build a powerful app while dramatically reducing your development time.</li>
<li><a href="https://old.reddit.com/r/Python/comments/sy369l/your_python_4_dream_list/">Your Python 4 Dream List</a> – “If there was to ever be Python 4 (not a minor version increment, but full fledged new Python), what would you like to see in it?”</li>
</ul>
<p>Projects:</p>
<ul>
<li><a href="https://github.com/meeb/django-distill">django-distill | Static Site Generator Based on Django</a></li>
<li><a href="https://practicalpython.yasoob.me/toc.html">Practical Python Projects Book</a></li>
</ul>
<p>Additional Links:</p>
<ul>
<li><a href="https://snarky.ca/what-the-heck-is-pyproject-toml/">What the heck is pyproject.toml?</a></li>
<li><a href="https://realpython.com/podcasts/rpp/82/">Episode #82: Welcoming the CPython Developer in Residence | The Real Python Podcast</a></li>
<li><a href="https://peps.python.org/">PEP 0 – Index of Python Enhancement Proposals (PEPs) | peps.python.org</a></li>
<li><a href="https://seaborn.pydata.org/">seaborn: statistical data visualization | seaborn 0.11.2 documentation</a></li>
<li><a href="https://ciechanow.ski/cameras-and-lenses/">Cameras and Lenses | Bartosz Ciechanowski</a></li>
<li><a href="https://pypi.org/project/weasyprint/">weasyprint | PyPI</a></li>
</ul>
<p>Level up your Python skills with our expert-led courses:</p>
<ul>
<li><a href="https://realpython.com/courses/build-neural-network-python-ai/">Building a Neural Network & Making Predictions With Python AI</a></li>
<li><a href="https://realpython.com/courses/using-jupyter-notebooks/">Using Jupyter Notebooks</a></li>
<li><a href="https://realpython.com/courses/plot-pandas-data-visualization/">Plot With pandas: Python Data Visualization Basics</a></li>
</ul> <p><a rel="payment" href="https://realpython.com/join">Support the podcast & join our community of Pythonistas</a></p>