Hello and welcome to Python Bytes, where we deliver Python news and headlines directly to
your earbuds. This is episode 226, recorded March 24th, 2021. I'm Michael Kennedy.
And I'm Brian Okken.
And I'm Kelly Schuster-Paredes.
And I'm Sean Tyber.
Kelly and Sean, welcome. It's great to have you both here. Super,
super excited to have some teachers in the house.
Super excited to be here.
Yeah. So if people don't know, Kelly and Sean are hosts of Teaching Python. Is that right?
For the podcast?
That's correct.
Right. So Kelly is the teacher that codes and I am, thanks to our new merchandise,
the coder that teaches.
So that's fantastic.
Yeah. So you guys both run together, co-host a great podcast. And what's the general focus?
Like if I was in the general teaching space and I wanted to learn how to bring like Python and
technology into my classroom, that's the main audience. What would you say?
The main audience, well, has grown. It originally was designed just for teachers. And I think we
thought that they would be K-12 or maybe college teachers, but it has developed into teachers in the developer world and businesses.
And we kind of bounce off each other's ideas. I am a love lifer teacher and Sean is a geek.
Yeah.
And together you have the superpower. Fantastic.
Yeah.
Yeah. So we've been learning a lot from each other over the last couple of years and having great conversations about what it means to be teaching code and why it's important and why it matters.
You know, this is such a huge part of everyone's lives now. And the earlier that we can start with students and helping them learn about coding, it really helps them in so many other areas of their lives. So Kelly and I just started recording it. We one day started pressing record on it, publishing the podcast. And I think we're a couple hundred thousand downloads later, still going strong.
Yeah. That's fantastic. You know, I, one of my passions is that I think people really, we don't need a million more CS students. What we need is a million people who have programming, fluency, and are passionate about something else and can combine those two things.
So, yeah. Spot on.
I get a lot out of the podcast just as somebody that I don't, I'm not a teacher, but I teach people. So there's a lot of stuff around that too. So I like the podcast.
Thank you.
Thanks.
You like data classes?
I really like data classes a lot. Yeah. And it's kind of why I'm covering this. So there's a, there's an article called, called by a person, Jack Song, who wrote data classes versus name tuple versus object, a battle of performance.
And it's, you know, it's a, I was interested in this because I, I kind of thought that, that the data, I was, I really liked data classes, but I thought I heard from somewhere that like they were slower than other stuff.
I had used a, basically I used to use name tuples a lot, but I really liked the data class abstraction and, and the features that it has. And I was slightly concerned. I mean, not very, very much because they, they work fast enough for me, but I was interested.
I am interested in whether or not I am intentionally putting something in the code that I might have to refactor later. But so this, this article, he, he does a, a test example or, and times it for using exit.
Let's see. Let me read this.
So there's a, I think, you know, I think it's a test, but I think it's a test.
But I think that's a test.
And I think it's a test.
I think it's a test.
And I think, you know, I think it's a test.
And I think it's a test.
But I'm not going to be able to test it.
And I think that's a test.
And that's a test.
And I think that's a test.
And that's a test.
And I'm going to get it.
And I think that's a test.
It's about a wash.
They're all kind of similar.
So whatever works for your code, I say, go with it.
But I'd like to hear from other people.
I'd like to, I'd like to know if, if there's other studies out there that compare these and either validate the same thing or find some different result.
I'd love to hear from it from people.
Yeah.
A lot of these are measured in microseconds.
And that's kind of beyond human comprehension, unless you do a whole bunch of them.
Yeah.
And then add those up.
So for me, I think one of the real valuable things is, you know, like the data classes, they can specify types.
Like this thing is an integer and that thing is a date time and that's a string and that's an optional string.
And I think that communicates a whole lot.
And then sort of follow on, like you can easily extend that to things like Pydantic for validation and conversion.
And, you know, unless they're really far off, I think that this extra information that communicates is highly valuable.
Yeah.
I was going to ask Kelly and Sean, like, do you even talk about types, data types?
And how do you cover that with the younger generation?
I was actually just teaching that about an hour ago to students.
We cover that in the very first week about how objects have types and what you can do with different types of information.
And it's a really basic thing that I think they need to know from the beginning because later on it just gets really confusing if you don't have at least this concept of typing.
Yeah.
We do try to, you know, using type hints here and there.
And I find that sometimes with teaching it's helpful because they have that visual reference.
Like, oh, if I'm designing a function or I'm making a method in as part of a class, I can hint at what the types are and the students can see that as we're coding together.
And it makes it much clearer for them what the arguments are going to be or what the return values are going to look like.
I was actually looking at this article from a whole I do this, you know, 360 kind of look.
I was reading this article and I was like, oh, my gosh, I love this because now I have an entryway into telling the kids about the e-finance.
And I was telling Sean, I was like, do you know that Vimbo was Vimbo was coded in Python?
And I do this all the time.
So this whole FinTech data classes kind of push for the kids.
And then I started searching real Python, as I always do.
And they have a great article about how they use data classes with the cards, playing cards.
So it's something that we don't really do the data classes part.
But I do talk about a lot of data types.
I thought it was.
Yeah, OK. Yeah, that's pretty neat that you actually do cover.
I mean, you're going to run into problems if you try to concatenate an integer with a string, it's going to crash.
And so you kind of got to say, look, numbers and numbers can go together.
Strings and strings can go together.
You don't have to go too deep in that theory, though.
Yeah.
My sixth graders can regurgitate it.
They can't stop.
Fantastic.
One of the things I love about data classes is that you can specify the default values for all the fields.
And you can do that with named tuples, but it's weird.
It's a weird add on that you have to do.
Yeah, I've always found named tuples to be a little bit confusing to explain to other people.
Like once you get it, you know it, but then you're trying to teach it to someone else.
They're like, OK, it has this weird construct that doesn't, doesn't follow a lot of the other stuff.
But I do like the data classes because it seems to follow along with a string of really nice language features like with f-strings and data classes where, you know, whether you want to use them or not, the they're well optimized and efficient compared to other options.
You know, f-strings can be faster in a lot of cases than previous formatting.
Looks like data classes are continuing that trend in a really nice way.
Yeah.
Yeah. Cool.
All right. This next one I want to cover.
But before I show on the screen, I want to ask you to guess, do you do stuff with any like micro micro things like raspberry pie or any fruit stuff?
No.
Sean.
You should throw them at me.
It's not, it's not a ninja star.
It's a, what are those express boards?
Yeah.
Sean loves them.
Yeah, we have a ton of them in the classroom.
Kelly has a love, hate, mostly hate relationship with hardware.
But we have a lot of hardware that we use for coding and Python and making things happen.
Nice.
All right.
So let me, let me put this one here on the screen and let me take, take apart the title because there's a lot going on here.
So this person, I, I, I'm not sure the name of the person actually runs this blog, but it's the DIY life about like little micro things.
And oh no, it's by Michael Clements right there.
And the title is, can my water cooled raspberry pie cluster be my Mac book.
So this guy built a water cool.
He has a water cooled raspberry pie, a little pieces, and then got a cluster of eight of them all running together.
And he said, well, this is pretty amazing.
Let me see if I can get this video to like sort of move up.
So y'all can see in the section here where, where they're, this is a crazy looking device here.
How long as we get rid of all that.
It's like what it sounds like a cluster of eight raspberry pies all working together and they're literally water cooled.
So they don't overheat.
And the question was, well, let's like throw some Python math at it and see if there's like a good thing for say like data science, or you know, maybe you got kids, you want to learn stuff on it or whatever.
And you know, how'd it go?
So there's a lot of interesting things.
And I guess, you know, one of the first takeaways is just wait, there's raspberry pie clusters and they're water cooled.
What is this?
This is crazy.
Does this surprise you?
No.
So I had seen this before.
I think I've actually seen one of these in person and they have people have been building cases for these.
It'll hold eight, 12, 16 of these stacked up.
And it, I always thought of it as a way to inexpensively learn about parallelizing, you know, clusters of machines, right?
Like you can buy or build a cluster for a few hundred bucks instead of thousands of dollars.
So they're great for learning, but I never thought anybody would try to like water cool it and make a performance rig out of it.
Exactly.
It's really wild.
So the other thing that I think is an interesting takeaway that I'm not going to cover because there's just too many little details and they rip by really fast in this presentation that I'm linking to, but there's all these tools for running Python code distributed across just
multiple nodes of things that run Python.
So the way they set it up over SSH to make them communicate and do message sharing so they can parallelize the computation is pretty neat.
And I think it applies beyond the pies.
It's just anything you can SSH to more or less.
So that's pretty interesting.
So for some numbers, is there some numbers in here?
I know he's got some graphs, but I don't know.
They put the numbers.
I think the numbers are just in the video.
Oh, wait, here we go.
So I'll just read them off this and give you some real quick numbers.
So he has this like wimpy core I five HP laptops.
What are we going to compute the number?
Find all the primes up to a number 10,000, 100,000, 200,000.
So for the HP, it's like one and a half seconds, 74 seconds, and then almost five minutes, 267 seconds.
So let me grab my MacBook Air, older one, not the M1 and says, OK, that thing's a lot quicker, actually, surprisingly.
So 0.8 seconds and 83 seconds.
Actually, that's a little slower.
And then as it gets longer, I think because it doesn't have the right cooling, the longer it takes, the more it slows down.
And then he says, let me run it on one node on the cluster, which is 1.5 seconds, which is actually faster than the HP, but not quite as fast as the MacBook Air.
And then runs it on the grid and gets it down to instead of 355 seconds to 85 seconds for 200,000 of them.
So it's pretty fast, right?
I mean, compared to these old slower computers that that's kind of chugging along.
Yeah.
These new Raspberry Pi fours that are out the latest version.
I mean, they're really fast and really powerful.
Like people are using them to transcode, you know, video streams for Plex servers and Plex devices and things like that.
You can run your whole house on it with home automation.
Like there's a lot of power and it's still just like 35 bucks.
Yeah, that's crazy.
People are running using like ad blocking DNS things for their local networks, all sorts of interesting things.
So, well, I couldn't resist running this on my two things that I have to see what I would get.
So I have an M1 Mac mini, which is quite fast.
Those M1 chips are really crazy.
And so instead of having 355 seconds on the MacBook Air or 85 seconds on the eight core watercooled cluster,
mines 91 seconds on my Mac mini and it doesn't make a sound or get warm, which is crazy.
That's single threaded.
And then I ran it multi threaded and got it down to 26 seconds, which was pretty interesting.
Yeah.
And if you look at the actual, this is the CPU load over time.
And it turns out the way the algorithm they're using to break it down is the longer ones are much longer.
So the early ones finish.
It's not an even distribution.
So actually there's some room for improvements or whatever there.
But the other one I want to just show you all, because this is kind of crazy.
I have a an Alienware sim racing setup that I have and it actually just blew it.
So it did 200,000 in 10 seconds.
But there's a price one that is expensive.
I mean, that's like a straight price, but there's also a price in sound.
Like I actually recorded it because it was so loud.
Let me just play it back.
Here it is just sitting there nice and quiet.
It's starting to make some noise.
I'll just keep talking normal so you can compare.
But it's really kicking in right now.
I'll move over close to it in a minute.
How about that?
That thing is screaming like you could barely talk over it if you're in the same room, but 10 seconds.
It is pretty fast.
I think I have a robot vacuum that's quieter than that when it's running.
I think you need to crack that open and water cool it.
You know, actually, this is the highest performance one you could buy from Dell from Alienware.
That's not water cool.
And I'm like, I don't really want to have to maintain my computer.
So I'm not getting a water cold one.
I don't want to like take it in for its oil change or whatever.
No, thanks.
In the original discussion in the video, there is a it's a it's single threaded for all the computers and then parallel on the on the mini or the not the minis, the pies pies.
Yeah.
But but then in the comments, some people said, well, what about that?
And so there's there's an update with all the data with the parallel to and it's still really fast on the parallel.
But I think it's interesting to have the speed comparison.
But I think one of the things that's important that Sean points out is you get like two or three of these and you can start to explore parallel computing and distributed computing with under $100.
So that's don't give please don't give him any more ideas.
We have things all over the classroom.
I don't need any more likes.
I think Kelly, is there something you can water cool maybe like set up a water cool thing.
No, but I am going to get the water gun and start squirting him over it.
If he keeps if he brings it.
But like a comparison, though, would be like trying to get what six Mac minis together.
And that's expensive, right?
So that's a lot.
Right.
And a lot of classrooms might have some of these laying around from other projects that you've done or a class set.
And if you wanted to have a student do an individual project with it, you just start putting it together and you can make it work.
It doesn't have to be water cooled in order to be a good learning experience.
So what is it with that is he's overclocking it.
Is that the reason why it needs to be cool?
Yeah, yeah, you can you can push them pretty hard and they they heat up.
There's just a small chip on it and most of them will you'll see people put fans and things like that on it.
But the water cooling is the next level of I'm trying to push a pie really, really far.
I will point out in the they in the video, they link to a multi threaded thing script and I ran the multi threaded script and it gave me the same times.
And the seat.
It only seemed to be using one CPU.
It ran a bunch of stuff, but then I'll put all the work onto one of the cores.
So in the show notes, I wrote my own version that's truly multi threaded and it's up there.
So also Sam Morley out of the chat out of the live stream says I was great.
Yeah, this I've been thinking about setting one of these up.
It sounds fun.
All right, Kelly, I think you're up next with this one, right?
Yeah, so it kind of segues.
Well, you have the Raspberry Pi.
That's something easy for a lot of students to get into.
It's cost worthy and stuff.
I'm going to throw this out there.
It's the app for that.
This is programs.
And I'm sure everyone has heard of this website.
It's a platform.
It's got 50 million people on it.
But what's really cool for me is that I'm always looking for something to do on the go.
And I download this program as and it's on iOS now, which is great.
It launched in iOS last year.
And the thing that I love about this over all the other apps out there is it's got a really great IDE interactive shell.
It's beautiful.
I don't know if you've ever gone to the website of programmers or program is.
I don't know how you pronounce it.
And it's very clean.
So you'll see the same sort of website design on their app.
Everything's interactive.
They have challenges and programs.
But putting that aside, the whole reason why I put this out there is we just had so many kids online from COVID-19 and the digital divide and the kids not being able to access.
I went and I looked in UNESCO and I was trying to find out how many kids were actually trying to learn online last year.
And they estimated about 826 million learners.
And like out of all those learners, 50% of those people did not have a household computer.
So these guys who are out of Nepal have brought Python where you can code and learn and program within this tiny little app.
And it's just easy to go and learn in bite sized chunks.
So I had to throw it out there for you guys.
Yeah, that's really neat.
What have you all done for remote stuff?
Has it how much has been remote and how much has been in person?
So we went back to school in August and it's hybrid half and half.
And our kids are lucky because they all have computers and most of them have pretty stable Wi-Fi.
But I know a lot of the other public school systems, they've had trouble.
Kids have had to go to like other people's houses.
They've had to borrow some computers.
They try to deploy.
I know England deployed one of my former schools deployed all these laptops out to all a lot of their free schools or their public schools.
So it's been hard for a lot of learners and just to be able to keep up learning on a phone because almost everyone has a phone.
Yeah, so yeah that and Google Docs and zoom and you can kind of piece it together to be able to do multiple things there.
Yeah, that's great.
It's a good recommendation.
Does it cost any money?
So that's the great part.
So there is a free version because there are some really good apps out there that are paid.
So there's a free version and they do have the advertising, but the advertising is after that chunk of information.
So you get this great chunk, you know, you're learning about functions and then there's a quick advert and you can X out.
But if you don't want any of the adverts you pay for it, I think it's like 24, 29 a month, but super, super, super.
It goes all the way up to decorators.
So nice.
I thought it was pretty cool.
Yeah, this is really neat.
And it seems like a nice little environment.
It's got syntax highlighting and all that.
Yeah, it's fun.
Yeah, no, that's a great recommendation.
Brian, what's your what's your next one here?
Oh, what is my next one?
Oh, this is kind of neat.
The New York University.
Is that right?
Yeah.
There's an announcement that NYU has secured funding in the order of $800,000 over two years to to go towards packaging and the packaging improvement and what else?
Integrating for pip and downloads and all that sort of stuff.
Improving the resolver.
This is kind of exciting.
This is a lot of money.
This is a really big deal.
Yeah, this is awesome.
The so I actually had to look some stuff up.
So there is some interesting information.
There is still like why New York University.
So they've been there's been some researchers that have been working on it for a while.
So there's a couple of the things I had to look up.
So the specifically.
Well, let's just say specifically what they're doing.
The what this money is going towards.
It's to further assess and improve pip's dependency resolver and then following the work done in 2020 and make also make the resolve lib more usable by other tools in the packaging ecology.
And then in the pipe PI to user pipeline, we've been talking about security problems.
Some on the show and read about others.
They're going to try to integrate the tough support for signed packages through pipe PI clients, and they're targeting conduct hip and Bandersnatch.
So there's a lot there.
I had to look up one the resolve lip.
So that is a that is a third part is a separate package, but it is related to pip because it's vendored into pip.
So resolve lib is vendored into pip and I think they'd like to it to be something that's usable by other other tool chains as well.
And so there's improvement needed there.
Never heard of Bandersnatch before or if I have I've forgotten it's a pipe.
It's a pipe I mirror client.
So and I think it is needing some support.
So that's good.
And then tough.
What the heck is tough.
So TUF is the update framework and it supposedly helps according to the website helps developers maintain the security of software update systems providing protection against even against attackers that compromise the repository or signing keys.
So this notion of we're building up our company even based on collection of open source packages that needs to be like solid right.
And it's more than just signing or pinning your requirements diversion numbers.
We want to make sure that the sources are there.
And so I'm sure there's a lot of details in there that I don't understand fully, but this is a good thing that we work on this more.
Yeah, I totally agree.
I mean, we're we start to teach our students about, you know, installing packages and how you can use other people's code.
And what I'm really hopeful for here with this is that if we can protect this kind of critical infrastructure of Python packaging and at the same time, keep it really simple for people who are entering into Python and learning about this as well as other aspects of the community.
We still want it to be as simple as pip install this or add it to the requirements file, but to have that level of trust that what I'm installing is not going to break my my code or my machine or put other people at risk.
It's really valuable to have that level of trust in the system.
Yeah, I think it's this is amazing.
You know, the biggest surprise for me is that so much of this National Science Foundation type of stuff really has to do with the around the whole scipy side of things.
So it's been more focused on your NumPy and as conda and the fact that this is just on hip and the native IPA stuff is pretty interesting.
I think it's also there's a lot of money. Yeah, I mean, I think once you pair this with some of the other investments that we're seeing with like, you know, Google investing in, you know, with the PSF at a high level, you know, everyone is recognizing this as something that we need to go go work on and make sure it's right.
Yeah, yeah. So how much do you to talk about external libraries with the kids?
We talk about it a lot. I think it's definitely we started off in the with the sixth grade, obviously importing turtle and stuff.
And I always like to say to them, like, this is where the smart guys coded everything.
But, you know, I was corrected a long time ago and just said some really good coders coded this.
Everyone can be smart at one time. Actually, we had a kid come in today and ask how he could package his little program.
And Sean was looking for that. I was like, is it pi pi pi pal? And he's like, No, not that Kelly. I'm like, Oh, okay. Never mind.
Yeah, we do. We do a lot with external libraries and packages because that's, you know, really the strength of Python as an ecosystem and other languages is that it's not just, you know, using the code that you can come up with out of your own head, but being able to leverage the amazing tools that other people have built and shared in the world as well.
So we'll go through things like matplotlib will do one of my students found the why finance package and was able to get historical Yahoo finance data out of it and was having a lot of fun with it.
So they love learning about all these little packages that they can install and start working with.
They like the ones that do like the crazy stuff like hide their passwords.
I bet I can imagine that, you know, it's part of the magic is instead of saying you have to do all this work, you just install this, you run these two lines and then there's something that's really cool.
Yeah, what pipe pie jokes package.
Yes, all the jokes is good.
But I think that there's, I mean, Sean brought up the question of how do I package my own code to share it.
And there's there's like tons of different levels of that that are good to, I guess, cover it probably relatively early.
You don't have to push it to pipe you to be able to make a package and email it to somebody or something.
Yeah. Yeah. Hey, before we jump on to my next item, I just want to pull out a quick little band shout out for Kelly and Sean.
Sean, Robert says big fan of your podcast.
I'm regularly bringing some of your thoughts and suggestions to our science staff here at the Science Center.
Very cool.
Thank you.
All right.
So, Brian, I've been known to do an extra, extra, extra, hear all about it type of thing.
Yeah, because I just got too much. Well, this one goes beyond that because this is eight extras off into one.
I'm like, all right, this can't go at the bottom. This is just too much.
So I'm going to go to try to share this.
Everyone said they're seeing a blank screen. That's that's not so good.
Let me see if I can remove it and add it back real quick.
And then we'll carry on. We'll just have to just roll with it.
All right. But extra number one, we are on audible, Brian, and we are on Amazon music.
Yeah, this is brand new. I have no idea if anybody's listened to it or anything over here, but there they are.
And also I know a teaching Python is at least on one of these. I'm not sure if it's on both.
Yeah, we're on both of those. In fact, my five year old sometimes at bedtime, he has a little Amazon echo dot in his room.
So he'll be like Alexa play teaching Python podcast and it'll come up and start playing. So it's probably on Alexa.
Also, if you ask for Python bites, it'll start playing the latest episode.
Yeah, I can't say that in here. Otherwise she starts talking.
So exactly exactly.
You just set off of that a hundred million.
Ten thousand Alexis.
Anyway, so that's really cool that it's on there.
They reached out to us and invited us to be part of it. I'm like, yeah, that'd be great.
They don't like re encode or re host or anything or stuff.
They just share it, which is great. Also, last time I covered no Sebastian Ramirez covered sorcery.
And I said, I love sorcery as a place thing to add into VS Code and PyCharm that will automatically recommend refactorings like, oh, you should rewrite your code in this cleaner way.
But there are certain recommendations I didn't like and they drove me crazy and I couldn't turn them off.
Well, apparently since September, you can turn them off.
They've told me.
So a couple of listeners as well. Let's see.
Yeah. A couple of listeners sent out a message and said, oh, you can do that.
And then also the folks over at sorcery said, hey, you know what?
That's actually a thing. A lot of complaints and so on.
So Brian, I actually refactored and cleaned up all the Python bytes code, which is like 5000 lines of Python and refactored it almost with all of the recommendations.
And yeah, there's a bunch of stuff. It's really nice now.
Okay. Well, I definitely get to check it out if you're if you're saying that.
Yeah, it's good.
It's pretty neat now. So there's like a commit for the Python bytes website that's, you know, like 47 files changed or something like that.
I had to go through a whole bunch. Anyway, that's all good. So I can recommend that fully now.
Dustin Ingram, by way of Matthew Feikert, who's been a guest on the show here, does a bunch of LHC stuff and certain stuff, pointed out that, you know, Dustin Ingram said, I didn't know I could become a PSF member until I realized that just contributing five hours a month towards towards it.
It's all you got to do. And then you can self certify yourself and he's got a link to find out how to become a PSF member if you'd like.
Wow. Nice.
Yeah. A little follow up by Brandon Brainer using Surture. I noticed Pyjarm seemed to slow down a lot. Anything else that I noticed that? You know, I can't speak to that. On mine, I haven't noticed any difference, but you know, it's my M1 version.
And so it seems all right. But it could be my powerful computer. I don't see it.
I was running on the pie or whatever. Yeah.
If I was alienware, I definitely wouldn't see it, but I would hear it.
It works on my machine. It's fine.
Exactly.
All right. More follow up. I mean, this is just going on here. Beanie, the new ODM, the async ODM object document mapper for talking to MongoDB asynchronously. I said, hey, it should have indexes. They agreed. It should have indexes. So they added a whole mechanism to add indexes to MongoDB through that, which is pretty awesome.
Wow. Power, the power.
The power. I recommend it.
I was silently hoping that it was going to be a package for like baby Beanie Babies that can float across.
I know.
Maybe we should get Anthony Shaw to like do something like that.
That's right. Like maybe a little animated emojis in the terminal for the kids.
Yeah. Perfect. Perfect.
Yeah.
Well, you know, the power of suggestion on Python bytes, like now next week we'll be able to cover the new Beanie Babies module and Beanie.
Exactly. Pippin's all Beanie Babies. They're collectible and you can even get non fungible tokens for certain ones. Okay. So the next one is a projector.
So we talked about remote code execution, connecting VS Code through like a remote interpreter or Python.
Apparently there's this thing called projector at JetBrains that will allow you to install the entire UI of something like IntelliJ or Python or something like that, and then access it over your web browser, but have the entire thing running somewhere else.
So you could be a good if you have like an environment like an iPad or something where you couldn't, you know, install PyCharm, but now you've got all full on PyCharm for across the web.
So I'll link to that. Another follow up, Brian.
We talked about using SQLite as a single file format. So instead of making up your own file format, just put stuff in SQLite. It's just a file. It has easy ways to talk to it.
Audacity of all things. The audio editing software has been completely rewritten for version three. And guess what? It has a single file format. That's SQLite. That's cool. Right?
That is cool. I used to use it. See?
All right. And the last time we also talked about Neo model, which is a way to build Python classes that do graph databases. Super fun.
Um, Grayson Daniel said, Hey, I came up with this really cool example where you can do things like explore. Let's see if I get over here. We can explore things like here's a person like Tom Hanks.
What movies did they act in? What were they directed by? And then you could just traverse these relationships and explore, like follow the chain of like, well, Tom hacks, Tom Hanks acted in castaway, which was directed by Robert.
So-and-so. And then who else started in there and like a really interesting way to like explore those kinds of things.
I'm surprised they didn't use Kevin Bacon as the example.
It would have crashed. It would have crashed.
Michael's on one.
My team.
Oh, sorry.
My teaching side of me really loves that little graphic organizer.
I know.
I do too.
I thought I really, yeah, it's really great, isn't it?
All right.
And the very last one, L Sergio Sanchez just wanted us to give a shout out that a call for proposals for PyCon Latin America just went live.
So people are in Latin America or I guess, you know, things are remote really could be anywhere at this point probably.
So if you want to be part of a conference and speak, go do that.
I'm going to nudge Kelly for this one because she actually speaks Spanish, has taught in Peru.
Like, so I think she'd be a natural fit.
Well, the good thing about it, everything in Python's in English.
So we're good, right?
I suspect a lot of those talks are actually in English as well.
I did it to Nacharla at the PyCon a couple of years ago.
Oh, yeah. Okay, cool. That's the Spanish language track.
Yeah, that's very cool.
That's very cool.
All right.
There's a lot of follow up, a lot of comments here in the chat.
Really quick before we move on.
Brandon says, "M1 power!"
Robert says, "A couple of...
I sent Anthony a few tweets to get this going, but he's so far he's not made the Beanie Baby thing."
Dean's excited about it.
I'm sorry, there were so many things that I don't know which one.
Robert asked if I've tried the projector.
No, I haven't.
But apparently our studios had this as well, which is pretty cool.
And Sam Morley says, "I still want the walrus operator sticker that Emily Morehouse made for PyCon a couple of years ago."
Yeah, that's cool.
I have no idea how to get it though.
And then Dean is excited about the web UI for PyCharm.
All good stuff.
All right, John, I think you got the final item right here, right?
Yeah, yeah.
This is an article I found because we're starting a new quarter in our classroom.
So we teach middle school students, 6th, 7th, and 8th graders that are 11 to 13 years old.
And one of the things that I've found from other teachers and instructors, regardless of age level, is those first few classes of a new course are usually filled with the same thing, which is everyone downloading Python.
Now we all have the right version of Python.
Okay, now what editor are we going to use?
Do we have all the same editor version?
Now we start to get into dependencies and requirements.
And no matter what you're teaching, just those first few classes all seem to be filled with just setting things up, right?
And that's not fun for anyone.
They're excited to get started.
And by the time you get to like, I'm not excited anymore.
Right.
And then someone by the end, like, you know, two weeks in is like, well, why isn't this working?
Oh, because two weeks ago when we set this up, you got version 1.04 and we needed 1.07.
And that's why it's not working.
It's just a pain to manage all this stuff.
Right.
So I didn't think about using them this way, but there's a whole guide from Bridget Murtaugh at V from VS Code about making development containers for education.
So you can Dockerize a development environment and distribute that to students so that each student can just open up a Docker container with all of the right versions, all the right requirements, everything pre-installed right down to environment variables and starter source code for them to work with.
And it's pretty neat.
You need VS Code and Docker desktop to do it the way that they're talking about.
But I think you could probably generalize it to a bunch of other things.
And in VS Code, you can deploy right from a Docker or a GitHub repo.
So you give it a repo URL.
It'll pull down the Docker file, create the Docker container and spin it up for the student and they can start coding right there in VS Code using everything already set up and ready to go.
I think the only other requirement is they have to have Docker desktop installed on their computer.
So, you know, the one thing that I thought about, like maybe there's a way to tinker with this is could we spin up a Docker container on a remote host and then even remove the requirement for Docker desktop on the student's local machine?
Yeah, you might be able to install something like just the Docker command line tools without full on Docker desktop, which might be something you could do.
Just copy them over something.
I'm not entirely sure.
Yeah, yeah.
But there's so many cool things that you could do here.
And, you know, since you can actually run VS Code in a Docker container, you could potentially get to a full Docker package that has VS Code, the Python environment that you want and all the source code ready to go.
And they're even using it for individual assignments.
So once you've got them set up, I'm like, hey, here's your next assignment.
Here's the container to use.
And it gives them everything ready to get started.
Yeah, that's really neat.
And you both talked about having these cool packages around that, you know, it's really great to just import this thing and do the amazing thing.
You could have the Docker container come pre-configured with every package.
So you don't even have to talk about virtual environments or pip or anything to the end when you're like, oh, and by the way, here's how you get this.
But it's just going to work right out of the box, which is cool.
I also like the idea.
Go ahead, Kelly.
I was just, I was going to make a joke again.
That would have saved me because I got lost in my virtual environment a couple of years ago and I haven't been able to find my way out of the end.
So I'm just saying.
Sorry, go headshot.
The other thing that I thought about too, though, is that there's definitely value in still giving the student the manual setup instructions, right?
So if we, you know, give them here's the container version and then also if you wanted to set up your own local version, here's how you would do it.
That way students have a chance to differentiate, you know, if they want to just press the button and go with a container, they can do that.
I think Dean in the comments is saying, you know, we could just package the whole students, whole computer inside a Docker container that might work too.
It'll be containers all the way down.
Yeah.
But there's definitely a lot of really cool stuff here.
And I'm, I'm definitely interested in trying this out because it's not just Python.
You could do this with a whole ton of different things.
Like if you wanted to have a full stack course, you could have a container for the front end, the container for the back end.
Yeah.
And let them develop separately.
Yeah.
You don't have to worry about how do you set up the database and just put this line in there and you'll have a database.
I mean, that's like for me, I think that's like a huge win for a lot of people who are getting into code.
Just being able to say, Sean, give me that package.
Let me click on it, open it up and ready to go.
That would help a lot of people stay into at least get hooked into coding because messing with terminal doing all the folders in the system.
It's, it's a brutal ride for newbies.
I agree.
It is.
Yeah.
And Robert definitely likes it.
Great find.
Yeah.
Nothing, nothing else for me on that one.
I'm just, I love it.
You can replace those first two days with getting everybody on the correct version of Docker.
That's right.
We've just swapped one thing for another.
Exactly.
All right.
Well, that's it for our six items.
Brian, anything you want to share?
Anything extras?
No, I'm just taking away.
Yeah.
Cool.
I absolutely over.
I blew it out earlier.
So we're all good on that.
Let's see.
Kelly, you want to give a shout out to the training summit?
Yeah.
You know, sorry.
The educational summit.
So yeah, this year they are doing both the educational summit and the training summit separately,
which I thought was really cool.
And a lot of the topics that they're looking for is how did we survive with this online virtual
environment?
How did trainers do it?
Not necessarily us in education, but how did the trainers survive with getting through the
training and just they're looking to promote it, I guess.
And the fact that you can attend both.
I know when we went to PyCon, we had to choose between the educational summit and the training
summit.
So we weren't, we're able to do both and now you can attend everything.
So it's pretty cool.
Yeah.
It's a real bummer that these conferences aren't in person, right?
Like the last time we got to hang out, Kelly and Sean, we had like breakfast in Florida.
It was great because we just happened to be in a similar general area.
That was such a weird happenstance.
That's not going to happen right now.
But the flip side is people can come from all over and attend these conferences no matter
what.
Now you don't have to actually go there.
Yeah, it's great.
Sean and I were in Monterey like two weeks ago, Mexico.
Nice.
Virtually.
It was the same temperature where I was sitting.
Nice.
All right.
And then some other ones that are yours, Sean.
Yeah.
So this one I thought was pretty cool.
We use replet a lot in the classroom.
So it's, you know, online coding environments that you can spin up and start coding and share.
And they have really cool features like multiplayer mode where people can be pair programming together
in a shared space.
But one thing that they did, speaking of Python packaging, is they had their own package cache
that they created for replet.
So for a lot of the common third party libraries that they are using in a lot of repls, they
will they'll cache it now and they're getting like a 40% speed improvement on spinning up a
new replet instance when they need it.
And then, you know, also just they're not hitting the PyPI index all the time for all that data.
It's right there local with them.
So they don't have that same sort of load on the caching servers from PyPI.
Yeah, that's great.
Well done to them for doing that.
Because one like it makes it better for all their users.
But the bandwidth cost if it had to be paid of PyPI is like $40,000 a month.
It's a lot.
So put less strain on that system.
Yeah.
I thought that one was really good.
The other one, and this is a project I'm a huge fan of, the Home Assistant project, which runs Python 3, and you can run it on a Raspberry Pi, is just the company that runs a lot of that or has a lot of the core developers for that project has acquired the ESP Home project.
ESP Home is a little side project that lets you take tiny little microcontrollers that cost five or ten bucks and make your own DIY Internet of Things devices.
So this is really a kind of a cool way you configure it with a YAML file and you can push the YAML file over to that microcontroller and you can make your own little devices.
So I made a pool heater controller for my swimming pool here in Florida using an ESP Home microcontroller.
So they have all these great examples.
People have done things like NFC sensors so you can tap tags and play music, Roomba components, washing machine phases so you can tell when your washing machine's on and off.
They have basically all this great stuff there and Nabu Kasa, the company that has all these core developers, just bought it and is bringing it under the Home Assistant umbrella.
Oh, that's cool. Home Assistant will just get better. And Home Assistant is in Python as well, which is neat.
Yeah, they're running 3.9, I think, on it. They're really keeping up with the latest versions of everything.
So this last I want to show, I can only show you half a screen. Oh wait, no, it goes up now.
They were angry at me because my ad blocker in Firefox, apparently, which is just bare Firefox, wouldn't let me show the whole page.
Anyway, here we go. So get a vaccine appointment. You've got to do some web scraping.
Right. So it helps to know Python programmer. And this was on NBC News.
So I thought it was kind of neat that it made it to this mainstream of an outlet.
But they were saying that basically Python programmers have been web scraping to find vaccine appointments.
And they go into the ethics of that. Like, is it OK to web scrape and basically get yourself to the front of the line?
But a lot of folks have been making this information available via Twitter bots as well.
So if you're trying to wait and get a vaccine appointment, maybe you can see if there's a Twitter account near you that's showing you what spaces are available.
How interesting. Yeah, this is a pretty good use of it.
You know, when I went to college, we didn't really have the Internet.
I guess when I first started, it came on like two or three years later.
We had the Internet, but not the Web. And we had to register by phone.
So you would call and it would be busy and he would call back and we'd be busy and you have to do it for four or five hours.
And we just took our modems and we just war dialed the registration number one, one.
So like we had really bad classes, you know, early morning on a Monday or whatever.
And then we decided we're breaking out the modem. We're just going to go dial, hang up, dial, hang up, dial, hang up until it answers.
We had the perfect schedule, my brother and I, that.
So this is like the modern equivalent of that.
Yeah. Yeah. And they were nobody was breaking any rules or anything other than the web scraping part.
It was all, you know, my 70 year old grandmother needs to get a vaccine appointment.
And so spending six hours hitting refresh on the Web page, I'm going to automate that.
Yeah, it's it's a perfect example of automation that that helps. Yeah. Very cool.
I don't really see anything wrong with it until maybe you take down the server.
But so many people are hitting it. But long as it doesn't do something like that.
I think I think us humans are fully capable of taking down the vaccine appointment web servers on our own.
It's just hitting the refresh button. Yeah. All right. Fantastic.
Well, Brian, I think that's it for all of our items. Do we have a joke? You think? I think we might have a joke.
Yeah, I like this joke. Yeah. Let's see. Is this is? Oh, no, this is not it. Let me let me.
I got to copy the. Is this going to work? I don't think. No, I got to do a quick screenshot to get up in the screen share.
Sorry. It's not logged on that computer. OK, so here comes the joke.
The joke. And this one I put out there because I thought it was a good one for teachers and it talks about basic math, really. Right.
So this is a let me put it back on my screen. This one is about counting just one to ten.
And a famous person in computers, Bill Gates.
And I think it's like, hey, I'm coming to visit the school. I work in computers. I'll help you learn how to count.
It says, hi, my name is Bill Gates. Today I'll teach you how to count to ten. One, two, three, 95, 98, NT, 2000, XP, Vista, seven, eight, ten.
What do you guys think?
I mean, I find it I find it interesting that me is not in this list, which just goes to prove that even 21 years later, there is nothing funny about Windows me.
I think that might be the only Windows I've never had. You are lucky.
I keep thinking. I keep thinking about this silly joke of my seven year old. What happened to nine? Because seven, eight, nine.
Nine. Yes. Oh, it fits in there perfectly. Right.
Oh, yeah.
And the reason that nine there's not a Windows nine is even weirder. I wish it was the joke.
But people because there was a ninety five and a ninety eight people were doing substring matches to see if it was a Windows ninety five.
Like if the string Windows nine appears in the just in the version number, well, it must be ninety five or ninety eight.
And so the Windows nine would have the same problem.
But I read that it was because a rumor had it that Japanese in Japan, they skipped it because of the Windows nine.
And they skipped it because it was like a mean to bad thing or something.
Oh, it's like 13.
Yeah.
Unlucky number.
And I guess.
Yeah.
Microsoft in Japan had a lot going on.
So interesting.
You know, I am.
I've stayed on the 14th floor before where it goes 1214.
I'm like, no, this is.
I know it.
You're not fooling anyone.
I'm OK.
Nothing happened on the trip, but I'm on the 13th floor.
I know it.
Yeah.
Very interesting trip that one.
But save it for some beers and we can all get together at an actual conference again.
Yeah.
We're looking forward to it.
Absolutely.
Yeah.
Well, Sean and Kelly, thank you both for being on the show.
It's been great to have you here.
Oh, thanks for having us.
We miss seeing you guys.
Yeah.
Sure.
Brian.
Good to see you as always, man.
Good to see you.
Yep.
Bye everyone.
Bye.
Thank you for listening to Python Bytes.
Follow the show on Twitter via @pythonbytes.
That's Python bytes as in B-Y-T-E-S.
And get the full show notes at pythonbytes.fm.
If you have a news item you want featured, just visit pythonbytes.fm and send it our way.
We're always on the lookout for sharing something cool.
On behalf of myself and Brian Okken, this is Michael Kennedy.
Thank you for listening and sharing this podcast with your friends and colleagues.