Brought to you by Michael and Brian - take a Talk Python course or get Brian's pytest book


Transcript #96: Python Language Summit 2018

Return to episode page view on github
Recorded on Thursday, Sep 20, 2018.

00:00 Hello and welcome to Python Bytes, where we deliver Python news and headlines directly to your earbuds.

00:05 This is episode 96, recorded September 19th, 2018. I'm Michael Kennedy.

00:10 And I'm Brian Okken.

00:11 Hey, Brian. How are you doing?

00:11 I'm doing really good. How are you?

00:13 I'm doing great. There's always something to talk about in the Python space. It never gets boring.

00:17 Yeah, no.

00:18 Definitely doesn't. And we're here bringing this to you today in part because of DigitalOcean sponsoring this episode.

00:24 So check them out at pythonbytes.fm/DigitalOcean and get $100 credit for some server goodies.

00:30 Tell you more about that later.

00:31 Brian, you found an interesting one. I don't even know what to make of it here. Tell us about it.

00:35 I can't even remember where I came across this. I guess it doesn't matter.

00:39 There's a Python library called Plumbum, and that's spelled P-L-U-M-B-U-M.

00:46 I have no idea where they came up with that name.

00:49 But it's a toolbox of goodies to do shell-like things in Python.

00:53 It says shell combinators and more. I'm not sure what a combinator is.

00:57 Oh, there was that Y combinator on Back to the Future.

01:01 Other than that, I don't know what a combinator is.

01:03 Is it like the pipes between things?

01:05 Maybe.

01:06 Perhaps.

01:06 Anyway, the motto of the library, and this is a direct quote, is never write shell scripts again.

01:13 And thus, it attempts to mimic the shell syntax.

01:17 Oh, shell combinators is shell syntax, where it makes sense while keeping all the Pythonic and cross-platform goodiness of Python.

01:25 And it's kind of fun.

01:27 And it's one of those things, it's kind of cheating, actually, I think.

01:31 But it's cool.

01:31 We have an example in the show notes, but there's a bunch of examples on their website, on the readme and stuff.

01:37 You can do things like chaining commands with pipes.

01:41 And there's a built-in grep and word count and head counts within this library.

01:46 So if you've got a bash shell script and somebody says, hey, you should convert that to Python, this would take you like five minutes to convert it to Python using this.

01:56 And that's not necessarily a bad thing.

01:58 If you know kind of how to transform something here, you can convert it right away.

02:03 And then maybe if you want to go figure out how to do that with other ways, you could.

02:08 But for a lot of quick and dirty things, why not do something like this?

02:11 It looks really cool.

02:12 Like, certainly writing bash stuff, the more tests you have to do and the, like, looping over things.

02:18 It's just like, how do you do that in bash again?

02:20 You know, it's just, it's not so nice.

02:23 But there's certainly things you can do in the shell that are, like, painful in Python.

02:26 Like, show me the files here.

02:27 It's like, okay, well, fine.

02:28 We're going to import OS.

02:30 And we're going to, like, do a lister and loop over that.

02:32 Right?

02:32 Like, LS.

02:33 Right?

02:33 That's super easy.

02:34 And this kind of brings those things together.

02:36 It's really nice.

02:36 Yeah.

02:37 So I've got a couple things I'm going to throw this out right away is we're converting from on, in Jenkins, you can do shell commands within, like, the little command steps of Jenkins.

02:47 But if you're doing pipelines on Windows, you can't do bash for some reason.

02:51 Or I can't figure out a way to do bash.

02:53 But I can do Python.

02:55 So I could write a little Python script to do the thing that I wanted to do in bash and do it right there.

03:01 So I'll try that.

03:02 Yeah, nice.

03:02 So this is a really cool project.

03:04 And certainly if you're thinking about some kind of bash script or something like that, this is a really nice option.

03:10 Maybe I should just try to use the Linux subsystem on Windows 10 instead of...

03:14 Yeah.

03:14 So if you have a problem with getting bash to work, it doesn't work on Windows, right?

03:19 But you can definitely bring in the Windows 10 Linux subsystem.

03:23 And obviously that's Windows 10.

03:26 I'm sure that it's available on the Windows server equivalent of Windows 10, which I honestly don't even know what version that is.

03:34 But there's probably a server equivalent that has the Linux subsystem as well.

03:38 People can throw that in the show comments if they want.

03:40 But there's an article by Marcus Sherman called the Windows 10 Linux subsystem for Python developers.

03:47 First of all, have you heard of this Windows 10 Linux subsystem?

03:50 Do you know what this is?

03:51 Yeah, I've been trying to keep an eye on it.

03:53 And as they make fixes to it and add features, I've been trying some of these things out.

03:59 Yeah, it's interesting.

03:59 So it's basically Linux embedded inside of Windows.

04:02 I mean, you've always been able to run in Windows like a VMware virtual machine or something and run, say, Ubuntu.

04:08 But that's not what this is.

04:09 It's not like a separate, entirely separate running VM.

04:12 But it's like a little tiny micro VM type thing that is the command line shell for Ubuntu.

04:19 So you can basically have Ubuntu commands in an Ubuntu terminal in your Windows.

04:24 The idea is somebody says, hey, here is some library you want to use.

04:29 And the way you get it is you compile it from source and run it.

04:32 Or, you know, you need to have this other weird utility or type these commands, right?

04:37 Like, how often have you seen a tutorial that says, okay, Brian, the next step is to type Python 3-mvnv.env.

04:45 And then you say source.env bin activate.

04:48 That's awesome, right?

04:49 It works fine on your Mac.

04:50 It works fine on my Mac.

04:52 It works fine on my Linux server.

04:53 Does it work fine on Windows?

04:54 No, you have to use the scripts directory.

04:57 Scripts directory.

04:58 There is no Python 3.

04:59 There is no source.

05:00 Like, what is all this stuff, right?

05:02 It's like, why is it different?

05:04 And so the motivation that Marcus had for writing this is like, hey, if you're going to learn Python and you're on Windows, you might consider using the Ubuntu subsystem.

05:12 Because then all those commands that everybody tells you to do, they just work.

05:16 Oh, that's a good idea.

05:17 You could use, say, Anaconda, and you get all the tools.

05:21 But you still can't type Python 3.

05:23 You still can't type source.

05:25 Like, all these things don't work unless you run Ubuntu for Windows.

05:28 So it's a really nice step-by-step way to go through it specifically for setting up for Python development on Windows.

05:34 Okay, cool.

05:35 Neat.

05:36 Yeah, pretty sweet, right?

05:37 So you might say it's a little cheat sheet for getting Ubuntu work in there, right?

05:41 Yeah.

05:42 Hey, we're doing really good on the whole transition thing.

05:45 That's working.

05:46 Yeah.

05:47 We've got a cheat sheet on my next item.

05:49 I've been trying to do type hints a little bit more, especially, so we've got a lot of the people at work and myself are using PyCharm.

05:58 And the little pop-up dial, I don't know what that's called.

06:02 Autocomplete, drop-down, and type dot.

06:03 Yeah, all that stuff works really great.

06:06 And it also works better if you have type hints in your API.

06:11 It's just two things.

06:12 So I've been trying to do, at least for the external functions, I've been trying to do type hints in there.

06:17 But I forget some things.

06:19 So I ran across this type hints cheat sheet, and it's actually on the mypy documentation site.

06:26 But the things that, I mean, I remember some of the easy things, like how do you represent string and int and stuff like that.

06:32 Colon int.

06:32 What's the problem?

06:33 But what about duct type stuff?

06:35 Like if I have a thing that acts like an array, but it might be a tuple or it might be a list or it might be something else that just,

06:43 I just know that I need to be able to use the bracket index operator and find the length.

06:48 Well, that's a sequence for type hints.

06:51 But I don't always remember that if that's an iterator, iterable or sequence or things like that.

06:56 So those duct type things are what I'm using it for the most.

07:00 But I have other people that I work with that are just sort of learning this type hint thing.

07:04 So all of it's useful.

07:06 Yeah, and it's not that long.

07:07 You know, a scroll bar estimation is probably seven or eight pages.

07:10 Flip through that once and you pretty much have mastered the type hints.

07:13 There's a couple interesting things in here that I thought was nice.

07:16 Talking about adding type hints for asynchronous functions.

07:20 So async def.

07:21 The one that I had never seen was class level variables.

07:25 So class var looks pretty interesting.

07:28 Like it's not on the instance, but it's on the type.

07:31 Oh, interesting.

07:33 You can use class var annotation to declare a class variable.

07:36 I've never done that.

07:37 I'm just, you know, that's pretty interesting.

07:39 And then also specifying the type for, say, a generator or something that yields some kind of iterator.

07:46 It's pretty interesting.

07:47 There's also a generator, actual generator type decoration that takes three arguments that's not covered in here.

07:52 So that's also potentially worth noting.

07:54 But yeah, very cool stuff.

07:56 And I think this is a nice find.

07:58 Cool.

07:58 Nice.

07:58 Now, before we get on to the next thing, I want to tell you quickly about DigitalOcean.

08:02 Like I said, they're sponsoring the show.

08:04 And they have lots of good reasons to go check them out.

08:07 Something that they just announced that's coming soon and is available for early access is Kubernetes.

08:12 So if you have some kind of site that you would like to run on a Kubernetes cluster, you can now go first visit pythonbytes.fm/DigitalOcean.

08:21 Create an account so you get the free $100 credit.

08:24 And then go to DigitalOcean.com slash products slash Kubernetes.

08:27 And you can sign up for early access to check that out.

08:31 So then you can submit containers to run on the Kubernetes cluster and have simple zero downtime deployments.

08:38 That's actually very, very cool.

08:40 Yeah.

08:40 I'm pretty excited about that coming along.

08:42 That's going to be fun.

08:44 So every now and then we cover these sort of higher level topics.

08:48 A little softer.

08:49 Here's one that tries to look a little bit farther in the future.

08:52 And I'm just going to put these out there and then I'll let you give me your, you react to this article.

08:58 Okay.

08:58 So the overall theme here is that Python is driving the creation and foundation of new languages.

09:04 Okay.

09:04 So this was an article and it says, here are five predictions for what programming will look like in 10 years.

09:10 Programming will be, okay.

09:11 So number one, programming will be more abstract.

09:14 When I first read that, I'm like, oh, please don't tell me it's drag and drop.

09:17 UML again or something like this, right?

09:20 But no, they say that trends like serverless technology containers, we just talked about Kubernetes,

09:25 and low code platforms suggest that developers may be able to work at higher level of abstractions in the future,

09:30 not thinking about servers, for example.

09:32 And that sounds reasonable.

09:34 Yeah, to some extent.

09:35 Yeah.

09:36 Yeah.

09:36 Potentially.

09:36 AI will become a part of every developer's toolkit, but it won't replace them.

09:40 What do you think?

09:41 I don't buy that actually, but okay.

09:44 You have some comment I could say to some of the voice assistants, but I'm pretty sure I'll set off like thousands of them, so I won't do it.

09:49 All right.

09:51 A universal programming language will arise.

09:54 Well, Python.

09:55 It's already arisen.

09:56 So, yeah.

09:57 So, the reason this whole article was pretty interesting is it has a pretty strong Python influence.

10:03 So, for example, at the beginning it says, look, just in the last few years,

10:06 some languages have risen and some have fallen.

10:09 And like the have risen links to an interesting article about Python, the have fallen links to an interesting one about Ruby, for example.

10:15 And then under this section, there's a nice quote that says, Python may be remembered as being the great, great, great grandmother of languages,

10:22 of the languages of the future, which underneath the hood may look like English,

10:26 but are actually far easier to use.

10:28 Okay.

10:28 Yeah.

10:29 Okay.

10:30 You ready for my reaction yet, or you got more?

10:31 I'm ready.

10:32 You can bring it.

10:32 I think some of the things are, one of the jokes about Python sometimes is that it's runnable pseudocode.

10:39 I don't like it.

10:40 I don't actually want it to get closer to English because English has so many subtleties and weird things that you can do that have implied meaning

10:50 that the closer we get to the actual English language, actually the harder it is to actually debug something.

10:56 So having it not be that close, I think is better because it's less up for interpretation.

11:04 Right.

11:05 Please read that sentence.

11:06 The people over there have already read the red sign, you know, things like that.

11:09 Yeah.

11:10 I'm not so sure that a universal language will arise either.

11:15 There's always something you may want to take most advantage of, and by doing so, you make it less good for other things.

11:22 For example, look at like, say, the data science tool set.

11:26 It's better working with sets of data than individual things.

11:31 I don't know.

11:31 There's just like, it focuses on one thing, and so then other things become less easy with it.

11:36 All right.

11:37 So, I don't know.

11:38 One of the changes, which is nice, is that the languages are not being developed in the vacuum that they used to be.

11:44 They're learning from each other.

11:46 Yeah, that's for sure.

11:47 And we're getting the mega cool feature in one language that we would like to have in another.

11:52 We're already seeing that.

11:53 Python's taking some features from other languages and pulling it in.

11:57 Other features are taking cool languages.

12:00 Now, I've heard from a lot of people that hardly any other languages have good testing tools like pytest.

12:07 Specifically, they don't have pytest for other languages.

12:10 And that would be cool if we could have some better testing tools in other languages.

12:14 Yeah.

12:15 I mean, there's certainly examples of that.

12:16 Like Swift, Apple's Swift is very much Python inspired.

12:20 You see like the optional, the null coalescing operator being moved towards Python and 3A potentially.

12:26 Things like that.

12:27 So, I agree.

12:28 I definitely see it as a blending.

12:30 I don't know if there'll be a single one.

12:31 So, all right.

12:32 The final two.

12:32 Every developer will need to work with data.

12:34 I think that they're doing that now, right?

12:36 Yeah, I think that's already.

12:38 We always have.

12:39 Yeah.

12:40 And then programming will become a core tenant of the education system, like reading and writing.

12:45 I believe that.

12:45 I do too.

12:46 It isn't necessarily like reading and writing.

12:48 I think it's more like learning biology and basic chemistry.

12:53 It's not that you actually need it every day, but it's good that most people kind of understand how it sort of works.

12:58 Yeah, I'm totally with you.

13:00 And the thing I think it will eject from the education system is geometry.

13:04 I feel like the reason that geometry is taught in middle school and high school is so that critical thinking and proof type of logical thought can be taught.

13:13 Like you don't really need to prove this thing about isosceles triangles.

13:17 Like that doesn't help you in life.

13:18 But the thought process does.

13:21 And I feel like programming, you have the same type of thought processes, but you get a skill, not just a grade.

13:26 Anyway, that's my prediction.

13:28 That's interesting.

13:29 Yeah.

13:29 Yeah.

13:30 We'll see about that.

13:30 All right.

13:32 So another one on async.io, something I've been digging into a ton lately.

13:35 Yeah.

13:36 I wasn't even aware that this was a thing going on.

13:40 But apparently the standard library async.io documentation was completely rewritten from scratch recently.

13:47 That's awesome.

13:48 That's big news.

13:48 Yeah.

13:49 It even says it in the in the tweet announcement.

13:51 This is big news with like two flames on the side.

13:54 So I haven't actually read through this a whole bunch, but it does look like there's quite a bit of documentation there.

14:00 So that's neat.

14:01 That's really cool.

14:01 And it says they're not done.

14:02 So there's a comment that there's this is just the beginning that there's they're going to add some tutorials for high level concepts and APIs.

14:10 And then they're also going to keep going because apparently there's some new things planned for 3.8.

14:16 Yeah, that's awesome.

14:17 Yeah.

14:18 You highlight some of the things coming for async.io itself, like the library and the capabilities async and await are getting better, right?

14:24 Yeah.

14:24 And I think this sort of talks to the importance of async in the future.

14:28 If not only are people still working on making improving the async story within Python, but they're also trying to improve the documentation to make sure that it's usable, which I'm glad to see that sort of documentation going side by side with new concepts.

14:44 That's a good thing.

14:46 Yeah.

14:46 But that kind of highlights the importance of async going forward.

14:49 Yeah, I think async is just becoming increasingly important.

14:52 And I'm really glad to see it really gaining some momentum because if you look at apps written with and without async in a library that can take advantage of it, it's like night and day.

15:02 It's ridiculous.

15:03 And I think that, like you said, again, it's a different concept sort of thing.

15:07 You can think in higher level concepts and break problems up into the more logical breaking points.

15:12 Right.

15:13 You don't have to think about threads and processes and coordination and all that.

15:16 You just say, I'm going to do this part, then I'll wait, then I'll do that part, then I'll wait, then I'll do that part.

15:20 And then, you know, that's sort of that higher level abstraction.

15:22 Yeah.

15:23 Yeah.

15:23 You want to get caught up on all the places that Python is headed, all the directions, all the threads.

15:28 Yeah, definitely.

15:30 So there was the 2018 Python Language Summit.

15:34 Okay.

15:35 That's where all the core developers get together and they talk about what they're doing.

15:38 They do proposals to each other like, hey, I think we should focus on this or we need to address that and so on.

15:45 And there's some really interesting items on lwn.net, which is a pretty interesting site.

15:51 They've got a lot of great stuff, mostly focused on Linux.

15:54 It's kind of like the Craigslist of Linux news or something.

15:58 I don't know.

15:58 It's got an interesting design.

15:59 But basically, this is a meta article about the Python Language Summit this year.

16:05 And it lists off a whole bunch of sessions, each of which are covered in detail in another article.

16:10 So what I'm going to do is cover the high level bits of each one of these main sessions.

16:14 Okay.

16:14 Okay.

16:15 So the first one is, could we have sub-interpreter support for Python?

16:18 So we were just talking about asyncio and stuff.

16:21 One of the main problems, I don't know if I'd call it really a problem because there's a lot of ways around it, actually.

16:25 But conceptions is that Python's not great for threading, specifically around taking advantage of multiple cores for CPU stuff because of the GIL.

16:34 Right?

16:34 It could have 100 threads and only one will run at a time if it's pure Python because of the GIL.

16:38 So the suggestion is, could we take this feature, which is apparently already in Python, called sub-interpreter support to create like semi, like lightweight sub-processes that run within the same process?

16:52 So sub-interpreters will allow multiple Python interpreters per process.

16:57 And there's potential for zero copy data sharing between them and things like that, which is pretty cool.

17:02 That's interesting.

17:03 It might be interesting even for versioning, right?

17:05 Like this library requires this version where that library requires that version.

17:08 Well, you can run like maybe multiple sub-interpreters.

17:11 I don't know.

17:11 That's a whole different angle.

17:13 And it wasn't part of this presentation.

17:14 But they say the problem is that sub-interpreters currently share the GIL.

17:19 So the potential work is, could we make them not share the GIL so they actually can take advantage of multiple cores?

17:26 Yeah.

17:27 Right?

17:27 Like it's becoming a thing.

17:28 So like my MacBook, my new MacBook here has 12 cores as far as the OS sees it.

17:33 And if I write Python code and it takes full advantage of all the processor that it can in single thread, it's only 8.3% of the capacity of the CPU.

17:41 That's a lot less than, you know, 100%.

17:44 So having features like this to let you do more computation would be great.

17:48 Yeah.

17:48 All right.

17:49 So I don't want to go too deep in these because it'll like make this an hour-long show.

17:52 So I'll try to go a little quicker.

17:54 So the next one is modifying the Python object model.

17:56 Looking at CPython's structure.

17:58 So Carl Shapiro from Instagram talked about how they might rework the way the interpreter interacts with classes for better performance and memory and stuff.

18:10 Because Instagram is all about that.

18:11 It's one of the interesting things in this article is that there was some controversy around like the presentation and some other stuff.

18:18 So I'll let you read about it.

18:19 I won't bring it up here, but it's worth looking at.

18:22 We just talked about the GIL for parallelism.

18:24 And Larry Hastings has been on and off working on this thing called the gillectomy, the removal of the GIL.

18:31 And the GIL basically is a thread protection around allocation in Python, which means you don't have to like take a bunch of fine-grained locks when you're allocating new objects.

18:41 But because of that, it means only one instruction can run at a time.

18:44 So could we take that out and then have a Python that does like true parallelism?

18:49 Basically, the update is not much has happened.

18:51 So for better or worse, Marietta talked about using GitHub issues for Python.

18:57 I didn't realize this wasn't already happening, but apparently it's not.

19:00 Apparently there's another site that's currently being used and trying to move over to GitHub issues.

19:04 That's pretty cool.

19:05 Lucas talked about shortening the Python release cycle.

19:08 So right now it's on an 18-month release cycle.

19:12 So in 18 months from whenever 3.7 was out, 3.8 will be out.

19:16 Can we make that yearly?

19:17 It's possibly the conversation.

19:18 So you can read in that.

19:19 One that you might find interesting is unplugging old batteries.

19:23 So unplugging old batteries, there's like encoding libraries for like formats that like predate MIME and other weird type of things that are in there that nobody likely uses anymore.

19:34 So what is the process for taking stuff out of the standard library?

19:38 There's a process for it getting in, but how do you get it out?

19:40 Oh, that's interesting.

19:41 Yeah, a lot of things could probably be not just completely eliminated, but moved to like just a pip package or something.

19:48 Exactly.

19:49 Like this is now out, but if you need it back, you can pip install it separately.

19:52 But your job is to maintain it.

19:54 Like we're not shipping it anymore.

19:55 Something to that effect.

19:56 It's kind of cool.

19:56 Yeah.

19:57 They talked about Linux distributions and Python 2.

19:59 With Python 2 coming to end of life, what is the process for like basically getting those out of the Linux systems that they ship with?

20:08 And how do we do that?

20:09 You talked about Python's static typing.

20:12 So there's an update on that.

20:14 Mostly focused on stub files.

20:16 Have you heard of stub files?

20:18 Yeah.

20:18 It's like the dot, dot, dot, right?

20:20 I've looked at them and they basically are the method signature and then dot, dot, dot.

20:25 And they're not actually the implementation.

20:26 They're just saying here is the actual shape of this method.

20:32 And so what you do is they get imported alongside of your code by things like mypy.

20:37 So they're kept in this thing called the type shed, which is a place for third-party libraries to be in there.

20:44 So you can look through there and see things like what type of stuff, like the context variable and what is its type definition, for example.

20:54 So there's a bunch of things with dot, dot, dot, dot.

20:56 They're just like empty, not implemented sort of structures.

21:00 And so this is where a lot of the third-party stuff and the standard of the library goes.

21:05 But they're saying, look, a lot of packages are not putting things here, like namely things like Django and SQLAlchemy.

21:12 So there's a proposal of finding a way to bind the type information to the package and not to the central location so that package maintainers can ship those stubs along with their libraries.

21:24 Yeah, that would make more sense.

21:26 Or at least it would make some sense.

21:28 Yeah, like it'd be easier.

21:29 Because then you don't have to, say, like do a PR to some other repo.

21:32 Like you just put it along with your library and it's in PIP.

21:34 Yeah.

21:34 It's in PyPI.

21:35 Okay.

21:35 So Python virtual environments, there's some debate about whether they're useful and what we might do instead.

21:41 Primarily around, like if you're trying to teach Python, you shouldn't have to start out with a 20-minute conversation of how to do virtual environments both on Linux, Windows, and macOS.

21:49 And then you can actually talk about Hello World, but just how do we just do that?

21:54 So an interesting debate there.

21:57 There was some conversation around the whole new decision-making process now that Guido stepped down.

22:04 Another one about getting along in the Python community, trying to make things like the dev mailer list be more interesting and welcoming as well.

22:11 Also, finally, mentoring and diversity for Python with Marietta.

22:15 And Victor Stinner as well, two separate presentations in that general area.

22:19 So there's every single one of these things I've talked about, there's an article about it and more references.

22:24 And so if you want to dive into it, it's like it'll keep you busy for an afternoon.

22:28 Okay.

22:29 One of the things that you wrote down but we didn't talk about was TK Enter?

22:33 Oh, so the one about getting along and being more civil on dev was somebody complaining that TK Enter is so badly out of date that it should be removed from Python, but it's shipped with Python, which kind of brings us back to how do we unplug old batteries?

22:46 Because if people don't maintain it and it doesn't work for anyone, then why would TK Enter be there?

22:51 So we might get back on another gooey kick if we go down that too far.

22:56 Okay.

22:56 Anyway, that's what that was about.

22:59 The sort of rudeness on the mailing list was focused around TK Enter.

23:03 Okay.

23:03 And whether it needs to be upgraded, removed, whatever.

23:06 All right.

23:06 Well, that is it for the Python language summit.

23:08 But I thought that was super interesting.

23:10 And there's just so many looks at where people are putting their effort.

23:13 I mean, this is where the core developers are focusing their time.

23:16 So I think it's definitely worth paying attention to.

23:18 Yeah, definitely.

23:19 Cool.

23:19 All right.

23:20 You got it?

23:20 Got anything else you want to share with folks while we're here?

23:22 Yeah.

23:22 One thing.

23:23 I noticed this from – I'm going to get his name wrong.

23:26 Anthony Saudeel?

23:28 Anthony Saudeel.

23:29 Code with Anthony on Twitter.

23:30 I mentioned that pre-commit had a huge jump in downloads on July 30th.

23:37 And I first assumed that it was because we covered it or something.

23:40 But apparently it didn't line up with us covering it.

23:43 You should have covered it earlier.

23:44 Could have gotten credit, but no.

23:46 But I looked at other packages and there is a weird jump in almost all package downloads starting at the end of July.

23:56 I don't have any news around that.

23:58 Just that's weird.

23:59 And I wonder what's going on.

24:01 You know, I wonder if that has to do with when the new PyPI launched.

24:06 Oh, yeah.

24:06 I wonder.

24:07 And it's almost coincident with the pip 18 as well.

24:11 The new PyPI launched in April.

24:13 So, yeah, it could be with pip 18.

24:15 Who knows?

24:15 I bet it's some low-level infrastructure thing.

24:17 Like caching got expired and everything that had cached it everywhere got a new one or something.

24:22 Yeah.

24:22 Maybe they changed the way they were caching it or something.

24:25 I do remember seeing that from pip that every now and then, like, if you run a sufficiently old PIP,

24:30 it'll say that it's, like, its offline cache is not compatible and it'll redownload.

24:35 So, I'm wondering if in the reverse direction when a new pip came out, that may happen.

24:39 So, I bring that up so that if anybody knows what's going on, they can get a hold of us and we can find out.

24:44 Yeah.

24:44 Throw in the show notes.

24:45 Pythonbytes.fm slash 96.

24:47 Yeah.

24:47 And that's one of the things that I love about this is because we can talk about things that we don't quite know about and people will correct us.

24:53 They're generally pretty nice about it, too.

24:55 So, thank you for that.

24:56 Yeah.

24:56 So, one of the things that somebody mentioned, we've talked about Pi Cuda.

25:01 Cudpie.

25:02 Did I get that right?

25:02 I think it was Cudpie.

25:03 Cudpie.

25:03 Yeah.

25:04 Cudpie.

25:04 Yeah, Cudpie.

25:05 Cudpie.

25:06 We were guessing that maybe if you had a video card on your laptop, maybe you could use it.

25:10 But we were corrected that it would have to be an NVIDIA card because Cuda only runs on NVIDIA.

25:17 Yeah.

25:17 So, apparently Cuda is an NVIDIA thing, which I didn't realize.

25:20 I thought it was just a graphics card standard.

25:22 But, no, it's an NVIDIA thing.

25:23 So, this is all triggered by your question.

25:26 Could I do this on my MacBook or on my laptop?

25:29 If you have, like, a Windows or Linux laptop that has an NVIDIA card, yes.

25:33 Otherwise, no.

25:34 Apparently, it's the answer.

25:35 So, a couple people wrote us and communicated that to us.

25:38 So, thank you all for that.

25:39 I guess if you're on a MacBook, you could get an external.

25:43 On the new ones, you can do external GPUs.

25:46 And you could get an NVIDIA one there.

25:47 But even the one sold by Apple is actually a Radeon, so it doesn't help you.

25:51 Okay.

25:52 So, anyway, just thanks for the clarification.

25:54 Yeah.

25:55 Do you have anything else to add?

25:56 Nothing else.

25:57 Not right now.

25:58 I have some good news next week I'm going to share.

26:00 But right now, nothing to say.

26:02 All right.

26:02 Well, thanks a lot.

26:03 Just working away on projects.

26:04 Yeah, thank you.

26:05 Great to chat with you, as always.

26:06 Yeah.

26:06 Thank you for listening to Python Bytes.

26:10 Follow the show on Twitter via at Python Bytes.

26:12 That's Python Bytes as in B-Y-T-E-S.

26:15 And get the full show notes at pythonbytes.fm.

26:18 If you have a news item you want featured, just visit pythonbytes.fm and send it our way.

26:23 We're always on the lookout for sharing something cool.

26:25 On behalf of myself and Brian Okken, this is Michael Kennedy.

26:29 Thank you for listening and sharing this podcast with your friends and colleagues.

Back to show page