- Podcasts
- The Python Show
- 47 - Python Projects of 2024
About this episodeI’ve been working on lots of projects this year. Here are the ones I highlighted in this episode: * Python Logging Book * Python Logging…
I’ve been working on lots of projects this year. Here are the ones I highlighted in this episode:
* JupyterLab 101 Book on Kickstarter
* A book on Textual
* Updates for my ReportLab and wxPython books
The Python Show is a reader-supported publication. To receive new posts and support my work, consider becoming a free or paid subscriber.
Get full access to The Python Show at www.pythonshow.com/subscribe
Transcript
From the publisherThis transcript comes from the podcast’s own feed, shown as the publisher wrote it.
47 - Python Projects of 2024
Welcome to a brand new episode. Mike Driscoll, The Python Show. Hello and welcome to the Python show. I'm your host, Mike Driscoll. Welcome back to the show. I've took a break over the summer of 2024 to just, you know, kind of gather my thoughts and just take a break from the podcast. But now I'm back and happy to start talking about Python again. So today I thought I'd just talk a little bit about the various projects that I've been working on in 2024 besides the podcast. So, you know, I do enjoy doing the podcast. It's a lot of fun having guests on the show and talking about Python and data science and web programming and all the other wonderful things you can do with the Python programming language. But the podcast isn't my only facet. I also do a newsletter in the Python community. The Python papers has been doing pretty well. I have almost 7,000 subscribers or thereabouts and they're a lot of fun to chat with and show new, teach new things to. But I also work on my blog some and I keep hoping to get back into doing YouTube videos. I haven't done much for YouTube though this year and I'm hoping to get back into that this fall. Hopefully, you know, in the next couple of weeks, I'll start producing some new videos to share with you all on my mouse versus Python YouTube channel. But my primary focus in 2024 has been on writing. And specifically, I've been working on Python books. So, you know, probably late in 2023, maybe early 2024, I was thinking, What should I do? Should I write some more really large books like I typically write or should I work on some smaller things and see how they go? And I decided, you know, I can probably get more bang for my buck or better use of my time to just write in a couple of smaller books. So I decided I'm going to focus on something small and I decided that the first one would be the Python logging book. So that's what I did. And this is probably my smallest book I've ever written. It's like 120, 150 pages, but the size of it's like six by nine. And normally I write books that are eight and a half by 11 inches. And, you know, I didn't know if the logging bug would even be interesting to anyone. I knew from my own experience that, you know, getting into logging was kind of painful in Python. I was so used to just using the print statement and using that to help me debug. And yet, you know, a lot of times when I work in corporate situations, people had written their own logging. They'd either wrapped Python's logging module or they just, you know, created their own logger And I didn't think that was great. I thought it'd be better if people just understood, you know, why would you even use logging, how to do it in Python effectively, and then wrap up the book by talking about some of Python's other logging packages. Because, you know, Python has their own really awesome logging module that's built into the language. But there's also two or three great alternatives that you could also use to create logging in Python. And so that's what I did. I wrote 12 chapters worth of information about Python logging. And the last two chapters were about two of the most popular alternative third-party packages about logging. And, you know, it surprised me. My Kickstarter did way better than I expected, and a lot of people really enjoyed learning about logging. Now, the sales after Kickstarter, as always, they always take a nosedive. I expected that, but I thought there'd be a little bit more steady sales after that than I really had. And I'm hoping that's just the summer blues. Summer can be kind of hard to get people interested because people on vacation or taking a break from schooling and they just don't buy as many programming books. So I'm hoping that sales will pick up now that we're in the fall. My other book that I thought I'd be fun to do would be to take my Jupiter Notebook 101 book and rewrite it. And that was my original intention was just to update it because I believe it's based on Jupiter Lab 6 or maybe 5. Or not Jupiter Lab, Jupiter Notebook 5 or 6. because back then you could do a lot more with widgets in Jupyter Notebook and Rise, which is probably my favorite plugin for Jupyter Notebook, works really, really well with Notebook version 6 and below. And I've noticed that in the later versions, it doesn't work quite as well. It doesn't seem to do slideshows as well. And it definitely doesn't work very well in JupyterLab, which is disappointing. But anyway, so I decided, you know, I always meant to create a companion book for my Jupiter Notebook 101, and I wanted it to be a Jupiter Lab book. And so I decided, I'm just going to do Jupiter Lab 101. It'll be kind of a rewrite of my Jupiter Notebook 101 book. But that's what I decided to do. And that ended up working out pretty well. It's a visual guide. It's available on Kickstarter right now. As we speak, there's two more weeks left in that Kickstarter. So if you want to check it out, Check out the links in the show notes if you're interested. Basically, it'll teach you how to install JupyterLab, all of its features, and why you might want to use it. And, you know, I'll just give you my pitch. JupyterLab is a really great way to teach others how to use Python. That's what I use JupyterLab and Jupyter Notebook for. You can use Markdown to make your slides look really nice. And if you don't want to use slides, you can just use the cells that you're used to seeing in JupyterLab and just project that onto your screen or, you know, into a YouTube video. The thing that I like about it the most, though, is that I can make it bigger and smaller dynamically while I'm presenting by just hitting, you know, control plus or control minus. That helps a lot in making the cells or the slides more readable. And if you can get the slideshow to work, you can run code in your show, in your slideshow, which is really nice. And that's, you know, kind of my favorite thing about it. But JupyterLab also makes it really easy to open up a console window in your browser so that you can play around and actually show code examples running more realistically than you would inside JupyterLab itself. So one of the limitations of JupyterLab and Jupyter Notebook is some modules don't refresh very well across different cells. So like the login module is a good example. If I want to change the login handlers or change which logger I'm currently attached to. Sometimes it'll get confused because Jupyter Notebook is saving all the state information about the logger that I'm using. And so it doesn't switch very well unless I restart the kernel. And that's kind of hard to do when you're trying to teach people something new in Python. It kind of sucks to just like break up the flow to restart the kernel all the time every time you want to do something new. And Jupyter Notebook just doesn't work that well for logging, but it works well for most modules in Python. But you'll hit that occasionally, and that's where being able to jump into a terminal can make it really nice because then you can write your code and then run it. And that's the other thing I like about JupyterLab is it makes it easy to pop open a Python editor in your browser and type your Python code in there and then run it in the console if you want to. Now, the Jupyter Notebook itself also lets you do that, but that's in a separate tab that you have to jump into, and then you have to launch new tabs. So you create a new tab for your console and a new tab for your file, and you have to manage all these extra tabs. Whereas in JupyterLab, it's all in one tab, and it's a little bit easier and more intuitive, in my opinion, to do all of that. So anyway, there you go. JupyterLab. It's an awesome product. I would definitely check it out. And if you want to learn it from me, you can check out my book. One of the things that I decided to do for that book also, and for the logging book as well, is I'm going to create a video course for both of them. JupyterLab's a little bit more up in the air because I said I'd only do it if we hit my stretch goal, which is $5,000 or 350 backers, whichever comes first. Um... But I already created the logging video course. It's available on my Gumroad page. And soon it will be available on Udemy. And it's also available on TeachMePython. And JupyterLab, if I get those videos put together, they'll also appear on all those platforms as well. Alright, so what else have I been up to? I've been planning lots of different things. I was hoping to revamp my Report Lab book, but it didn't happen yet. I only just started looking into it and realized it's going to be a lot more work than I thought it would be. So I'm pushing that into 2025. But I am definitely going to upgrade it because there's so many new things that I'd like to do to it. I'd like to upgrade all of the code examples so they're more consistent and they follow Python 3 better. I also want to update the PyPDF chapters. Probably remove PDFRW unless they release something new in the next few months because that one seems to have stagnated a little bit. There's also, I believe, a product called Borb, B-O-R-B, that is a new Python PDF generation tool. And I think that would be cool to cover in the book. And maybe I'll cover a couple of other libraries that weren't available when I originally wrote it. But basically what that means is I have to go through, polish all the code examples, update how I talk about them, run everything through an editing process, and it's just going to be a lot more work than I thought it was originally. So that's why that one's getting pushed off. And I also realized that my WXPython book, Creating GUI Applications with WXPython, is woefully out of date. Now, most of the examples still work, but there's a couple that have gotten broken because object list view doesn't work quite right like it used to. So I had to actually go out, and that takes me into one of my other side projects is fixing object list view, which is a third-party package for WXPython that makes doing list controls much, much easier than the built-in WX.list control. So I fixed object list view and released it as object list view three. It's basically a branch of object list view. And I just had to fix a couple of really minor things that had been deprecated and then removed in Debex Python's latest versions. And I think some of them got broken actually by Python 3.11 or Python 3.12. They like fixed things so that the floor division was a little bit different than it was or something like that. Anyway, I just had to fix a couple of minor bugs and then it started working the way I remembered it working. And my examples in my book work again. So, you know, I'm hoping that fixing that book will not be as much of a chore as the report lab book will be. But basically what I need to do is I need to go in there and update the object list for your examples. And I'm hoping to add some more introductory material to that book as well, because that was one of the only complaints I received consistently about the book is that I didn't really introduce Debex Python at the beginning. I just kind of jumped right into creating applications. That was my intent. I wanted people who already knew a little bit about WXPython to just be able to jump in and not have to go through all this introductory material. But in retrospect, I think having that introductory material would be really helpful for people. I just don't know how much to put in it. So if you have opinions about that, let me know. But I'm going to try and create, I don't know, five chapters maybe, maybe a little bit more. But just introductory, this is how DBX Python works. These are what widgets are. how to create some simple, like, hello world type stuff to just kind of, like, ease people more into the application building process when it comes to creating GUIs with Python and WXPython. And, you know, I think that'll be a good update. I do hope that Report Lab and the Dibbix Python, I'm hoping to release those to all my original backers who bought them. But if you feel inclined, go ahead and back the new versions if you want to. Otherwise, you'll probably get a free update. Report Lab might be not free just because I think it's going to take a lot more work to update it. But I don't know. I haven't decided yet. And that would, of course, only apply to people who have bought it on Gumroad or LeanPub because I can easily update them with a new code. Okay, what else have I been up to this year? One of my projects that I'm working on is a book about the textural package, which is how you create text-based user interfaces in your terminal. It's basically a GUI for your terminal. You can create buttons and tab content inside your terminal, labels, change the colors, do all kinds of different things. It's really, really cool. And that book is coming along really, really well. I just finished Chapter 9. And I think I'm over 200 pages at this point or really close to 200 pages of content. And that's just the introductory stuff. This book is going to be kind of like my DBX Python book in that you're going to learn how to create 2E applications with Python and Textual instead of GUI applications like you do with DBX Python. So in a lot of ways, it's going to be kind of the textual equivalent of my DBX Python book, but I'll have different projects, and there'll be lots of introductory material. Like I just said, I plan to have around 10-ish chapters of introductory material, and then I'm hoping to have 10 projects as well, something like that. I don't know if I'll actually get to 10. Maybe it'll just be 8. But it's going to be a nice beefy book. I'm assuming it'll be 350 to 450 pages, somewhere around there. It might be more, depending on how many pictures and code examples there are. But it's going to be a pretty fat book, and I think you guys will find it really, really cool. And I'm planning to take all that knowledge that I'm learning about textural and create a bunch of neat videos. Now, I do think that it would be fun to do a video course as well. But I think just doing a lot of fun, short textural videos for my YouTube channel would be great. And I think you guys would find that really fun to learn textural along with me. And the same goes for Report Lab, too, because I don't think people really talk about creating PDFs with Python on YouTube. So I think that would be kind of fun to go through and just start releasing some different videos on here's how you create a PDF, here's how you edit a PDF, here's how you create a multi-page PDF, stuff like that. I think that would be really fun to talk about in a video format. Anyway, I hope you check out all those books. I've got quite a few on my roster. So the textural one I'll probably announce probably late December or January if everything continues to go the way it's been going. And then after that I'm probably going to go to the Report Lab book because I think that's still a cool book and no one else has really written about Report Lab except for myself. So I'm going to go ahead and update that book some more and basically revamp it. And then I have to decide what to do next. Because I have several other book ideas. And I don't know which one I want to do completely brand new. Because I still have a Debrex Python one I want to work on. But I'm also thinking it would be fun to do something on Pandas and Matplotlib. So those are some books that I'm, like, throwing around ideas about in the back of my mind. But, you know, feel free to drop comments on this podcast and let me know what book ideas or even just what articles you think I should write about next because I really like taking your feedback and coming up with really cool content. Anyway, I think that covers pretty much everything I've been up to so far in 2024. I hope you guys have really enjoyed listening to me ramble on and on about all my different projects. And I hope you listen in to my future podcast because I plan to have some more great guests before the end of the year rolls around. And they can talk to you all about all these other cool things. I'm really hoping to get some more data science people on the show because I feel like that's where the hotness is right now when it comes to programming. But I don't want to just focus on data science. I find it hard to understand myself because I don't do a lot of data science, but I'm really interested in the topic. So I'm kind of hoping that by having those kind of people on my show, they can teach me and I can learn more and hopefully start diving into it myself. But I also like having other people on the show. So if you think of someone who you'd just love to hear more about, you know, let me know. I'll bring him on the show again. And I'm also thinking about bringing back some of my original guests, like Charlie Marsh would be a good one to bring back and have him talk about the Elf Project, or UV, which is kind of a pip replacement. I think that'd be fun to just chit-chat about. The last time I had him on, we talked about Ruff and the Ruff formatter, and that was a lot of fun. But now he's got this new product, and it'd be kind of fun to pick his brain about, you know, what the challenges they faced creating that, how it works with Rye, and it's going to replace Rye, I believe, and, you know, what else is out there. And maybe he could tell us about what his next project will be. I don't know if he will or not, but it'd be fun to find out. I'd also like to bring on a couple of other people from the Python community. I'm not going to name a whole bunch of different names because I don't know that they'll actually accept, but there's several people that I'd like to either bring back on the show or just bring on some new talent and just have them talk about what they're doing. Some people from RealPython, I think it'd be cool to bring some new authors from there. Or maybe even get Dan Bader on. There's some cool people from TyPi, which is a Python web framework slash dashboard creation tool. I think it'd be fun to talk about that. There's just so many different facets that we could go down. And, you know, that's what makes Python exciting for me is being able to talk about all these different kinds of technologies. And yet it's all still based on Python, which is my favorite programming language. Anyway, let me know if you have any requests for guests or topics, and I will do my best to get them on the show. Thank you so much for listening, and I hope you all come back next time.
