Latest / Talk Python To Me / #538: Python in Digital Humanities
Transcript
- 0:00Michael Kennedy: Digital humanities sounds niche until you realize that it can mean a searchable archive of U.S.
- 0:05Michael Kennedy: amendment proposals, Irish folklore, or pigment science in ancient art. Today I'm talking with
- 0:11Michael Kennedy: David Flood from Harvard's DARTH team about an unglamorous problem. What happens when the grant
- 0:18Michael Kennedy: ends? But the website can't. His answer? Static sites, client-side search, and sneaky Python.
- 0:24Michael Kennedy: Let's dive in. This is Talk Python To Me, episode 538, recorded January 22nd, 2026.
- 0:48Michael Kennedy: Welcome to Talk Python To Me, the number one Python podcast for developers and data scientists.
- 0:53Michael Kennedy: This is your host, Michael Kennedy.
- 0:55Michael Kennedy: I'm a PSF fellow who's been coding for over 25 years.
- 0:59Michael Kennedy: Let's connect on social media.
- 1:00Michael Kennedy: You'll find me and Talk Python on Mastodon, Bluesky, and X.
- 1:04Michael Kennedy: The social links are all in your show notes.
- 1:06Michael Kennedy: You can find over 10 years of past episodes at talkpython.fm.
- 1:10Michael Kennedy: And if you want to be part of the show, you can join our recording live streams.
- 1:14Michael Kennedy: That's right.
- 1:14Michael Kennedy: We live stream the raw uncut version of each episode on YouTube.
- 1:18Michael Kennedy: Just visit talkpython.fm/youtube to see the schedule of upcoming events.
- 1:23Michael Kennedy: Be sure to subscribe there and press the bell so you'll get notified anytime we're recording.
- 1:27Michael Kennedy: This episode is brought to you by Sentry.
- 1:29Michael Kennedy: Don't let those errors go unnoticed.
- 1:31Michael Kennedy: Use Sentry like we do here at Talk Python.
- 1:33Michael Kennedy: Sign up at talkpython.fm/sentry.
- 1:37Michael Kennedy: And it's brought to you by CommandBook, a native macOS app that I built that gives long-running
- 1:42Michael Kennedy: terminal commands a permanent home.
- 1:44Michael Kennedy: No more juggling six terminal tabs every morning.
- 1:46Michael Kennedy: Carefully craft a command once, run it forever with auto-restart, URL detection, and a full
- 1:51Michael Kennedy: CLI.
- 1:51Michael Kennedy: Download it for free at talkpython.fm/command book app.
- 1:56Michael Kennedy: Hello, David. Welcome to Talk Python To Me. Amazing to have you here.
- 1:59David Flood: I'm glad to be here. Talk Python has been part of my story up to this point.
- 2:03Michael Kennedy: Has it? Okay. Well, you are about to write the next chapter in the story. So that's pretty excellent.
- 2:10Michael Kennedy: I have a sense of what's coming. We planned out what we're going to talk about and that sort of thing.
- 2:15Michael Kennedy: And I'm really excited about this topic. So it's going to be a good one.
- 2:21Michael Kennedy: Honestly, I think one of the real powers of the Python community and the reason the language has such staying power is there's such a diversity of use cases, technology, like technology standpoints, right?
- 2:34Michael Kennedy: Like I build software for this group or I build these types of apps and it's not just, you know, like Ruby on Rails, which, you know, it's been very popular, but it's, it's for websites, right?
- 2:44Michael Kennedy: You know what I mean?
- 2:45David Flood: Yeah, absolutely.
- 2:47David Flood: I mean, web development has dominated my use of it, but my entry into it, which I suppose I'll mention in a moment, was through all those little tools.
- 2:57Michael Kennedy: Let's hear it.
- 2:58Michael Kennedy: Who are you, David Flood?
- 3:00Michael Kennedy: Tell us, introduce yourself real quick and tell us about how you got into it.
- 3:04David Flood: So my background is in music and the humanities.
- 3:09David Flood: I mean, in 2019, I didn't know what Python was or the name of any programming language.
- 3:16David Flood: and I've been doing textual criticism, which is, you know, there's lots of criticisms in the academy.
- 3:22David Flood: This is the one where if you have lots and lots of versions of the same text,
- 3:27David Flood: you are comparing them to work out what the initial text was and like how it changed over time.
- 3:33Michael Kennedy: Okay, give us an example.
- 3:35David Flood: Okay, so one of the famous examples, hope I can remember it off the top of my head,
- 3:40David Flood: is from Shakespeare.
- 3:42David Flood: We're all familiar with the line to be or not to be.
- 3:45David Flood: is the question. That is the question. Well, there's a variant of it. One of the early copies
- 3:53David Flood: written by Shakespeare himself has... Somebody's going to be able to type into the chat exactly
- 3:58David Flood: what it is. They'll know this anecdote. But it's something more like, "To be or not to be, I."
- 4:04David Flood: That's the question. And so, which one is the original one? Why did he change it? That's kind
- 4:09David Flood: of one example i work mainly in the in the new testament which is especially complicated because
- 4:15David Flood: no other corpus from ancient history has as many copies of the same text as that corpus does so it's
- 4:23David Flood: quite um quite quite complicated and our techniques have have grown grown because of that and perhaps
- 4:29Michael Kennedy: become more advanced than now i mean that many variations over that huge span of time over
- 4:37Michael Kennedy: different groups with different, maybe not intentions, but certainly colored by different
- 4:43Michael Kennedy: worldviews and philosophies and so on. And yeah, I see the trouble.
- 4:47David Flood: No, yeah. And they were people of the book. So copying it is something that happened a lot. And
- 4:54David Flood: they copied the monks, like the medieval monks copied everything. They copied our Greek classics.
- 5:01David Flood: So that's what I was interested in. And because of the wealth of data that we have,
- 5:07David Flood: Computer tools are more and more important in that field.
- 5:11David Flood: So when I started my PhD in 2019, I knew that I wanted to use some of these cutting-edge tools.
- 5:17David Flood: Some of them may be surprising.
- 5:19David Flood: For example, we've been using phylogenetic software.
- 5:24David Flood: This is software that evolutionary biologists are using or computational biologists are using to track, for example, how COVID strains mutate over time.
- 5:35David Flood: Oh, interesting.
- 5:36David Flood: What they're comparing are the DNA letters.
- 5:40David Flood: And so you have the sequence of letters and you're comparing how those change over time.
- 5:44David Flood: Well, you can swap in textual variants for DNA letters.
- 5:48David Flood: And now we can track how texts change over time and group them into families, things like that.
- 5:56Michael Kennedy: It's like a time series, but of words or letters or something.
- 5:59David Flood: Yeah, I mean, yeah, there's lots of important algorithms for comparing
- 6:06David Flood: sequences of things. And so if we can just swap in Greek words and Greek text instead,
- 6:12David Flood: then we can maybe apply it to textual criticism. So I was pretty interested in those things. That
- 6:16David Flood: wasn't actually the method that brought me into it, but something like that, kind of computer
- 6:21David Flood: intensive tools. What I learned is that these tools weren't actually available to me. They
- 6:27David Flood: weren't desktop applications. And for the most part, they weren't public web applications. They
- 6:36David Flood: PyPI or something like that, right?
- 6:38David Flood: Yeah, exactly.
- 6:39David Flood: Exactly.
- 6:39David Flood: Or Java.
- 6:41David Flood: And I needed to glue them together.
- 6:43David Flood: So the long story short on that is during the first year of my PhD, I was picking up Python,
- 6:50David Flood: watching YouTube videos while I was doing the dishes.
- 6:52David Flood: And then the pandemic hit while I was living in Edinburgh in Scotland, probably not far
- 6:57David Flood: from Will McGugan.
- 6:59David Flood: And so the pandemic gave me the excuse to spend even a few more hours each day picking up these
- 7:06David Flood: new, these new technical skills. And so I did it, I was able to use these advanced tools in my in my
- 7:13David Flood: work. But what was really important to me was sharing, like making that available to my colleagues,
- 7:18David Flood: is I had to I had to move from writing these like bad top to bottom Python scripts into things that
- 7:23David Flood: could be reused by other people. And that led me into the web, because the web is where that's how
- 7:29Michael Kennedy: I can share with anybody. It's really wild how much the web is kind of the last bastion of
- 7:36Michael Kennedy: app freedom. It's so bizarre because, you know, I've many times told the stories of the insane
- 7:42Michael Kennedy: battles of just getting our apps that just playback video of content that's already on the web
- 7:48Michael Kennedy: into the app store. I mean, weeks of fighting about the weirdest, most nonsensical things with
- 7:54Michael Kennedy: both Google and Apple. But we also now have the Mac platform and the Windows platform very
- 8:01Michael Kennedy: aggressively looking for digital code certificates and all sorts of signing and other kinds of proof
- 8:07Michael Kennedy: like it you can't even just send somebody an executable anymore it won't run it's it's crazy
- 8:13David Flood: it's it's down to like okay put it on the web i guess that's right i i i played the game of
- 8:19David Flood: distributing desktop apps that's how i did it that's why i initially distributed things um
- 8:25David Flood: and at this point i just require people to install python and then install my desktop app from pypi
- 8:30David Flood: because it's too hard otherwise for me.
- 8:33David Flood: I mean, I could pay for the code signing from Apple
- 8:36David Flood: and do all of that,
- 8:37David Flood: but it's just, it's too much work for the time that I have.
- 8:40Michael Kennedy: Yeah, I'm about to do another round of it.
- 8:42Michael Kennedy: I'm working on an app
- 8:44Michael Kennedy: and my developer account is still active.
- 8:45Michael Kennedy: So we might have a fresh round of fun.
- 8:47Michael Kennedy: Hopefully it goes through this time.
- 8:50Michael Kennedy: Anyway, I do think it's such a challenge.
- 8:52Michael Kennedy: And are you leveraging?
- 8:53Michael Kennedy: I don't know if the timing was right.
- 8:55Michael Kennedy: Like maybe this was too early,
- 8:56Michael Kennedy: but these days, are you leveraging things like uvx
- 9:00Michael Kennedy: to run, or are you just pip install this thing and then run it?
- 9:04David Flood: Yeah, I haven't updated the readme in a while, so I think it just asks for pip.
- 9:08David Flood: But certainly, if somebody asked me today, I would say, yeah, just install this with uv.
- 9:14David Flood: Because then they don't even need Python.
- 9:16David Flood: Exactly.
- 9:17Michael Kennedy: And that's brilliant.
- 9:18Michael Kennedy: And that's a really, it is another barrier reduced in distributing these applications,
- 9:23Michael Kennedy: right?
- 9:23Michael Kennedy: Like, if you can get uv installed on a machine, then you don't even have to say install, just
- 9:28Michael Kennedy: The way you run it is uvx my thing and it's all transparent to you, right?
- 9:33Michael Kennedy: Which is beautiful.
- 9:33Michael Kennedy: So what was it like?
- 9:35Michael Kennedy: Yeah.
- 9:35Michael Kennedy: So what was it like coming from what sounds like a not super screen focus, super
- 9:43Michael Kennedy: techie aspect and having to dive into this world and someday you're probably
- 9:47Michael Kennedy: like, how is it that I'm publishing stuff to PyPI?
- 9:49Michael Kennedy: What has happened to me?
- 9:51David Flood: Yeah.
- 9:51David Flood: well, yeah, I remember when I, when I first signed up for GitHub, because
- 9:56David Flood: you know, whatever YouTube tutorial I was working through at the time, you know, said that I needed
- 10:02David Flood: to do that. You know, I think it all started making a lot of sense. I didn't have any technical
- 10:08David Flood: background, but the world kind of open source software, it just kind of made sense. It felt
- 10:17David Flood: like it fit really well into my academic, you know, circle. I think a lot of the attitudes are
- 10:23Michael Kennedy: similar. I agree. I think they are actually. And I think that's, I think that's a pretty neat thing.
- 10:28Michael Kennedy: Yeah. Very cool. All right. Well, let's talk about what you're doing with digital humanities.
- 10:34Michael Kennedy: You're actually at a really interesting project or organization, I guess, that does many projects,
- 10:40David Flood: right? Yeah. Yeah. So fast, fast forwarding, I did, I finished my PhD in the humanities.
- 10:45David Flood: Sorry. I had so much fun. No, that's fine. That's fine. I had so much fun writing like these tools
- 10:50David Flood: and then just solving the distribution problem
- 10:54David Flood: to share them with other scholars.
- 10:56David Flood: That was so fun that I was open to this kind of opportunity
- 11:00David Flood: where now I'm doing this full time.
- 11:02David Flood: And so, yes, so I'm on the,
- 11:04David Flood: we call it affectionately Darth,
- 11:07David Flood: which is digital arts and humanities at Harvard.
- 11:11Michael Kennedy: There has to be a lot of Star Wars memes and references,
- 11:14Michael Kennedy: I'm sure.
- 11:14David Flood: If you can pull up a 404,
- 11:16David Flood: I think there will be a Darth Vader reference.
- 11:19Michael Kennedy: Seriously, I'm here for it.
- 11:22Michael Kennedy: Yes, page not found. I find your lack of nav disturbing.
- 11:27Michael Kennedy: You know what? I think that is beautiful. And I really, I really think that people should embrace
- 11:33Michael Kennedy: the 404, the fun 404 page, you know, more, right? There should really be something going on that
- 11:40Michael Kennedy: like makes it, you know, something hasn't worked out, but you can just, you can make people laugh.
- 11:46Michael Kennedy: Yeah. I appreciate that.
- 11:48David Flood: I've heard people push back against it.
- 11:50David Flood: Like if you're on a, if you're on like your medical website and you're maybe about to get bad news and then you get like a picture of a kitten.
- 12:00Michael Kennedy: Dr. Kitten doesn't know where your results went.
- 12:02Michael Kennedy: Like I get that.
- 12:02Michael Kennedy: That's not funny.
- 12:04Michael Kennedy: But I mean, most things are not that serious.
- 12:06David Flood: Yeah.
- 12:07Michael Kennedy: Mostly.
- 12:08Michael Kennedy: Okay.
- 12:09Michael Kennedy: So what kind of things does Darth do?
- 12:12Michael Kennedy: You've described this as kind of a web or tech agency within Harvard.
- 12:17Michael Kennedy: Yeah, it is very much.
- 12:18David Flood: So, you know, Harvard has a gigantic IT group.
- 12:21David Flood: I don't know how many hundreds of people work, but more than 500 people in IT.
- 12:28David Flood: We are a small team and we operate very much like a small agency.
- 12:33David Flood: So usually what happens is a faculty member has a funded research project that's going to last for an amount of time.
- 12:42David Flood: And then we consult with them to build it.
- 12:44David Flood: And most of the time, I kind of think of these as I kind of have these different categories of these kinds of projects that I think of.
- 12:54David Flood: I lost in my notes what I call them.
- 12:56David Flood: But they are there.
- 12:57David Flood: You have like a one is like a virtual research environment.
- 13:01David Flood: So the focus is this is this is a platform that we're building for the research to be done on.
- 13:07David Flood: Like the reason the research should be done in like a web app would be because you have access to visualization, to Postgres, to Pandas.
- 13:17David Flood: So we can kind of build up this platform to do the actual research on and some of the data entry.
- 13:23Michael Kennedy: So like a full on research application.
- 13:26Michael Kennedy: Yeah, exactly.
- 13:27Michael Kennedy: I guess you can also kind of see your work through the different stages of research projects and academic research and so on.
- 13:36Michael Kennedy: And we'll get to maybe end of life in a sense further down in the conversation.
- 13:42Michael Kennedy: But so this would be we have a grant or we just work here and we're going to work on some form of research.
- 13:49Michael Kennedy: What do you give them?
- 13:50Michael Kennedy: Right. And I think that's a super interesting challenge because one of the real common answers would be Jupyter, Jupyter Lab, Marimo, whatever.
- 13:59Michael Kennedy: But that's still pretty code heavy for people who are possibly philosophers or something, you know.
- 14:05David Flood: Oh, exactly. That's why in digital humanities, I won't even, maybe I won't even attempt to define
- 14:13David Flood: it in any narrow sense, because I'll get in trouble with somebody. But you have two groups
- 14:20David Flood: that are interfacing with each other. And one is digital humanities as a field, like as a subfield,
- 14:26David Flood: all of its own. And these are people who have humanities domain, like knowledge,
- 14:31David Flood: and technical skills, and they're bringing them together. And in a lot of cases, the audience for
- 14:36David Flood: that kind of work is other people working in the digital humanities. But far more common,
- 14:42David Flood: and this is what we work with, is people who have humanities domain expertise, and they want to
- 14:49David Flood: publish or do research or share with other people who have that same humanities domain expertise,
- 14:55David Flood: and they are now interested in adding a technical component to it.
- 14:59David Flood: How can we supercharge what they have?
- 15:03Michael Kennedy: This portion of Talk Python is brought to you by Sentry.
- 15:06Michael Kennedy: I've been using Sentry personally on almost every application
- 15:10Michael Kennedy: and API that I've built for Talk Python and beyond
- 15:13Michael Kennedy: over the last few years.
- 15:14Michael Kennedy: They're a core building block for keeping my infrastructure solid.
- 15:18Michael Kennedy: They should be for yours as well.
- 15:19Michael Kennedy: Here's why.
- 15:20Michael Kennedy: Sentry doesn't just catch errors.
- 15:22Michael Kennedy: It catches all the stuff that makes your app feel broken,
- 15:25Michael Kennedy: the random slowdown, the freeze you can't reproduce,
- 15:28Michael Kennedy: that bug that only shows up once real users hit it.
- 15:30Michael Kennedy: And when something goes wrong,
- 15:32Michael Kennedy: Sentry gives you the whole chain of events in one place.
- 15:34Michael Kennedy: Errors, traces, replays, logs, dots connected.
- 15:38Michael Kennedy: You can see what's led to the issue
- 15:40Michael Kennedy: without digging through five different dashboards.
- 15:42Michael Kennedy: SEER, Sentry's AI debugging agent,
- 15:45Michael Kennedy: builds on this data, taking the full context,
- 15:47Michael Kennedy: explaining why the issue happened,
- 15:50Michael Kennedy: pointing to the code responsible, drafts a fix,
- 15:52Michael Kennedy: and even flags if your PR is about to introduce a new problem.
- 15:56Michael Kennedy: The workflow stays simple.
- 15:58Michael Kennedy: Something breaks, Sentry alerts you,
- 16:00Michael Kennedy: the dashboard shows you the full context,
- 16:02Michael Kennedy: Seer helps you fix it and catch new issues before they ship.
- 16:06Michael Kennedy: It's totally reasonable to go from an error occurred
- 16:09Michael Kennedy: to fixed in production in just 10 minutes.
- 16:12Michael Kennedy: I truly appreciate the support that Sentry has given me
- 16:15Michael Kennedy: to help solve my bugs and issues in my apps,
- 16:18Michael Kennedy: especially those tricky ones that only appear in production.
- 16:21Michael Kennedy: I know you will too if you try them out.
- 16:22Michael Kennedy: So get started today with Sentry.
- 16:24Michael Kennedy: Just visit talkpython.fm/sentry and get $100 in Sentry credits.
- 16:30Michael Kennedy: Please use that link.
- 16:31Michael Kennedy: It's in your podcast player show notes.
- 16:32Michael Kennedy: If you're signing up some other way, you can use our code talkpython26, all one word,
- 16:38Michael Kennedy: talkpython26, to get $100 in credits.
- 16:41Michael Kennedy: Thank you to Sentry for supporting the show.
- 16:44Michael Kennedy: Maybe just take a moment and speak to, maybe, I don't know if this venue will actually speak
- 16:49Michael Kennedy: directly to anybody who I was imagining here, but people who work with folks, what would you tell
- 16:54Michael Kennedy: somebody who works with a group who have some technical skill, who could create some of these
- 16:58Michael Kennedy: things that we're going to talk about, but the people who they've created for don't necessarily
- 17:02Michael Kennedy: think they need it or know that they need it. I've gone often on rants about how programming is a
- 17:09Michael Kennedy: superpower, not a replacement for your job, right? Yeah. That's a problem for a lot of people,
- 17:15David Flood: especially because you might use some new computer tools to supercharge your research.
- 17:20David Flood: But the article that you publish or the research output of that, the audience, they may not
- 17:25David Flood: be interested in hearing about that at all.
- 17:28David Flood: And so for most people who are working in this space, the tools, you have to use them
- 17:33David Flood: in such a way that you can talk about the research output without talking about the
- 17:37David Flood: tool.
- 17:38David Flood: And we have other venues to talk about the tools themselves, like the Journal for Open
- 17:43David Flood: source software and you can kind of get some of it out there. But that is a, that's the significant
- 17:48David Flood: challenge is convincing people that it, that it could be useful and then convincing the audience
- 17:53David Flood: that they should be interested in kind of the methods behind how some of the new research comes
- 17:57Michael Kennedy: up. Also, I think I'm a big believer that presenting stuff in the right order is really,
- 18:03Michael Kennedy: really important. If you present your research and it's beautiful and powerful and oh, look,
- 18:07Michael Kennedy: we've also, by the way, covered a hundred times more data than any prior research. Surprise,
- 18:12Michael Kennedy: I wonder how I did that.
- 18:14Michael Kennedy: And then people are like, this is amazing.
- 18:16Michael Kennedy: Then after you kind of hook them with the inspiration and what's possible,
- 18:19Michael Kennedy: then you're like, let me tell you about the tool.
- 18:21Michael Kennedy: And all of a sudden you're like, that's a cool tool, right?
- 18:22Michael Kennedy: This is not just like geekery, like programmer, you know,
- 18:26Michael Kennedy: Charlie Brown speak, wah, wah, wah, wah, wah.
- 18:28Michael Kennedy: You know, it's like, no, I'm listening.
- 18:29Michael Kennedy: Tell me now.
- 18:30David Flood: Yeah, exactly.
- 18:31David Flood: I mean, one of the things I think that really opens people's eyes
- 18:35David Flood: is a really powerful search interface.
- 18:38David Flood: You have all of this research data.
- 18:40David Flood: just put it behind Elasticsearch with some really good filtering on it. And all of a sudden you have
- 18:45David Flood: fast, rapid access to the data in a way you never had before. Like you were never scrolling through
- 18:51David Flood: the Excel spreadsheets and finding exactly what you wanted, like you were with this new search
- 18:55David Flood: interface. And that by itself is like so simple. We're so used to that in web development that
- 19:00David Flood: like everything needs to have a fantastic search now. But so many people have their data locked
- 19:05David Flood: behind, you know, a terrible search interface.
- 19:07Michael Kennedy: Yeah, just a few things to sort of expose that.
- 19:10Michael Kennedy: So this, give us a sense of what these data exploration web apps might look like.
- 19:14Michael Kennedy: These are probably kind of mostly stuck to the inside, kind of internal to the research
- 19:20Michael Kennedy: lab research team groups and so on.
- 19:22Michael Kennedy: These are probably not that public facing, right?
- 19:24David Flood: Almost everything we work on does end up having a public facing component.
- 19:28David Flood: So maybe the research itself is done, locked behind a user login.
- 19:34David Flood: That's just for the researchers.
- 19:36David Flood: But then they expose that research to the public,
- 19:39David Flood: usually with a good search interface
- 19:41David Flood: and different pages for exploring their data
- 19:45David Flood: and visualizations and things like that.
- 19:47David Flood: So yeah, everything we do ends up becoming
- 19:49David Flood: a production public web app in the end.
- 19:52Michael Kennedy: And then another one of your categories,
- 19:54Michael Kennedy: you put it was virtual research environments
- 19:57Michael Kennedy: like data entry, publishing, authoring, collaboration.
- 20:00Michael Kennedy: Tell us about that.
- 20:01David Flood: Yeah, so a good example of this maybe
- 20:03David Flood: is one of the projects that... Well, actually, the best example of it is the project I worked on
- 20:08David Flood: during my PhD. It's called Apatosaurus. The short story behind the name is that it sounds like
- 20:16David Flood: apparatus. In textual criticism, when you are displaying and visualizing variant readings to
- 20:24David Flood: a base text, that form of visualizing it is a critical apparatus. A critical apparatus is a
- 20:32David Flood: a pretty boring website name, but Apatosaurus dinosaurs might make textual criticism sound fun.
- 20:37Michael Kennedy: Yeah, I do love dinosaurs. No, that's really cool. So this, this comes out as a web app. And I know
- 20:43Michael Kennedy: you also have some, you talked about some desktop apps as well.
- 20:46David Flood: Yep. Yep. That's right. So, yeah. So, so there's this people, people upload their,
- 20:50David Flood: their collation to this and then they can visualize it. And like there, there's a public
- 20:55David Flood: component of this as well, but really the backend is editing, editing a collation,
- 21:00David Flood: and adding notes to all of the different readings and stuff.
- 21:03David Flood: So I could show what the backend looks like,
- 21:07David Flood: but we can also move on.
- 21:08Michael Kennedy: - Let's move on just because most people
- 21:11Michael Kennedy: will not totally hear, but just give us a sense of like,
- 21:14Michael Kennedy: like what do people, what do you create for people
- 21:18Michael Kennedy: so that they're like, yeah, I can use this app, right?
- 21:21Michael Kennedy: Like give us a sense of some of the features,
- 21:23Michael Kennedy: I guess is what I'm getting to.
- 21:25David Flood: - Yeah, so another good example is we have a project
- 21:29David Flood: at Harvard called Mapping Color in History.
- 21:33David Flood: And this is a collaboration with a lab.
- 21:37David Flood: This lab brings in pieces of artwork
- 21:39David Flood: and they do spectral analysis on the pigments
- 21:42David Flood: so they can identify what was used
- 21:45David Flood: to make a particular color of this red
- 21:48David Flood: or what was made to make this color of blue.
- 21:51David Flood: And then the idea is tracking
- 21:54David Flood: how did people make those pigments over time,
- 21:57David Flood: over time and specifically in Asian art.
- 22:02Michael Kennedy: Is this the Dharmra, Puna, Puna?
- 22:05David Flood: No, this is mapping color in history.
- 22:08David Flood: I don't think it's up here.
- 22:09David Flood: Sorry about that.
- 22:10Michael Kennedy: Somewhere.
- 22:10Michael Kennedy: That's all right.
- 22:11Michael Kennedy: I'll find it.
- 22:12Michael Kennedy: Keep talking.
- 22:13David Flood: Okay.
- 22:14David Flood: So the front end is great.
- 22:16David Flood: You know, like the public end,
- 22:18David Flood: this is people can explore by pigments
- 22:21David Flood: and then see the images that contain those pigments.
- 22:24David Flood: Now in the back end, what the researchers will be able to do is correlate exactly which
- 22:30David Flood: point of a painting the analysis was done on.
- 22:34David Flood: So they have this deep zoom image viewer where they'll zoom in and they'll select the point
- 22:39David Flood: where that was taken from.
- 22:41David Flood: So how else would you do that other than a digital interface to indicate on an image of
- 22:47David Flood: a painting where that spectral analysis was performed?
- 22:52Michael Kennedy: Sounds almost like astronomy in a weird way.
- 22:55Michael Kennedy: Oh, yeah.
- 22:55Michael Kennedy: We zoomed into here and we took a different spectrum of the painting and we realized that it's actually identical to this, you know, something crazy like that, right?
- 23:04David Flood: Yeah, yeah, yeah, that's right.
- 23:06David Flood: Yeah, so it's essentially a pigments, like a pigments database.
- 23:10Michael Kennedy: So the third category of these digital humanities projects that you put down was like data extraction, transformation.
- 23:19Michael Kennedy: In data science, they often say, you know, 80% of the work is the data wrangling, which is like cleaning, organization, just getting it so you could possibly start asking questions about it.
- 23:29Michael Kennedy: I'm sure you all do a lot of that.
- 23:31David Flood: Absolutely.
- 23:32David Flood: So often, the very beginning of a project might be an Excel sheet or several spreadsheets.
- 23:41David Flood: And the first task is to ingest these into, you know, a proper database.
- 23:46David Flood: Not so much MongoDB for us.
- 23:48David Flood: It's going into Postgres.
- 23:50David Flood: We're Django Shop.
- 23:51David Flood: We're Django Shop.
- 23:52David Flood: So it's going into Postgres.
- 23:55David Flood: And yeah, no, that is probably the number one challenge of the early stage is figuring out what the right data model is, what the right relationships are to model the data.
- 24:07David Flood: Doing that work is advantageous to everybody because, you know, it helps both the researchers who brought the data to think about it in a more organized way.
- 24:17David Flood: I mean, they've been trying to do that.
- 24:18David Flood: And they have the spreadsheets.
- 24:20David Flood: But now we're modeling out the data so that we can add it to database tables and then to use later.
- 24:27David Flood: So that works out well for everybody.
- 24:30David Flood: And yeah, absolutely.
- 24:31David Flood: Cleaning the data, getting dates, working with fuzzy dates, being able to parse July of 2020 or summer of 2020 and handling kind of all of those cases so that we do get dates in the end.
- 24:45Michael Kennedy: One of the crazy stories from data parsing history is one of the, I can't remember exactly what it was, you talked about biology tools or genetics tools earlier.
- 24:56Michael Kennedy: One of the groups that names genes had to change the name of a gene because it kept getting parsed by Excel into a date.
- 25:04Michael Kennedy: Yeah, I remember that.
- 25:05Michael Kennedy: I remember that.
- 25:06Michael Kennedy: That's right.
- 25:07Michael Kennedy: Yes.
- 25:08Michael Kennedy: So these are the weird edge cases I'm sure you run into.
- 25:11Michael Kennedy: Like it's not even supposed to be a date.
- 25:13Michael Kennedy: Why is this a date?
- 25:13Michael Kennedy: I don't know.
- 25:14Michael Kennedy: Why is it helping out here?
- 25:16Michael Kennedy: The code keeps crashing.
- 25:18Michael Kennedy: Like pandas parsed it as a date and it's not or whatever.
- 25:21David Flood: Absolutely.
- 25:21David Flood: Yeah.
- 25:22David Flood: Yeah.
- 25:22David Flood: So yeah, usually lots of test suites around that ingest process until we've got it.
- 25:27David Flood: Now, once we've got it in, usually the research is ongoing and then we're able to provide
- 25:32David Flood: them now a new cleaned interface to do the additional data entry as the project is going.
- 25:38David Flood: And that's usually a win-win for everybody.
- 25:40Michael Kennedy: Sure.
- 25:40Michael Kennedy: And so this sort of ETL ingestion side of everything is it's like, don't worry,
- 25:46Michael Kennedy: Darth has got it for you.
- 25:47Michael Kennedy: And then we'll provide you like a database connection to start working.
- 25:51Michael Kennedy: Or do you give them the tools and then they kind of iterate on them?
- 25:54Michael Kennedy: And how much is this you and how much is this you providing like CLI tools and stuff
- 26:00Michael Kennedy: or notebooks over to people?
- 26:03David Flood: I'd say most of the people that we're working with are aware of the technical tools,
- 26:08David Flood: but they don't want a database connection.
- 26:10David Flood: So we are giving them, we're doing the ingest and then building a platform where they can begin interacting with their data.
- 26:17Michael Kennedy: Yeah, I'm sure they don't want one.
- 26:20Michael Kennedy: Maybe you give them an app though, right?
- 26:22Michael Kennedy: With like Elasticsearch and other things that they can.
- 26:25David Flood: No, absolutely.
- 26:25David Flood: Yeah, that's what we do.
- 26:26David Flood: Yeah, okay.
- 26:27David Flood: Yeah, we give them a web platform to begin exploring, to begin publishing.
- 26:34Michael Kennedy: So I was thinking that you said you're a Django shop, which is cool.
- 26:38Michael Kennedy: It sounds, though, to me like describing what you're doing, just imagining how this is.
- 26:43Michael Kennedy: You're probably creating these projects often.
- 26:46Michael Kennedy: How often does one of these projects actually last?
- 26:49Michael Kennedy: Or how many of them do you iterate?
- 26:53Michael Kennedy: I'm trying to get a sense.
- 26:53Michael Kennedy: Do you work on stuff for a year or is it like every two weeks we're on a new project?
- 26:58David Flood: It's why I think of us as like an agency.
- 27:00David Flood: Because we get to work on greenfield projects fairly often, like you're imagining.
- 27:04David Flood: Which would not be the case normally at a big university IT department.
- 27:09David Flood: So, you know, maybe two or three projects a year, two or three big ones a year.
- 27:15David Flood: And then we have to put to bed a few a year as well.
- 27:18David Flood: Because these things, they're funded with grant money.
- 27:21David Flood: And then the grant money runs out and it's time.
- 27:24David Flood: And then we have to figure out what do we do with it now?
- 27:26David Flood: We don't want to lose the data and this way of presenting it.
- 27:31David Flood: But we can't keep paying for Elasticsearch.
- 27:33Michael Kennedy: Yeah, of course.
- 27:34Michael Kennedy: I'm certainly, we're going to dive into that because that is, but let's save that for the
- 27:37Michael Kennedy: end.
- 27:37Michael Kennedy: It seems like that's the arc of the story of these things.
- 27:40Michael Kennedy: But I certainly think it's something that you don't think about that much, right?
- 27:44Michael Kennedy: Like you said, it was only a hundred dollars a month for this.
- 27:47Michael Kennedy: And we got a big grant.
- 27:48Michael Kennedy: There's a bunch of, no big deal.
- 27:49Michael Kennedy: But like when the grant's out, who's on the hook for a hundred dollars a month and making
- 27:53Michael Kennedy: sure it survives upgrades and all that kind of business.
- 27:56David Flood: No, that's right.
- 27:57Michael Kennedy: Yeah.
- 27:57Michael Kennedy: So my original question when I started on this path was thinking like, do you, how do you
- 28:02Michael Kennedy: get started on these?
- 28:03Michael Kennedy: Do you have like a big framework or a cookie cutter sort of thing or something like this
- 28:07Michael Kennedy: is how we do it because it plugs into all this other automation and tools we built for
- 28:11Michael Kennedy: the last 10 projects.
- 28:13Michael Kennedy: You know, that's kind of a unique position.
- 28:14Michael Kennedy: A lot of companies build one website for themselves and that's their app or they're
- 28:19Michael Kennedy: an agency that goes across so many, so much variation.
- 28:21Michael Kennedy: They can't do that kind of stuff.
- 28:22Michael Kennedy: Right.
- 28:23David Flood: That's right.
- 28:24David Flood: That's right.
- 28:25David Flood: That's a good question.
- 28:26David Flood: We have things that we reuse.
- 28:29David Flood: Some of them are open source, different search components and things that we maintain that
- 28:36David Flood: we'll use across projects.
- 28:37David Flood: And we have tried to do the cookie cutter Django project.
- 28:41David Flood: The truth is, each project is different enough that really we like to evaluate it from first
- 28:47David Flood: principles as we're evaluating it and thinking, what is the best technology to use?
- 28:55David Flood: Yeah.
- 28:55David Flood: Yeah.
- 28:56David Flood: So yeah, we don't have a cookie cutter.
- 28:59David Flood: We don't have a kind of a meta framework for bootstrapping them because they're sufficiently
- 29:04David Flood: different from each other that we...
- 29:05David Flood: I find that too.
- 29:07Michael Kennedy: I find that too.
- 29:08Michael Kennedy: The idea of how we could just grab this cookie cutter or copier.
- 29:12Michael Kennedy: Are you familiar with copier?
- 29:14Michael Kennedy: People out there might be familiar with that.
- 29:15Michael Kennedy: It's a little bit like cookie cutter with the bonus that you can update it later if you
- 29:21Michael Kennedy: change your mind about something, like actually change this project to use Postgres rather
- 29:24Michael Kennedy: than SQLite or something, which is pretty cool. But every time that I do, every time I try to work
- 29:30Michael Kennedy: with one of those projects, even ones that I've created for myself, I'm not, I hate not anyone.
- 29:34Michael Kennedy: I'm like, oh, it's like 75% awesome and 25%. I just got to take this stuff out. You know,
- 29:39Michael Kennedy: I'll just, I'll just do it from scratch. It's not, how hard is this? I'll just create a few folders
- 29:43Michael Kennedy: and put a few things in there and I'll copy the one, like the pyproject.tom or like the one thing
- 29:48Michael Kennedy: that's like, how do I do this again? I'll just copy that and we're good to go. Yeah. I mean,
- 29:52David Flood: That's what I find.
- 29:53David Flood: That's what I find.
- 29:53David Flood: I find it, it seems like a really brilliant idea,
- 29:56David Flood: but in practice, it hasn't saved us time yet.
- 30:00Michael Kennedy: No, I mean, maybe it's a case study.
- 30:02Michael Kennedy: Like, okay, let's see what they're doing for this one.
- 30:04Michael Kennedy: Oh, that is interesting
- 30:05Michael Kennedy: how they're integrating this other thing maybe,
- 30:07Michael Kennedy: but as a true foundation, I find it in theory awesome.
- 30:11Michael Kennedy: In practice, I just end up not doing it for various reasons.
- 30:14Michael Kennedy: Don't know why.
- 30:14Michael Kennedy: I'm gonna save this for later.
- 30:16Michael Kennedy: Because the question I'm about to ask you
- 30:17Michael Kennedy: is gonna send us just down a rat hole.
- 30:21Michael Kennedy: So instead, before we go down the rat hole, maybe we could, not that one, maybe we could
- 30:27Michael Kennedy: talk about, I mean, you talked about some, but let's maybe just feature some of the projects
- 30:32Michael Kennedy: that are maybe more well-known that you guys have done.
- 30:35David Flood: Sure.
- 30:35David Flood: Yeah, good.
- 30:36David Flood: So yeah, one of them is called the Amendments Project.
- 30:40David Flood: And this is, I didn't know this until I started working on this project, that there are, there
- 30:46David Flood: There have been thousands of, I think it's 22, at least 22,000 proposed amendments to
- 30:52David Flood: the United States Constitution that never went anywhere.
- 30:56David Flood: And so kind of the goal of this project is to show that there have been lots of attempts
- 31:02David Flood: to amend the Constitution, but actually the Constitution is frozen.
- 31:06David Flood: I mean, it's not actually amendable anymore, at least not in the politics of any time recently.
- 31:12David Flood: So this is a database.
- 31:14Michael Kennedy: I cannot imagine a situation where the U.S. Constitution gets amended.
- 31:19Michael Kennedy: It has to be unanimous across all the states, right?
- 31:21Michael Kennedy: Is that right?
- 31:22Michael Kennedy: I can't remember.
- 31:23Michael Kennedy: I don't know.
- 31:23David Flood: I remember off the top of my head if it has to be unanimous,
- 31:25David Flood: but it certainly has to be across party lines.
- 31:28Michael Kennedy: Yeah, it's got to be pretty darn close if it's not at all.
- 31:32Michael Kennedy: It's like time travel or travel to speed of light.
- 31:36Michael Kennedy: Could be theoretically possible.
- 31:38Michael Kennedy: Probably not going to happen.
- 31:40David Flood: No, it's hard to see.
- 31:41David Flood: It's hard to see.
- 31:42David Flood: Yeah.
- 31:42David Flood: So this is from a historian at Harvard.
- 31:46David Flood: And so it's a database of all and the full text from all of these amendments.
- 31:53David Flood: And, you know, it's from the public's point of view, it's a Postgres full text vector search interface for finding and filtering through on all of the different amendments that have been proposed.
- 32:08David Flood: I love it.
- 32:08Michael Kennedy: Yeah, this is a nice looking site.
- 32:10David Flood: We work with a designer.
- 32:12Michael Kennedy: she's very good yeah of course like an agency would right yep yep nice so we'll
- 32:17Michael Kennedy: get a really pretty rich search interface and then off you go I have no idea even
- 32:22David Flood: what I would search for but yeah well you can always search for something
- 32:25David Flood: religious something abortion related there's gonna be lots of things there I
- 32:29Michael Kennedy: thought all those also like guns but like I don't want to go down I'm not sure I
- 32:32Michael Kennedy: even want to go down there right awesome though this looks super useful maybe
- 32:37Michael Kennedy: someday we'll have a functional government again we'll see let's let's
- 32:41Michael Kennedy: change it or maybe we'll go down and it's folklore like look at you so all right so yeah so another
- 32:45David Flood: really great uh project at least from a content point of view uh that's interesting um the research
- 32:51David Flood: that it's doing um is the fin folklore database um which so in in in celtic storytelling you know
- 33:01David Flood: um moms have been telling and telling stories to daughters and and and and people have been
- 33:08David Flood: telling stories for a very long time hundreds or a thousand years about um finn mcummel who is a
- 33:14David Flood: hero a hero from irish mythology some of it some of it based in you know historical events but it
- 33:21David Flood: goes back it goes back so far um so there are there's many hundreds or thousands of of of these
- 33:29David Flood: stories that have been spread and versions of these stories that have that have been told and
- 33:33David Flood: And so some of them are audio recordings where somebody like some researcher has gone out to an island off the coast of Scotland and recorded somebody telling their version of the hero of Finn and his band of heroes.
- 33:47David Flood: You know, they defend Scotland and Ireland from invaders and attackers.
- 33:53David Flood: Very exciting stories and stuff and a team of characters.
- 33:59David Flood: So there's audio recordings and then there's documents, like written documents that contain
- 34:05David Flood: these.
- 34:05David Flood: And so this is a database of kind of all of those all in one place with, on the public
- 34:11David Flood: side, a nice search interface for discovering them, you know, either using the map view or
- 34:18David Flood: searching.
- 34:18Michael Kennedy: Yeah, that's cool.
- 34:19Michael Kennedy: I got my map view for some random thing I searched about here.
- 34:22Michael Kennedy: Amazing.
- 34:23Michael Kennedy: But this is pretty interesting, all these different tellings and stuff.
- 34:26David Flood: Oh, and yeah, one of the big challenges with this project is that it's fully internationalized.
- 34:33David Flood: So it's available in English.
- 34:35David Flood: Everything is available in English, Scottish Gaelic, and Irish Gaelic, but that extends
- 34:40David Flood: into the database.
- 34:41David Flood: So usually people have multiple names recorded for them.
- 34:45David Flood: And so, yeah, you may have one person with any number of names in different languages,
- 34:51David Flood: sometimes more than one Scottish name, that kind of thing.
- 34:54David Flood: And so the data model on this one is quite messy, but sensible.
- 35:00David Flood: But yeah, it's quite a lot of different kinds of data to wrangle.
- 35:03David Flood: And then with all of the translations for each thing.
- 35:05Michael Kennedy: Yeah, that's wild.
- 35:06Michael Kennedy: It's not just, we need the user interface of this thing to translate about.
- 35:12Michael Kennedy: That's way more, right?
- 35:13David Flood: Yeah, yeah, it is that.
- 35:14David Flood: It is that.
- 35:15David Flood: And then it is also, yes, all the items in the database have a translation or can.
- 35:22Michael Kennedy: This portion of Talk Python To Me is brought to you by us.
- 35:25Michael Kennedy: I'm thrilled to announce a brand new app built for developers created by yours truly.
- 35:30Michael Kennedy: It's called Command Book.
- 35:32Michael Kennedy: You know that thing you do every morning?
- 35:34Michael Kennedy: Open up six terminal tabs, CD into this directory, activate that virtual environment,
- 35:39Michael Kennedy: run the server with --reload.
- 35:40Michael Kennedy: Now, CD somewhere else, start the background worker, another tab for Docker,
- 35:45Michael Kennedy: another one to tail production logs.
- 35:46Michael Kennedy: Every tab just says Python, Python, Python, Docker tail.
- 35:50Michael Kennedy: and you're clicking through them going,
- 35:52Michael Kennedy: which Python was that again?
- 35:53Michael Kennedy: Where my app is running?
- 35:55Michael Kennedy: Then sometime later, your dev server silently dies
- 35:58Michael Kennedy: because it tried to reload
- 35:59Michael Kennedy: while you're in the middle of a code edit,
- 36:01Michael Kennedy: unmatched brace, a half-written import or something.
- 36:04Michael Kennedy: Now you're hunting through tabs
- 36:05Michael Kennedy: to figure out which process crashed
- 36:07Michael Kennedy: and how to restart it.
- 36:08Michael Kennedy: My app, CommandBook,
- 36:10Michael Kennedy: gives all of these long-running commands a permanent home.
- 36:13Michael Kennedy: You save a command once,
- 36:15Michael Kennedy: the working directory, the environment,
- 36:17Michael Kennedy: pre-commands like git pull,
- 36:18Michael Kennedy: and from then on, you just click run.
- 36:20Michael Kennedy: You can even group commands together
- 36:22Michael Kennedy: to start and stop everything for a project
- 36:24Michael Kennedy: with a single click.
- 36:25Michael Kennedy: It also has what I call honey badger mode,
- 36:27Michael Kennedy: auto restart on crash.
- 36:29Michael Kennedy: So when your dev server goes down mid-reload,
- 36:32Michael Kennedy: command book just brings it right back up
- 36:34Michael Kennedy: and does so over and over until the code is fixed.
- 36:37Michael Kennedy: It also detects URLs from your output
- 36:39Michael Kennedy: so you're never scrolling through thousands of lines of logs
- 36:42Michael Kennedy: just to figure out how to reopen your web app.
- 36:44Michael Kennedy: And it shows you uptime, memory usage,
- 36:46Michael Kennedy: and all sorts of cool things about your process.
- 36:49Michael Kennedy: The whole thing is a native macOS app.
- 36:51Michael Kennedy: No Electron, no Chromium, just 21 megs.
- 36:54Michael Kennedy: And it comes with a full CLI.
- 36:55Michael Kennedy: So anything you've configured in the UI,
- 36:57Michael Kennedy: you can fire off from your terminal
- 36:59Michael Kennedy: with just a single command.
- 37:00Michael Kennedy: Right now it's macOS only,
- 37:03Michael Kennedy: but if there's enough interest,
- 37:04Michael Kennedy: I'll build a Windows version too.
- 37:05Michael Kennedy: So let me know.
- 37:07Michael Kennedy: Please check it out at talkpython.fm
- 37:09Michael Kennedy: slash command book app.
- 37:11Michael Kennedy: Download it for free,
- 37:12Michael Kennedy: level up your developer workflow.
- 37:14Michael Kennedy: The link is in your podcast player show notes.
- 37:16Michael Kennedy: That's talkpython.fm/command book.
- 37:19Michael Kennedy: I really hope you enjoy this new app that I built.
- 37:22Michael Kennedy: You want to work in the native language of the people who did that part of the folklore
- 37:26Michael Kennedy: or whatever, right?
- 37:27David Flood: Yeah, well, and people are still speaking those languages.
- 37:30David Flood: So people who would use this to, you know, like somebody may have heard a story from
- 37:34David Flood: their mom or dad and are now would like to find other versions of that story.
- 37:38David Flood: And they live in a part of Scotland where they speak Scottish Gaelic as their first language.
- 37:42David Flood: They can still access the site.
- 37:43Michael Kennedy: And then that mapping color history one, that's another one of the public ones that you said is pretty major.
- 37:49David Flood: Yeah, that's right.
- 37:50David Flood: Yeah.
- 37:50David Flood: So, yeah, that's a pigments database.
- 37:53David Flood: You can search by either English color names like blue and find all of these Asian paintings that have blue or a particular kind of pigment of how they made the blue.
- 38:04Michael Kennedy: Yeah, nice.
- 38:05Michael Kennedy: So what's the open source story?
- 38:08Michael Kennedy: You're creating all these apps, maybe some of these frameworks.
- 38:11Michael Kennedy: There's got to be some tools.
- 38:12Michael Kennedy: Is there a big desire or already an effort to have a lot of these things open source or is it too niche or is it just like this is the advantage of Harvard has is other universities don't get this?
- 38:27David Flood: No, it's something we talk about quite a bit.
- 38:30David Flood: Usually these things start, usually they start closed source during development.
- 38:35David Flood: And then we work with the faculty and we talk about how we can take, you know, like the repo for the web app, how we can take that public.
- 38:45David Flood: And so we've done that for a number of projects.
- 38:48David Flood: Not all of them are.
- 38:50David Flood: But the ideal is that they all make their way into the open, and especially when they become archived.
- 38:56Michael Kennedy: Sure.
- 38:56Michael Kennedy: Yeah, that's a good way to help them live on.
- 38:58Michael Kennedy: And they might even go into GitHub's Arctic Vault, which is crazy.
- 39:03Michael Kennedy: I don't know if people know about that out there, but GitHub has, quite a while ago, started taking copies of all of the repos and backing them up and storing them in the Arctic vault.
- 39:14Michael Kennedy: It's kind of cool.
- 39:15Michael Kennedy: I really, really, really hope we never need that, but it's kind of neat.
- 39:18David Flood: Yeah, me too.
- 39:20David Flood: Usually universities have their own archival system, so any important research data is usually part of that system as well.
- 39:30Michael Kennedy: I see.
- 39:30Michael Kennedy: Okay.
- 39:31Michael Kennedy: Yeah.
- 39:32Michael Kennedy: Obviously, right?
- 39:32Michael Kennedy: Like I'm just, I can't remember where it was.
- 39:34Michael Kennedy: It was somewhere, I think it was South Korea or Taiwan where like seven years of government
- 39:40Michael Kennedy: data got lost or something like that.
- 39:41Michael Kennedy: It was really, really bad recently.
- 39:43Michael Kennedy: There was a fire and I think they had backups, but maybe just into the building, you know,
- 39:47Michael Kennedy: like we'll put that out.
- 39:48Michael Kennedy: We'll back it up to the hard drive over here.
- 39:50Michael Kennedy: Not good.
- 39:51Michael Kennedy: No, not good.
- 39:52Michael Kennedy: You definitely want this stuff to survive.
- 39:54Michael Kennedy: I mean, academia has this history of like tomes that have survived the past and really,
- 40:00Michael Kennedy: really long lived information.
- 40:02Michael Kennedy: Right.
- 40:02Michael Kennedy: besides the Library of Alexandria or something like that, maybe.
- 40:05David Flood: That's what we want.
- 40:06David Flood: That's what we want.
- 40:07Michael Kennedy: We want it to, yeah, we want it to last.
- 40:09Michael Kennedy: Absolutely.
- 40:10Michael Kennedy: So maybe that's a good time to sort of talk about the trailing end.
- 40:14Michael Kennedy: I think there's a lot of interesting things going on here.
- 40:18Michael Kennedy: Just like you've run out of money, not because you actually run out of money.
- 40:23Michael Kennedy: The grant is done and you've either spent or given back or whatever
- 40:26Michael Kennedy: with the remaining little bits of money.
- 40:28Michael Kennedy: It's always a weird balance with research.
- 40:30Michael Kennedy: It's like, oh, we got $3,000 left on this research grant.
- 40:33Michael Kennedy: What are we going to do with it?
- 40:34Michael Kennedy: It's not like, oh, we're going to give it back.
- 40:35Michael Kennedy: We just didn't need it.
- 40:36Michael Kennedy: It's like, we're going to find a way to like fund a student to do a little more work or
- 40:41Michael Kennedy: whatever.
- 40:41Michael Kennedy: But eventually the grant is over.
- 40:43Michael Kennedy: That's right.
- 40:44Michael Kennedy: You've got some expensive app access to a big database because it needs a big search or
- 40:49Michael Kennedy: a lot of compute or something.
- 40:50David Flood: That's right.
- 40:52David Flood: Everything during, like, I mean, anything, anything that's a, that's a Django app.
- 40:56David Flood: We deploy to AWS using containers, which isn't the cheapest way to host anything.
- 41:05David Flood: But that's for the most part the Harvard way.
- 41:10David Flood: And it is robust and is reliable.
- 41:12David Flood: And we don't have a DevOps person on call on the weekend to rescue one of these apps.
- 41:22David Flood: So having them reliable is good.
- 41:25David Flood: Okay, so it's on AWS and paying for the containers,
- 41:30David Flood: paying for that Elasticsearch cluster,
- 41:33David Flood: the RDS Postgres database.
- 41:36David Flood: Okay, well, even if somebody wants to start paying
- 41:38David Flood: for that out-of-pocket,
- 41:40David Flood: all of those little services,
- 41:41David Flood: they add up to enough that we need to do something
- 41:44David Flood: when the project hits end of life.
- 41:46David Flood: And so our gold standard that we've developed so far
- 41:50David Flood: is asking, can this become a static website?
- 41:55David Flood: Can we bake this out into all HTML files
- 41:59David Flood: and acknowledge that there will be some trade-offs?
- 42:01David Flood: We will trade off some searching.
- 42:04David Flood: You know, it's not gonna have Elasticsearch.
- 42:06David Flood: Doesn't mean that it won't have any search though.
- 42:08David Flood: So we'll trade out Elasticsearch
- 42:10David Flood: and it'll be very difficult to add new data,
- 42:13David Flood: but that's okay because it's being archived.
- 42:15David Flood: So can we get it into a static site?
- 42:18David Flood: And that's challenging depending on how you've set it up.
- 42:20David Flood: So we now have projects where we set them up from the beginning to be archivable like this.
- 42:26David Flood: And one of them is called Water Stories.
- 42:29David Flood: And it was a companion to an art installation at the Radcliffe Institute on the Harvard campus.
- 42:36David Flood: And so this was this live site during the duration of the art installation where people could come in and add stories that they had about water onto an iPad.
- 42:46David Flood: And then those went up to our database.
- 42:49David Flood: we built that with something called Django bakery which if you opt in and you use all of their
- 42:54David Flood: class-based views the way that they're meant to be used then you can bake this out into static files
- 43:00David Flood: when you're done very low effort that was perfect that is such a cool idea and mad props to them for
- 43:05Michael Kennedy: ASCII art logos come on now I feel like that should be in the view source if it's not but
- 43:11Michael Kennedy: this is such a cool idea because you can you can just take a working site you guys are a Django
- 43:17Michael Kennedy: shop. So you have a lot of your sites are written in Django and you just go make it static, right?
- 43:22David Flood: Essentially. Yes. And, and what's, what's, what's really great about it is if they wanted to make
- 43:27David Flood: a change and they have, they have asked since we, since we made it static, they've asked for a
- 43:31David Flood: couple of changes. So locally, I just Docker compose up this whole application, make the change
- 43:37David Flood: in the Django admin and rebake the site. And so it's, it can still be updated. Something,
- 43:42Michael Kennedy: if you've never tried this, like something like, Hey, can we just add one more menu item?
- 43:47Michael Kennedy: And you're like, no, no, no, we're not adding the menu item because you want that.
- 43:50Michael Kennedy: That means we're changing 7,300 pages because they all bake in the whole HTML.
- 43:56Michael Kennedy: Right?
- 43:56David Flood: Exactly.
- 43:57David Flood: Yeah, exactly.
- 43:58David Flood: But if that's in my, in my Django database and my SQLite file, then no problem at
- 44:02David Flood: all because then I just rebake it.
- 44:04Michael Kennedy: Yeah, yeah, exactly.
- 44:05Michael Kennedy: Absolutely.
- 44:06Michael Kennedy: So I think this is super neat.
- 44:09Michael Kennedy: There's also frozen, frozen flask.
- 44:13Michael Kennedy: If I could get rid of all the ads, I do not need a Yeti thing, whatever that is.
- 44:17Michael Kennedy: the glass, not the mythical thing, but frozen flask, which does a similar thing for flask
- 44:25Michael Kennedy: apps. If you're a flask person probably would work with court. Don't know for sure, but probably.
- 44:30Michael Kennedy: So that's a pretty interesting idea as well. throw that in there. but also what else?
- 44:37Michael Kennedy: Also you talked about search, right? That can be, can be such a problem. And I'm a huge fan of your
- 44:45Michael Kennedy: recommendation here with a page find. Tell us about page find. So this has been, I think it's been a
- 44:50David Flood: bit of a game changer in how functional one of these archived sites can remain. So we're actually
- 44:56David Flood: in the process of that amendments website that searches across 22,000 full texts of amendments.
- 45:04David Flood: We are in the process of sunsetting that, and that will become a static site. And for that search,
- 45:09David Flood: we already have an internal demo that proves that we can replace that Postgres full search
- 45:16Michael Kennedy: with PageFind. You lose vector search. Yeah. You've kind of got to get really
- 45:22Michael Kennedy: true keyword matching. Yeah. Yeah, that's right. But you still get filtering. I mean,
- 45:27David Flood: and really faceting and filtering is when it comes to discovery of things, I mean, I find
- 45:34David Flood: that's really what's useful. So filtering these amendments by state or by the Congress that was
- 45:40David Flood: active at the time or by the person who co-wrote it. All of those are totally great in PageFind.
- 45:50David Flood: And the keyword search is just fine in PageFind. One of the things I really like about it is that
- 45:55David Flood: it takes your index and it chops it up into lots of little files that can just fly across the
- 46:00David Flood: network. So it's a very fast search. It's not a huge network load, even if your index is
- 46:07David Flood: initially very large. And it essentially cuts it up somewhat alphabetically. So if your search
- 46:14David Flood: starts with T, or I should say a better word for audio, if it starts with W, then it will load up
- 46:20David Flood: the index for words that start with W and fly that over the network instead of the whole thing.
- 46:26David Flood: So it's pretty slick and it has a great Python API.
- 46:29David Flood: So to do the proof of concept for the amendments search,
- 46:33David Flood: I just took a database dump and then manually indexed with a Python script into PageFind.
- 46:40Michael Kennedy: Wait, there's a Python API for PageFind?
- 46:43David Flood: Yeah. So the way PageFind works, I should have said that, is the way most people will use it
- 46:48David Flood: is by normally PageFind consumes HTML. So you give it access to your dist folder.
- 46:56Michael Kennedy: Oh, okay.
- 46:57David Flood: And then it crawls through all of your HTML files.
- 47:00David Flood: And you can do great things like adding little HTML tags that are just for PageFind,
- 47:05David Flood: that give it the filtering ability, or that you want to sort by something.
- 47:09David Flood: And so that's great.
- 47:11David Flood: Or you can just call PageFind from Python or from TypeScript and just build that index manually.
- 47:18David Flood: Well, thanks a lot, David.
- 47:19Michael Kennedy: I have another thing I've got to go research.
- 47:21Michael Kennedy: This is awesome.
- 47:22Michael Kennedy: I'm a huge fan of PageFind, as I said.
- 47:24Michael Kennedy: on my personal website, mkennedy.codes,
- 47:27Michael Kennedy: is just a pure stat.
- 47:29Michael Kennedy: It starts in Markdown and ends up in HTML.
- 47:31Michael Kennedy: But if you add Pagefind in, you get a super rich,
- 47:34Michael Kennedy: if you want to just know, you want to talk about,
- 47:36Michael Kennedy: like what was about Docker,
- 47:37Michael Kennedy: it shows you really nice results,
- 47:40Michael Kennedy: pulling out the different parts of the page
- 47:42Michael Kennedy: and sections that talk about it,
- 47:43Michael Kennedy: like the headers and then what is said.
- 47:45Michael Kennedy: And it even does like sub, sub word,
- 47:48Michael Kennedy: you know, like you just type doc,
- 47:50Michael Kennedy: it finds all the words that match that.
- 47:52Michael Kennedy: And what I really like about it is a couple of things
- 47:54Michael Kennedy: it's instant. It basically is like nearly instant. If you type a few things, it gets way faster
- 47:59Michael Kennedy: because it's pulling down. And if you go and look in the network console here and you type
- 48:05Michael Kennedy: something, you can see that it's actually pulling in these little tiny fragments, which this one's
- 48:10Michael Kennedy: coming off disk cache in three milliseconds, right? But it breaks your index into a bunch of very small
- 48:16Michael Kennedy: page find fragments that I think it's like, it starts with anything that starts with the word
- 48:21Michael Kennedy: DO. These are all the prebuilt results and stuff like that. Right.
- 48:25Michael Kennedy: That's right. That's right.
- 48:26Michael Kennedy: Yeah. That's super cool.
- 48:27David Flood: Yeah. One of our open source projects that, that we maintain is a view of a
- 48:34David Flood: Vue.js component library for Pagefind so that we can style it and reuse it
- 48:39David Flood: across different projects.
- 48:41David Flood: Oh, that's awesome. I love it.
- 48:42Michael Kennedy: Yeah. I think this really unlocks it.
- 48:44Michael Kennedy: And I mean, you go to so many, so many sites, like their documentation or just
- 48:48Michael Kennedy: their web app in the search is so bad.
- 48:51Michael Kennedy: You type something and it's like thinking, spinning, spinning, spinning, spinning.
- 48:57Michael Kennedy: And then like five seconds later, it gives you kind of janky results.
- 49:00Michael Kennedy: And if you just like throw a Pagefind in there, it's, you can't type fast enough to
- 49:05Michael Kennedy: outrun the results.
- 49:05Michael Kennedy: You know what I mean?
- 49:06David Flood: No, that's right.
- 49:07David Flood: Yeah.
- 49:07David Flood: Too many static site search solutions, they use like a, like a JSON blob that you, that
- 49:12David Flood: you have to pull down and, and then iterate through.
- 49:15Michael Kennedy: You know, what's worse.
- 49:16Michael Kennedy: and I see this a lot, would be if you go to google.com
- 49:21Michael Kennedy: and then you would say effectively site colon whatever
- 49:24Michael Kennedy: and then you search Docker, right?
- 49:26Michael Kennedy: They basically pull that.
- 49:29Michael Kennedy: You know, they just say search this
- 49:30Michael Kennedy: and you just get Google results for your site.
- 49:33Michael Kennedy: And obviously it's, I mean, Google's fine, but it's just.
- 49:36David Flood: No, I find that unusable, really.
- 49:38Michael Kennedy: I do too.
- 49:38Michael Kennedy: It really, you're like, ah, geez.
- 49:41Michael Kennedy: But now I'm super excited to realize
- 49:43Michael Kennedy: I can do that from my dynamic content as well.
- 49:46Michael Kennedy: So with the Python integration.
- 49:48Michael Kennedy: OK, nice.
- 49:51Michael Kennedy: What about something truly static?
- 49:53Michael Kennedy: Have you looked at Hugo and some of the other type of things?
- 49:56David Flood: Sure.
- 49:57David Flood: So when I see you've even got the tab up for the SUMEB project,
- 50:02David Flood: which is-- that's essentially a database of many, many specimens
- 50:09David Flood: taken from the SUMEB mine.
- 50:11David Flood: So in the--
- 50:12David Flood: Oh, it is.
- 50:13David Flood: Yeah, yeah, it is.
- 50:13David Flood: So if you click on Minerals database,
- 50:16David Flood: you open up that search interface and that's powered by PageFind.
- 50:19David Flood: Oh, this is?
- 50:21David Flood: Yes.
- 50:22David Flood: I forget what I was...
- 50:23David Flood: I see.
- 50:24David Flood: You guys even hooked into...
- 50:26Michael Kennedy: I was thinking just like pure static, like Hugo, like...
- 50:30David Flood: Oh, yes. Yes. Yes.
- 50:31David Flood: So this is an Astro site.
- 50:33David Flood: So for this website, we have this as an Astro site so that we have a little...
- 50:37David Flood: Because with Astro, they make it so easy to pull in like view components.
- 50:42David Flood: So like our Pagefind is a custom Vue.js component library with Astro.
- 50:47David Flood: You can use React components, you can use the view components, but what it does is it's just
- 50:52Michael Kennedy: a static site generator. Fantastic. So a little bit more designable
- 50:57Michael Kennedy: than like Hugo or something. Here's your markdown file. Good luck with that.
- 51:00David Flood: Yeah. I love Hugo though. Yeah. I use Hugo for different personal sites here and there,
- 51:05David Flood: and it's just so fast and easy to get up and running. But yeah, it's great.
- 51:08Michael Kennedy: - Great, great when it's a good friend.
- 51:09Michael Kennedy: - That's what my website's written in, it's in Hugo.
- 51:12Michael Kennedy: But if I'm integrating with anything else,
- 51:14Michael Kennedy: I used to kind of like split it up,
- 51:15Michael Kennedy: like this part's Hugo and this part's like a Python app.
- 51:17Michael Kennedy: And it's pretty easy to get something
- 51:20Michael Kennedy: that'll take a bunch of markdown files
- 51:21Michael Kennedy: and just turn them into HTML
- 51:23Michael Kennedy: and just put a page template around that.
- 51:25Michael Kennedy: So I've kind of stepped away from mixing and matching that
- 51:29Michael Kennedy: as much as I used to.
- 51:30Michael Kennedy: So now if I got a static section of a dynamic site,
- 51:33Michael Kennedy: but that doesn't address,
- 51:34Michael Kennedy: has nothing to do with the archival side of things, right?
- 51:38Michael Kennedy: Because the idea is that the thing that I'm describing is gone on purpose.
- 51:42David Flood: That's right.
- 51:42Michael Kennedy: So you've got some, we've got Django Bakery.
- 51:46Michael Kennedy: I threw out Frozen Flask, and I'm sure there's a ton more that neither of us are aware of at the moment.
- 51:52David Flood: So Django Bakery was really good for that purpose.
- 51:56David Flood: And we're keeping our eyes open for projects that it's a good fit for.
- 52:01David Flood: But that was a pretty simple website.
- 52:03David Flood: It needed a dynamic backend, but it was quite straightforward.
- 52:06David Flood: And for Django Bakery, you have to opt into inheriting
- 52:10David Flood: from their class-based views.
- 52:11David Flood: I see.
- 52:12David Flood: So if you're doing, for example--
- 52:13Michael Kennedy: You've got to dig ahead of it, yeah.
- 52:15David Flood: Yeah, yeah, yeah, absolutely.
- 52:17David Flood: Yeah, hard to add retroactively.
- 52:18David Flood: Probably impossible.
- 52:20David Flood: Now, our other websites, like the fin example
- 52:23David Flood: and the mapping color example, those are APIs.
- 52:27David Flood: That's a Django API, Django REST framework for one,
- 52:30David Flood: GraphQL for the other.
- 52:32David Flood: One has a view front end, one has a React front end.
- 52:34David Flood: OK, well, Django Bakery just isn't
- 52:36David Flood: isn't going to work very well for like serializing JSON.
- 52:39Michael Kennedy: Yeah, it's like awesome.
- 52:40Michael Kennedy: Here's your unrendered JavaScript front end code
- 52:44Michael Kennedy: and it's just going to look empty or something.
- 52:45David Flood: Yeah.
- 52:46David Flood: So it is a good reason to consider using
- 52:49David Flood: like vanilla Django templates when possible,
- 52:52David Flood: like for that reason.
- 52:53David Flood: But those were, those were inherited from the vendors,
- 52:58David Flood: those two sites.
- 52:59David Flood: And we've made a lot of progress on those.
- 53:01David Flood: So, you know, what, what to do in that,
- 53:05David Flood: like in that situation, Django Bakery isn't an option. And those projects are not end of life
- 53:10David Flood: yet. So we have some time, but we're, we're, we're, so what we're doing is strategizing, okay,
- 53:15David Flood: how will we rescue them? How will we keep them alive once, once somebody needs to stop paying
- 53:20David Flood: for hosting? And we have, we have ideas. We have, I think there's, there's clever, interesting
- 53:26Michael Kennedy: things out there. We'll have to keep looking into it. There are some pretty interesting ideas. And
- 53:34Michael Kennedy: that ran in a container, you could just have WebAssembly, but still have it go, right?
- 53:41Michael Kennedy: Sort of a local loopback type of thing.
- 53:43David Flood: Yeah, I'm really interested in this one because it enables essentially the full functionality
- 53:51David Flood: of the live site to exist as what is just a static site.
- 53:55David Flood: So because of Pyodide and projects like PyScript, we can run Python in the browser and we can
- 54:03David Flood: run SQLite in the browser. And now we can even run Postgres in the browser with PGlite. So if
- 54:09David Flood: we can run all those things in the browser, then couldn't we have Django hosted right in the browser?
- 54:15David Flood: And you can. So there's a proof of concept that proves it's possible called Django WebAssembly.
- 54:23David Flood: And if you load this up, it'll let you log in to the Django admin. And you're not logging into
- 54:29David Flood: anybody's backend, you're logging into your own browser where this is running in a service worker.
- 54:36Michael Kennedy: Awesome. Look at that. Oh, hold on. I told me what the password was. Very secure.
- 54:40Michael Kennedy: Matt, password.
- 54:42David Flood: Well, it can be entirely insecure because, yeah, you're just, it's running right in your own browser.
- 54:47Michael Kennedy: Yeah, that's awesome. And here we are, Django admin. Incredible.
- 54:50David Flood: Yeah, so I'm pretty interested in this. You've got to convert an RDS Postgres database
- 54:55David Flood: into either SQLite or something like PGlite, but I think that's all doable.
- 54:59David Flood: So I think it's an exciting possibility.
- 55:02Michael Kennedy: Yeah, for sure.
- 55:03Michael Kennedy: I do think, so maybe you have a rich query system
- 55:07Michael Kennedy: that you're powering by your database
- 55:08Michael Kennedy: that's really heavy.
- 55:09David Flood: Exactly.
- 55:10Michael Kennedy: And it's got a bunch of data that's like,
- 55:11Michael Kennedy: here's all of our working data
- 55:13Michael Kennedy: that you might ask questions about.
- 55:15Michael Kennedy: Maybe you just convert that to page find
- 55:17Michael Kennedy: to help you find the pieces
- 55:18Michael Kennedy: and then just keep the operational data
- 55:20Michael Kennedy: and maybe like even a SQLite with like the Django RRM,
- 55:23Michael Kennedy: you can just switch the connection, keep talking to it.
- 55:25Michael Kennedy: I mean, there's possibilities
- 55:27Michael Kennedy: to just get something not too terrible
- 55:28Michael Kennedy: Well, it's not the same, but not that far off.
- 55:31David Flood: Yeah, exactly.
- 55:32David Flood: And then it goes on GitHub pages and it can live hopefully forever.
- 55:35David Flood: I mean, it feels like GitHub will last forever, but it'll last longer than funding will anyways.
- 55:41Michael Kennedy: It's definitely going to last longer than just something that we can't pay for anymore, right?
- 55:48Michael Kennedy: I don't know how long GitHub's going to be around for, I think a while, but you never know, right?
- 55:53Michael Kennedy: It seems like stuff's going to last forever, then it gets changed.
- 55:57Michael Kennedy: We had subversion.
- 55:59Michael Kennedy: Now it's completely gone, right?
- 56:00Michael Kennedy: Just 20 years, 15 years later, but still, I think 100% there.
- 56:05David Flood: Yeah.
- 56:05David Flood: But if somebody can, if something ever happened, somebody just needs to copy that,
- 56:09David Flood: that folder of HTML, CSS and JavaScript files and dump it into an S3 bucket or somewhere else.
- 56:15David Flood: And then it can continue living there.
- 56:17David Flood: So it's a good option.
- 56:19Michael Kennedy: It's a great option.
- 56:20Michael Kennedy: It's a really, really good option.
- 56:21Michael Kennedy: I mean, I guess one of the long-term concerns might be what if the WebAssembly standard changes so much that it's not supported anymore?
- 56:31Michael Kennedy: But you could probably bite-wise convert it if you had to, you know, like somebody would probably be able to create one.
- 56:37David Flood: Yeah, that would be unfortunate.
- 56:39David Flood: So I suppose if that happens, I mean, if that happens, yeah, we're booting up one of these projects is like booting up an emulator for some old DOS game.
- 56:49Michael Kennedy: Right, right.
- 56:49Michael Kennedy: Well, I mean, I guess let's think about this for a second.
- 56:52Michael Kennedy: Somebody got, oh gosh, what was the chain?
- 56:55Michael Kennedy: This is the whole, JavaScript, the PyCon talk where got like Firefox
- 57:04Michael Kennedy: compiled into, not WASM, into, asm.js or something like that.
- 57:10Michael Kennedy: So it was run like Chrome was running Firefox, which was running, I think
- 57:14Michael Kennedy: doom, which was also asm.js.
- 57:17Michael Kennedy: If we can do that, we could get something that would run, that would read old Web
- 57:22Michael Kennedy: Assembly into new WebAssembly if it really mattered to the world.
- 57:24Michael Kennedy: Absolutely.
- 57:25Michael Kennedy: Yeah.
- 57:26David Flood: Especially if it's in a public repo that people who care about the data can,
- 57:30David Flood: can rescue it somehow.
- 57:31Michael Kennedy: Yeah.
- 57:32Michael Kennedy: What about like a virtual machine?
- 57:34Michael Kennedy: You know, I agree.
- 57:35Michael Kennedy: Yeah, absolutely.
- 57:36Michael Kennedy: Could have saved me some, take a snapshot of Ubuntu LTS, some version,
- 57:42Michael Kennedy: and just what are we going to do?
- 57:44David Flood: Everything we do is Dockerized.
- 57:46David Flood: Everything is in a container.
- 57:47David Flood: So in the worst case scenario, we could give somebody the image, and they could run it if
- 57:51David Flood: they have Docker.
- 57:53David Flood: I think that's a nice peace of mind to know that no matter what, something will be able
- 57:57David Flood: to run this container.
- 57:59David Flood: And even in, I don't know if you've used GitHub, what is it called, Codespaces.
- 58:05David Flood: I archived one project.
- 58:07David Flood: It was kind of dramatic and sudden that it needed to be archived, so without much time
- 58:12David Flood: to do anything.
- 58:13David Flood: And it was a Ruby on Rails project.
- 58:15David Flood: And I'm not a Rails developer, but I
- 58:18David Flood: was able to get it archived in a way
- 58:19David Flood: that anybody could, with one command,
- 58:23David Flood: go to the repo on GitHub and boot it up in Codespaces
- 58:27David Flood: and then have it live running from their Codespace.
- 58:30Michael Kennedy: And so that works too.
- 58:32Michael Kennedy: Very cool.
- 58:32Michael Kennedy: I think as WebAssembly grows, there'll
- 58:35Michael Kennedy: be more possibilities for these types of things.
- 58:38Michael Kennedy: Yeah, amazing.
- 58:39Michael Kennedy: I'm pretty excited about PageFind having a Python API.
- 58:42Michael Kennedy: didn't realize that. So I'm going to be doing something with that for sure. So what else?
- 58:46Michael Kennedy: Let me ask you one more thing before I kind of let you wrap up with some final thoughts here.
- 58:51David Flood: What about AI? Oh, that's a good question. So AI, I mean, there's like, in my story,
- 58:58David Flood: there's like one interesting part of AI, which is that I got started and self-learned everything I
- 59:04David Flood: needed to about software development to begin doing this right before ChatGPT really came on
- 59:10Michael Kennedy: was able to do real programming yeah you're like four years of legit programming before right so i
- 59:17David Flood: think i mean so i was thinking i was thinking when i was thinking about how i got into it i thought
- 59:21David Flood: what if i was four years later starting my phd and wanting to do these tools um i would have been
- 59:28David Flood: able to accomplish what i needed to for my research without acquiring the technical skills and that
- 59:34Michael Kennedy: would have been that's a good thing i'm not sure if that's good about it it could be both i would
- 59:37David Flood: would have thought it was a good thing. I would have thought it's a good thing. But in my hands
- 59:43David Flood: now, like a software engineer, AI is more powerful in my hands now than it would have been then.
- 59:52David Flood: So I can make it work for me. Yeah, I can make it work for me in a way that I couldn't have been
- 59:57David Flood: able to then. So I'm thankful for that, but it's something I think of. I don't want to say it's
- 1:00:02David Flood: necessarily a bad thing, but it definitely marks a difference, a difference in time between other
- 1:00:07David Flood: people who are maybe wanting to get into digital humanities, they're humanities researchers. They
- 1:00:13David Flood: want to add some digital tools. You know, I think this will kind of, this will probably knock people
- 1:00:18David Flood: off of the more technical path because it's not needed. I think it will too. And I think that that
- 1:00:22Michael Kennedy: might be a negative. When you were telling me your story originally, I was thinking kind of like,
- 1:00:27Michael Kennedy: how neat is it that you didn't sign up for, and the people you're working with probably didn't
- 1:00:32Michael Kennedy: intend to sign you up for learning true software development.
- 1:00:36Michael Kennedy: But look at this cool and interesting job that you now have that you never
- 1:00:41Michael Kennedy: would have imagined.
- 1:00:42Michael Kennedy: I'm sure when you signed up for your PhD, you're like, you know what I'm
- 1:00:44Michael Kennedy: going to do when I get my PhD, I'm going to go X, Y, like, I'm going to
- 1:00:47Michael Kennedy: join the Darth program.
- 1:00:48Michael Kennedy: Like, no, probably not.
- 1:00:49Michael Kennedy: Right.
- 1:00:50Michael Kennedy: But here you are.
- 1:00:51Michael Kennedy: And I think that's actually a really interesting knock on effect for a lot
- 1:00:54Michael Kennedy: of researchers and people in grad schools, they're kind of put into this
- 1:00:59Michael Kennedy: programming adjacent type of thing.
- 1:01:01Michael Kennedy: You know, and a lot of folks sort of are like, actually, that's pretty interesting.
- 1:01:04Michael Kennedy: I'm going to kind of lean into that.
- 1:01:06Michael Kennedy: And I think AI might knock, like you said, knock people off that path to some degree.
- 1:01:11David Flood: Yeah, yeah, definitely.
- 1:01:12David Flood: So that's just like one part of the AI story.
- 1:01:15David Flood: The other one is that, like how we use it.
- 1:01:18David Flood: It's great for data extraction, pulling data out of different, you know, to make these
- 1:01:25David Flood: search interfaces more powerful, to extract different data from them.
- 1:01:30David Flood: That's just one example where it's been handy.
- 1:01:33David Flood: We're looking for ways that it can really empower faculty.
- 1:01:39David Flood: We're still very much in the exploration phase of how we can use it and provide it to faculty as a digital humanities tool.
- 1:01:48Michael Kennedy: Sure. I was thinking pretty much when I asked the question of it, it's just like two parts.
- 1:01:52Michael Kennedy: One, how is it? Are you guys using it to help take projects?
- 1:01:56Michael Kennedy: Well, that would have been a month. No, actually, it's three days.
- 1:01:58Michael Kennedy: You know what I mean?
- 1:02:00Michael Kennedy: that. And then if people are asking, you know, a professor comes along and says, and we want our
- 1:02:05Michael Kennedy: own custom AI thing, or we're using Harvard's internal one that we're allowed to use, but we
- 1:02:13David Flood: won't be able to use it once the grant runs out. You know what I mean? Yeah. Yeah. I think one,
- 1:02:17David Flood: one good example of this type of thing is that what we're starting to get is faculty who are
- 1:02:23David Flood: vibe coding and now, and we are going to teach them. We're going to teach them how to do it.
- 1:02:28David Flood: You know, instead of having them.
- 1:02:31David Flood: Yeah, it's absolutely a skill.
- 1:02:32David Flood: Yeah, no, it is.
- 1:02:33David Flood: It is.
- 1:02:34David Flood: Instead of copy and pasting from ChatGPT into VS Code, having them learn Copilot, maybe even having them download Cursor.
- 1:02:43David Flood: Download some real dedicated tools to get this done to make them more productive.
- 1:02:48David Flood: So, yeah, educating about how to do it is one thing.
- 1:02:53David Flood: You asked if we're using it.
- 1:02:54David Flood: We have access to Copilot.
- 1:02:58David Flood: and that's great. I can't say that we've shipped anything in three days instead of a month yet,
- 1:03:04David Flood: but one anecdote is that right now I'm doing some really interesting processing of music audio files,
- 1:03:13David Flood: and somebody asked to have a beatboxer if I could chop that file up so that all of the individual
- 1:03:19David Flood: sounds that the beatboxer makes are identified in a file. And so I'm using some music libraries,
- 1:03:26David Flood: Python library called Librosa. There's some complicated math in there. It's a little bit
- 1:03:32David Flood: too much for me. It's no problem for Claude. Claude knows how to do that math. And then,
- 1:03:36David Flood: and I use my expertise to string it together to get a good output.
- 1:03:39Michael Kennedy: Yeah. Awesome. You got time for one more quick question before we'll clap things up.
- 1:03:44Michael Kennedy: For sure.
- 1:03:45Michael Kennedy: Raymond out there, Raymond Yees asks, it says, it'd be good to hear how Harvard uses containers on AWS
- 1:03:51Michael Kennedy: and its reliability. It's reliable, not cheapest way to host things. Are you thinking about moving
- 1:03:56Michael Kennedy: moving that or is it not that much? Okay, I'll tell you about a failed experiment.
- 1:04:03David Flood: We were using ECS and we're still using ECS. So that's AWS's main, you know, it's not Kubernetes,
- 1:04:11David Flood: but it's one step down with their horizontal scaling container clusters. And I wanted to move
- 1:04:17David Flood: us onto a single EC2 instance because our projects are popular, but they're not so popular that we
- 1:04:23David Flood: actually have to worry about horizontal scaling.
- 1:04:25Michael Kennedy: Right.
- 1:04:26Michael Kennedy: It's not like it's front page in New York Times.
- 1:04:30Michael Kennedy: I guess it probably could be.
- 1:04:31Michael Kennedy: But even so, for the static sites, they probably still can take it.
- 1:04:35David Flood: Yeah.
- 1:04:35David Flood: So I priced it out and I got an example deployed, an example project deployed, and was able
- 1:04:42David Flood: to confirm that it would indeed be much cheaper.
- 1:04:45David Flood: And it was deployed in a similar way using AWS CDK.
- 1:04:49David Flood: So it's all infrastructure is code all the way down.
- 1:04:52David Flood: But it turns out there's all kinds of compliance.
- 1:04:54David Flood: When you are in charge of the VM at like a big university,
- 1:04:58David Flood: or I'm sure any corporate setting,
- 1:05:00David Flood: if you are in charge of the VM and the OS on it,
- 1:05:04David Flood: then you have to know that you have the latest patches in.
- 1:05:07David Flood: You have to know that you have latest Ubuntu.
- 1:05:09David Flood: And then there's other things,
- 1:05:12David Flood: different observability things
- 1:05:13David Flood: that you have to have in place
- 1:05:15David Flood: that are not usually required
- 1:05:17David Flood: if you're running in a container cluster like ECS.
- 1:05:21David Flood: So it ends up being a lot less work and much easier to achieve compliance if we run containers
- 1:05:28David Flood: or some other serverless thing.
- 1:05:31David Flood: If I run all my personal projects, they all run in a single virtual machine, but we're
- 1:05:37David Flood: running in containers.
- 1:05:38Michael Kennedy: Yeah.
- 1:05:38Michael Kennedy: Yeah.
- 1:05:39Michael Kennedy: And you've got all the SOC 2 stuff and all those different things, right?
- 1:05:42Michael Kennedy: Like there's layers.
- 1:05:43Michael Kennedy: Yeah, that's right.
- 1:05:44David Flood: Yeah.
- 1:05:44David Flood: I mean, I'll mention that, but what I didn't say is that in that 2019, when I started learning
- 1:05:50David Flood: Python. I discovered Talk Python almost immediately. And one of the first episodes that I listened to
- 1:05:55Michael Kennedy: was the other digital humanities. Cornelis van Lit. He was an awesome guest.
- 1:06:01David Flood: That's right. Yeah. And I thought that was great. And that was also a bit about manuscripts,
- 1:06:06David Flood: a little bit more on the image side than the text side. And I didn't understand everything
- 1:06:11David Flood: that everybody was saying, but I just, I kept tuning in. And I think because of that,
- 1:06:16David Flood: Because Talk Python was like this, you know, I've been remote working for most of my time.
- 1:06:22David Flood: And Talk Python has been kind of like that conversation with the open source community
- 1:06:27David Flood: that's been always in my ear.
- 1:06:28David Flood: And I think that made, you know, a difference, making me feel like I understood the software
- 1:06:34David Flood: landscape and like the developer culture and what was going on.
- 1:06:37David Flood: And then the different Python libraries and what was possible.
- 1:06:41David Flood: So to people who are interested in taking things in a more technical direction, I think
- 1:06:47David Flood: it's helpful just to find a few things like that, that give you an insight into that world.
- 1:06:53David Flood: And the more you listen to it, the more you start to hear the same acronyms and the same
- 1:06:59David Flood: things said enough that you start to feel like, okay, now you're part of the club.
- 1:07:03Michael Kennedy: I really appreciate that.
- 1:07:05Michael Kennedy: That's cool.
- 1:07:06Michael Kennedy: I've certainly had people reach out to me and say things that at first didn't make any
- 1:07:09Michael Kennedy: sense to me.
- 1:07:10Michael Kennedy: Like I've been listening for six weeks now
- 1:07:12Michael Kennedy: and it's starting to make sense what you're talking about.
- 1:07:14Michael Kennedy: Like, why have you been listening for six months
- 1:07:16Michael Kennedy: when it made no sense?
- 1:07:16Michael Kennedy: That's insane.
- 1:07:17Michael Kennedy: But a lot of people use listening to the podcast,
- 1:07:21Michael Kennedy: is it mine and others, as language immersion, right?
- 1:07:24Michael Kennedy: Like I could get Duolingo and I could learn Portuguese
- 1:07:28Michael Kennedy: or I could move to Brazil for a month.
- 1:07:30Michael Kennedy: You know what I mean?
- 1:07:31Michael Kennedy: And then I would really learn.
- 1:07:32Michael Kennedy: - Yeah, exactly.
- 1:07:33Michael Kennedy: - Right.
- 1:07:34David Flood: - Exactly.
- 1:07:34David Flood: No, I think there's truth to that.
- 1:07:36David Flood: And some of the things I did was, you know,
- 1:07:38David Flood: search through, like search the word deployment, because I'm trying to get my head around how to
- 1:07:43David Flood: deploy for the first time. And I just want to hear people talk about it. Like I could read about it.
- 1:07:47David Flood: I could read the tutorial, but I just want to hear people talk about deployment to get a sense of what
- 1:07:52Michael Kennedy: actual deployment sounds like. There's something really different when you're learning or trying,
- 1:07:57Michael Kennedy: even you're maybe an experienced programmer, but not in this particular area to hear a human
- 1:08:01Michael Kennedy: side of it, not just the docs, not a sterile. These are the four steps, but like, I love it.
- 1:08:08Michael Kennedy: I mean, it's probably why I created the show.
- 1:08:10Michael Kennedy: It's because I didn't hear those stories.
- 1:08:11Michael Kennedy: We got to tell those stories.
- 1:08:13Michael Kennedy: Awesome.
- 1:08:13Michael Kennedy: I appreciate that.
- 1:08:14Michael Kennedy: So super cool.
- 1:08:15Michael Kennedy: All right.
- 1:08:16Michael Kennedy: So if other people are listening, maybe one of your pieces of advice is keep listening.
- 1:08:21Michael Kennedy: You'll get there.
- 1:08:22David Flood: Yeah.
- 1:08:22David Flood: And if anybody is in the humanities and somehow found their way onto this episode with no technical experience,
- 1:08:30David Flood: I just would give the caution of, like, you know, the anecdote that if AI coding had been
- 1:08:37David Flood: around the way it is now when I was learning, I wouldn't be doing digital humanities at
- 1:08:43David Flood: Harvard.
- 1:08:43David Flood: I wouldn't have been able to get into this field.
- 1:08:46David Flood: I wouldn't have known about it.
- 1:08:47David Flood: So I guess just think about that when you're learning and applying new tools.
- 1:08:52Michael Kennedy: I don't really know what the right fix for that is.
- 1:08:55Michael Kennedy: That's a very challenging problem.
- 1:08:56Michael Kennedy: I mean, you can say I'm just literally not going to fire it up.
- 1:08:59Michael Kennedy: But I mean, we used to hunt through Stack Overflow and the web and over and over.
- 1:09:03Michael Kennedy: And if you're really stuck or you really don't understand, like they're good at explaining
- 1:09:06Michael Kennedy: stuff too.
- 1:09:07Michael Kennedy: You just got to really stay in a learner's mindset, not just press the easy button and
- 1:09:12Michael Kennedy: make this thing and move on.
- 1:09:13Michael Kennedy: Easier said than done.
- 1:09:14Michael Kennedy: Easier said than done.
- 1:09:15Michael Kennedy: So yeah, I want to leave this with kind of a thought about how much things like Python
- 1:09:22Michael Kennedy: and these tools and technology can really empower stuff that you wouldn't think is even
- 1:09:27Michael Kennedy: related, like understanding old manuscripts and how painting is connected or changed over time and
- 1:09:34Michael Kennedy: stuff, right? Those sound very much disjointed from tech and software, but they really are
- 1:09:40Michael Kennedy: superpowers that you can bring to your work, whatever your industry is. I know our field of
- 1:09:45Michael Kennedy: study, I know there's some sociologists out in the audience and I'm sure others as well.
- 1:09:50Michael Kennedy: All right. Final thoughts, David, close it out. You said it great. I mean, you know,
- 1:09:55David Flood: Just applying these technical tools to old questions, that is the core of digital humanities.
- 1:10:02Michael Kennedy: When I first started hearing about this, I thought, I really don't know how this ties
- 1:10:05Michael Kennedy: together.
- 1:10:05Michael Kennedy: And after seeing it a few times, I definitely see the power of it.
- 1:10:08Michael Kennedy: And I thank you for your time coming on.
- 1:10:11Michael Kennedy: Thank you for sharing your look and the look inside of your team and inside of a small piece
- 1:10:16Michael Kennedy: of Harvard.
- 1:10:17Michael Kennedy: I really like these kinds of episodes because it's hard to see this from the outside, right?
- 1:10:23Michael Kennedy: like you just see the results,
- 1:10:24Michael Kennedy: but you don't see like the inner workings of the team
- 1:10:27Michael Kennedy: and the motivation and stuff.
- 1:10:28Michael Kennedy: So thank you so much for being here.
- 1:10:31Michael Kennedy: And yeah, bye everyone.
- 1:10:33Michael Kennedy: This has been another episode of Talk Python To Me.
- 1:10:36Michael Kennedy: Thank you to our sponsors.
- 1:10:37Michael Kennedy: Be sure to check out what they're offering.
- 1:10:38Michael Kennedy: It really helps support the show.
- 1:10:40Michael Kennedy: Take some stress out of your life.
- 1:10:42Michael Kennedy: Get notified immediately about errors
- 1:10:44Michael Kennedy: and performance issues in your web
- 1:10:46Michael Kennedy: or mobile applications with Sentry.
- 1:10:48Michael Kennedy: Just visit talkpython.fm/sentry
- 1:10:51Michael Kennedy: and get started for free.
- 1:10:53Michael Kennedy: Be sure to use our code, talkpython26.
- 1:10:56Michael Kennedy: That's Talk Python, the numbers two, six, all one word.
- 1:11:00Michael Kennedy: This episode is brought to you by CommandBook,
- 1:11:03Michael Kennedy: a native macOS app that I built
- 1:11:05Michael Kennedy: that gives long-running terminal commands a permanent home.
- 1:11:08Michael Kennedy: No more juggling six terminal tabs every morning.
- 1:11:10Michael Kennedy: Carefully craft a command once,
- 1:11:12Michael Kennedy: run it forever with auto-restart,
- 1:11:14Michael Kennedy: URL detection, and a full CLI.
- 1:11:16Michael Kennedy: Download it for free at talkpython.fm/commandbook app.
- 1:11:19Michael Kennedy: If you or your team needs to learn Python,
- 1:11:22Michael Kennedy: We have over 270 hours of beginner and advanced courses on topics ranging from complete beginners to async code, Flask, Django, HTML, and even LLMs.
- 1:11:32Michael Kennedy: Best of all, there's no subscription in sight.
- 1:11:35Michael Kennedy: Browse the catalog at talkpython.fm.
- 1:11:37Michael Kennedy: And if you're not already subscribed to the show on your favorite podcast player, what are you waiting for?
- 1:11:42Michael Kennedy: Just search for Python in your podcast player.
- 1:11:44Michael Kennedy: We should be right at the top.
- 1:11:46Michael Kennedy: If you enjoy that geeky rap song, you can download the full track.
- 1:11:49Michael Kennedy: The link is actually in your podcast blur show notes.
- 1:11:51Michael Kennedy: This is your host, Michael Kennedy.
- 1:11:53Michael Kennedy: Thank you so much for listening.
- 1:11:54Michael Kennedy: I really appreciate it.
- 1:11:56Michael Kennedy: I'll see you next time.
- 1:12:08I'm out.