
Episode 226
PySheets: Spreadsheets in the Browser Using PyScript
The Real Python Podcast · Real Python
November 1, 20241h 19m
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>What goes into building a spreadsheet application in Python that runs in the browser? How do you make it launch quickly, and where do you store the cells of data? This week on the show, we speak with Chris Laffra about his project, PySheets, and his book “Communication for Engineers.”</p>
<p>As a software engineer, Chris has worked at IBM, Google, Uber, and several financial institutions. He speaks about developer productivity and communication skills as an engineer. We begin our conversation by digging into his background, his approach to building engineering teams, and strategies for improving communication.</p>
<p>Chris’ idea for PySheets is to have Excel inside Python with everything running locally in your browser. He was inspired by the success of Jupyter Notebooks but wanted to develop a tool more suited to a spreadsheet’s non-linear graph structure.</p>
<p>PySheets is built to run locally in the user’s browser, taking advantage of PyScript. We discuss finding the right solution for storing data in the browser and developing a graphic toolkit to create the UI. Chris also shares the novel method he found to get the interface up and running while the larger assets are loading.</p>
<p>This episode is sponsored by Sentry. </p>
<div class="alert alert-primary" role="alert">
<p><strong>Course Spotlight:</strong> <a href="https://realpython.com/courses/understanding-global-interpreter-lock-gil/">Understanding Python’s Global Interpreter Lock (GIL)</a> </p>
<p>Python’s Global Interpreter Lock, or GIL, is a mutex (or a lock) that allows only one thread to hold the control of the Python interpreter at any one time. In this video course, you’ll learn how the GIL affects the performance of your Python programs.</p>
</div>
<p>Topics:</p>
<ul>
<li>00:00:00 – Introduction</li>
<li>00:02:25 – Background with building engineering teams</li>
<li>00:08:43 – Communication for Engineers book</li>
<li>00:16:17 – What do customers want and experiences at IBM</li>
<li>00:24:28 – Starting the development of PySheets</li>
<li>00:27:19 – Working with the DOM</li>
<li>00:29:41 – Success of Jupyter notebooks</li>
<li>00:35:46 – Sponsor: Sentry</li>
<li>00:36:52 – Little Toolkit for PyScript</li>
<li>00:43:24 – Finding funding </li>
<li>00:46:58 – Building a product before selling</li>
<li>00:52:27 – Video Course Spotlight</li>
<li>00:53:46 – Finding the right data storage in IndexedDB </li>
<li>01:01:57 – Exploring the trial page and extensibility</li>
<li>01:08:26 – Contributing to the project or forking</li>
<li>01:11:56 – What are you excited about in the world of Python?</li>
<li>01:16:20 – What do you want to learn next?</li>
<li>01:17:25 – How can people follow your work online?</li>
<li>01:18:05 – Thanks and goodbye</li>
</ul>
<p>Show Links:</p>
<ul>
<li><a href="http://chrislaffra.com/">Chris Laffra</a></li>
<li><a href="https://chrislaffra.gumroad.com/l/cltwcl?layout=profile">C4E - Communication for Engineers (ePUB)</a></li>
<li><a href="https://pysheets.app/about">PySheets - Spreadsheet UI for Python</a></li>
<li><a href="https://github.com/PySheets/pysheets?tab=readme-ov-file#installation">PySheets: Source for PySheets</a></li>
<li><a href="https://www.youtube.com/watch?v=5nseG-iU62g&list=PLXHJZN4UnprtCWGih6gSG_PvmgsvHue5y">PyScript - Python in the browser - Chris Laffra - YouTube</a></li>
<li><a href="https://www.microsoft.com/en-us/microsoft-365/python-in-excel#footnote2">Python in Excel - Microsoft 365</a></li>
<li><a href="https://github.com/pyscript/ltk">pyscript/ltk: LTK is a little toolkit for writing UIs in PyScript</a></li>
<li><a href="https://pyscript.github.io/ltk/">LTK - Little Toolkit</a></li>
<li><a href="https://dl.acm.org/doi/abs/10.1145/74878.74888">PROCOL: a parallel object language with protocols - ACM SIGPLAN</a></li>
<li><a href="https://developer.mozilla.org/en-US/docs/Web/API/IndexedDB_API">IndexedDB API - MDN</a></li>
<li><a href="https://docs.pyscript.net/2024.10.2/user-guide/first-steps/">First steps - PyScript</a></li>
<li><a href="https://pyodide.org/en/stable/">Pyodide — Version 0.26.3</a></li>
<li><a href="https://www.anaconda.com/blog/pyscript-updates-bytecode-alliance-pyodide-and-micropython">PyScript Updates: Bytecode Alliance, Pyodide, and MicroPython</a></li>
<li><a href="http://micropython.org/">MicroPython - Python for microcontrollers</a></li>
<li><a href="https://www.freecad.org/">FreeCAD: Your own 3D parametric modeler</a></li>
<li><a href="https://www.youtube.com/playlist?list=PLXHJZN4UnprtCWGih6gSG_PvmgsvHue5y">Chris Laffra - How to become a Happy and Productive Engineer - YouTube</a></li>
</ul>
<p>Level up your Python skills with our expert-led courses:</p>
<ul>
<li><a href="https://realpython.com/courses/new-features-python-313/">What's New in Python 3.13</a></li>
<li><a href="https://realpython.com/courses/python-plotting-matplotlib/">Python Plotting With Matplotlib</a></li>
<li><a href="https://realpython.com/courses/understanding-global-interpreter-lock-gil/">Understanding Python's Global Interpreter Lock (GIL)</a></li>
</ul> <p><a rel="payment" href="https://realpython.com/join">Support the podcast & join our community of Pythonistas</a></p>