PLAY PODCASTS
Linear Programming, PySimpleGUI, and More
Episode 17

Linear Programming, PySimpleGUI, and More

The Real Python Podcast · Real Python

July 10, 202049m 58s

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>Are you familiar with linear programming, and how it can be used to solve resource optimization problems? Would you like to free your Python code from a clunky command line and start making convenient graphical interfaces for your users? This week on the show, David Amos is back with another batch of PyCoder&rsquo;s Weekly articles and projects.</p> <p>David talks about a recent Real Python article about linear programming in Python. We discuss an article titled &ldquo;PySimpleGUI: The Simple Way to Create a GUI With Python.&rdquo; We also cover several other articles and projects from the Python community including: Python&rsquo;s reduce() function, flaws in the pickle module, advanced pytest techniques, and how to trick a neural network.</p> <div class="alert alert-primary" role="alert"> <p><strong>Course Spotlight:</strong> <a href="https://realpython.com/courses/python-zip-function/">Parallel Iteration With Python&rsquo;s zip() Function</a></p> <p>This course will get you up to speed with Python&rsquo;s <code>zip()</code> function. In this course, you’ll discover the logic behind <code>zip()</code> and how you can use it to consistently solve common programming problems, like creating dictionaries. </p> </div> <p>Topics:</p> <ul> <li>00:00:00 &ndash; Introduction</li> <li>00:01:34 &ndash; Python&rsquo;s reduce(): From Functional to Pythonic Style</li> <li>00:07:46 &ndash; Hands-On Linear Programming: Optimization With Python</li> <li>00:15:07 &ndash; Pickle&rsquo;s Nine Flaws</li> <li>00:22:31 &ndash; Video Course Spotlight</li> <li>00:23:33 &ndash; Advanced pytest Techniques I Learned While Contributing to pandas</li> <li>00:33:41 &ndash; PySimpleGUI: The Simple Way to Create a GUI With Python</li> <li>00:38:20 &ndash; How to Trick a Neural Network in Python 3</li> <li>00:43:31 &ndash; TextAttack: A Python Framework for Adversarial Attacks, Data Augmentation, and Model Training in NLP</li> <li>00:46:09 &ndash; byob: BYOB (Build Your Own Botnet)</li> <li>00:49:09 &ndash; Thanks and Goodbye</li> </ul> <p>Show Links:</p> <p><a href="https://realpython.com/python-reduce-function/">Python&rsquo;s reduce(): From Functional to Pythonic Style</a> &ndash; In this step-by-step tutorial, you&rsquo;ll learn how Python&rsquo;s reduce() works and how to use it effectively in your programs. You&rsquo;ll also learn some more modern, efficient, and Pythonic ways to gently replace reduce() in your programs.</p> <p><a href="https://realpython.com/linear-programming-python/">Hands-On Linear Programming: Optimization With Python</a> &ndash; In this tutorial, you&rsquo;ll learn about implementing optimization in Python with linear programming libraries. Linear programming is one of the fundamental mathematical optimization techniques. You&rsquo;ll use SciPy and PuLP to solve linear programming problems.</p> <p><a href="https://nedbatchelder.com/blog/202006/pickles_nine_flaws.html">Pickle&rsquo;s Nine Flaws</a> &ndash; &ldquo;Python’s <code>pickle</code> module is a very convenient way to serialize and de-serialize objects. It needs no schema, and can handle arbitrary Python objects. But it has problems. This post briefly explains the problems.&rdquo;</p> <p><a href="https://levelup.gitconnected.com/advanced-pytest-techniques-i-learned-while-contributing-to-pandas-7ba1465b65eb">Advanced <code>pytest</code> Techniques I Learned While Contributing to <code>pandas</code></a> &ndash; Contributing to open-source projects is a great way to learn new techniques and level up your skills. Martin Winkel shares five advanced <code>pytest</code> techniques he learned while contributing to the pandas project.</p> <p><a href="https://realpython.com/pysimplegui-python/">PySimpleGUI: The Simple Way to Create a GUI With Python</a> &ndash; In this step-by-step tutorial, you&rsquo;ll learn how to create a cross-platform graphical user interface (GUI) using Python and PySimpleGUI. A graphical user interface is an application that has buttons, windows, and lots of other elements that the user can use to interact with your application.</p> <p><a href="https://www.digitalocean.com/community/tutorials/how-to-trick-a-neural-network-in-python-3">How to Trick a Neural Network in Python 3</a> &ndash; Is that a corgi or a goldfish?</p> <p>Projects:</p> <ul> <li><a href="https://github.com/QData/TextAttack">TextAttack: A Python Framework for Adversarial Attacks, Data Augmentation, and Model Training in NLP</a></li> <li><a href="https://github.com/malwaredllc/byob">byob: Build Your Own Botnet</a></li> </ul> <p>Additional Links:</p> <ul> <li><a href="https://pycoders.com">PyCoder&rsquo;s Weekly</a></li> <li><a href="https://realpython.com/courses/functional-programming-python/">Functional Programming in Python</a></li> <li><a href="https://en.wikipedia.org/wiki/Linear_programming">Linear Programming: Wikipedia article</a></li> <li><a href="https://realpython.com/python-pickle-module/">The Python pickle Module: How to Persist Objects in Python</a></li> <li><a href="https://marshmallow.readthedocs.io/en/3.0/">Marshmallow</a></li> <li><a href="https://realpython.com/flask-connexion-rest-api-part-2/">Python REST APIs With Flask, Connexion, and SQLAlchemy – Part 2</a></li> <li><a href="https://realpython.com/pytest-python-testing/">Effective Python Testing With Pytest</a></li> <li><a href="https://realpython.com/python-testing/">Getting Started With Testing in Python</a></li> <li><a href="https://realpython.com/python-keras-text-classification/">Practical Text Classification With Python and Keras</a></li> <li><a href="https://pypi.org/project/PySimpleGUI/">PySimpleGUI</a></li> </ul> <p>Level up your Python skills with our expert-led courses:</p> <ul> <li><a href="https://realpython.com/courses/python-super/">Supercharge Your Classes With Python super()</a></li> <li><a href="https://realpython.com/courses/functional-programming-python/">From Python&#x27;s Functional Primitives to Parallelism</a></li> <li><a href="https://realpython.com/courses/python-zip-function/">Parallel Iteration With Python&#x27;s zip() Function</a></li> </ul> <p><a rel="payment" href="https://realpython.com/join">Support the podcast &amp; join our community of Pythonistas</a></p>