Latest / Talk Python To Me / #530: anywidget: Jupyter Widgets made easy
Transcript
- 0:00Michael Kennedy: For years, building interactive widgets in Python notebooks meant wrestling with toolchains, platform quirks, and a mountain of JavaScript machinery.
- 0:07Michael Kennedy: Most developers took one look and backed away slowly.
- 0:10Michael Kennedy: Trevor Manz decided that barrier did not need to exist.
- 0:13Michael Kennedy: His idea was simple.
- 0:15Michael Kennedy: Give Python users just enough JavaScript to unlock the web's interactivity without dragging along the rest of the web ecosystem.
- 0:22Michael Kennedy: That idea became anywidget, and it's quickly becoming the quiet, connective tissue of modern interactive computing.
- 0:29Michael Kennedy: Today, we dig into how it works, why it's taken off, and how it might change the way we explore data.
- 0:35Michael Kennedy: This is Talk Python To Me, episode 530, recorded November 25th, 2025.
- 0:57Michael Kennedy: Welcome to Talk Python To Me,
- 0:59Michael Kennedy: the number one Python podcast for developers and data scientists.
- 1:03Michael Kennedy: This is your host, Michael Kennedy.
- 1:04Michael Kennedy: I'm a PSF fellow who's been coding for over 25 years.
- 1:08Michael Kennedy: Let's connect on social media.
- 1:10Michael Kennedy: You'll find me and Talk Python on Mastodon, Bluesky, and X.
- 1:13Michael Kennedy: The social links are all in your show notes.
- 1:16Michael Kennedy: You can find over 10 years of past episodes at talkpython.fm.
- 1:20Michael Kennedy: And if you want to be part of the show, you can join our recording live streams.
- 1:23Michael Kennedy: That's right.
- 1:24Michael Kennedy: We live stream the raw uncut version of each episode on YouTube.
- 1:27Michael Kennedy: Just visit talkpython.fm/youtube to see the schedule of upcoming events.
- 1:32Michael Kennedy: Be sure to subscribe there and press the bell so you'll get notified anytime we're recording.
- 1:37Michael Kennedy: Look into the future and see bugs before they make it to production.
- 1:40Michael Kennedy: Sentry's Seer AI Code Review uses historical error and performance information at Sentry
- 1:46Michael Kennedy: to find and flag bugs in your PRs before you even start to review them.
- 1:51Michael Kennedy: Stop bugs before they enter your code base.
- 1:53Michael Kennedy: Get started at talkpython.fm/seer-code-review.
- 1:57Michael Kennedy: And this episode is sponsored by JetBrains and the PyCharm team.
- 2:01Michael Kennedy: This week only through December 19th, 2025, get 30% off of PyCharm Pro, including renewals,
- 2:08Michael Kennedy: and PyCharm will donate all the proceeds to the Python Software Foundation.
- 2:12Michael Kennedy: Support the PSF by getting or renewing PyCharm.
- 2:15Michael Kennedy: Visit talkpython.fm/pycharm dash PSF dash 2025 and use the code STRONGERPYTHON.
- 2:22Michael Kennedy: Both of these are in your podcast player show notes.
- 2:25Michael Kennedy: Trevor, welcome to Talk Python To Me. Awesome to have you here. Thanks for coming.
- 2:29Trevor Manz: Yeah, thanks for having me, Michael.
- 2:30Michael Kennedy: We're going to talk about building Lego blocks for data scientists. Is that maybe a good way to put it?
- 2:36Michael Kennedy: Yeah, definitely.
- 2:37Michael Kennedy: Yeah, so we're going to talk about your project, AnyWidget, which is a super cool project that allows people to build more adaptable, more reusable widgets,
- 2:48Michael Kennedy: rather than just saying I'm going to build it for Jupyter or Marimo or whatever.
- 2:52Michael Kennedy: but I'm going to build something that can be used broadly through your platform and a lot simpler
- 2:57Michael Kennedy: deployment as well. So I know a lot of people out there are excited. Not everyone necessarily wants
- 3:02Michael Kennedy: to build widgets, but this also makes more widgets available for people, right? So super cool project.
- 3:07Michael Kennedy: Yeah. And before we get into that, of course, maybe just tell us a bit about yourself.
- 3:12Trevor Manz: Yeah. So I'm Trevor. I'm a software engineer at Marimo, but prior to being at Marimo, I was
- 3:18Trevor Manz: doing my PhD in data visualization at Harvard Medical School. So I got into this whole like
- 3:25Trevor Manz: Python web world from working on tools for biological scientists to explore like large
- 3:32Trevor Manz: genomics or spatial genomic data sets. That is a super interesting topic. I'm sure
- 3:38Michael Kennedy: there were some really niche things you had to build, right? Like, you know, we have this crazy
- 3:43Michael Kennedy: research machine. There's three of them in the world and here's the data that comes out of it.
- 3:48Michael Kennedy: how do I put that into notebooks or whatever, right?
- 3:51Trevor Manz: Yeah, yeah, exactly.
- 3:53Trevor Manz: And it's funny you mentioned that.
- 3:55Trevor Manz: I think starting off in more like the visualization side,
- 3:57Trevor Manz: we'd build these very bespoke and custom applications
- 4:00Trevor Manz: for looking at large biological data sets.
- 4:03Trevor Manz: And then I think a motivation for me was realizing
- 4:05Trevor Manz: a lot of the folks that I was working with
- 4:07Trevor Manz: to build these tools for worked in Python
- 4:10Trevor Manz: and worked in notebooks specifically.
- 4:11Trevor Manz: And so there was sort of this gap between the research
- 4:14Trevor Manz: that we were doing to build these specialized tools
- 4:16Trevor Manz: and trying to meet users where they were at
- 4:18Trevor Manz: to actually use those tools in their research
- 4:20Trevor Manz: and as a part of their data exploration workflows.
- 4:23Michael Kennedy: - And this was your PhD work?
- 4:24Michael Kennedy: - Yes, yeah, this was my PhD work.
- 4:26Michael Kennedy: - Incredible.
- 4:27Michael Kennedy: So I'm sure it wasn't just Python.
- 4:30Michael Kennedy: - No, so--
- 4:31Michael Kennedy: - What was involved with it?
- 4:32Trevor Manz: - So yeah, I'd say the research community,
- 4:36Trevor Manz: at least in bio, is sort of split between R and Python,
- 4:39Trevor Manz: but specifically some of our closest collaborators
- 4:41Trevor Manz: were in the Python ecosystem.
- 4:43Trevor Manz: And then my team was building a lot of user interfaces
- 4:46Trevor Manz: for visual exploration of data sets.
- 4:49Trevor Manz: And I think this notebook sort of became this space
- 4:52Trevor Manz: and specifically Python notebooks
- 4:54Trevor Manz: where you can really blend those programmatic
- 4:57Trevor Manz: and user interfaces together.
- 4:59Trevor Manz: That's sort of why I centered on trying to solve
- 5:01Trevor Manz: some of the rough edges
- 5:03Trevor Manz: about bringing these interactive tools inside of notebooks.
- 5:07Michael Kennedy: - That's cool.
- 5:08Michael Kennedy: Did you do any other platforms?
- 5:11Michael Kennedy: I'm thinking like Unity or Unreal,
- 5:16Michael Kennedy: a real engine for like flying through data or what else did you all do?
- 5:20Trevor Manz: Yeah, there were some folks on my team that ended up or are currently working in more like spatial,
- 5:25Trevor Manz: like AR, VR type scenarios.
- 5:27Trevor Manz: And that I think is based on the Unity engine.
- 5:30Trevor Manz: Most of my work was like web-based and we, and specifically, and we'll probably get into it.
- 5:34Trevor Manz: I think the web is just a really important platform to develop for in the sense that,
- 5:39Trevor Manz: I mean, we're recording right now in a web browser.
- 5:42Trevor Manz: It's a very capable platform that everyone sort of has an entry point to on some sort of device.
- 5:47Trevor Manz: And so developing for the web often means that you can reuse a lot of that application amongst different devices and in different contexts.
- 5:56Michael Kennedy: It's unbelievable what the web can do these days.
- 5:58Michael Kennedy: I made the comment before we started, like, I can't believe this is a web browser that we're building, that we're doing this live streaming, video sharing, local recording.
- 6:08Michael Kennedy: All this stuff is just like, it's so wild.
- 6:11Michael Kennedy: And I built an app recently that I'm using to kind of help out with some of the interview
- 6:14Michael Kennedy: stuff.
- 6:15Michael Kennedy: And it's on the web.
- 6:15Michael Kennedy: It just runs on my iPad.
- 6:17Michael Kennedy: I mean, it goes underappreciated some of the time, I think, of just how far you can push
- 6:22Michael Kennedy: it.
- 6:22Michael Kennedy: It's not just documents and Ajax.
- 6:25Trevor Manz: Yeah.
- 6:25Trevor Manz: Yeah.
- 6:26Trevor Manz: The fact that a version of Photoshop runs in the browser is pretty amazing.
- 6:30Trevor Manz: And Figma itself is all running in the web browser.
- 6:33Trevor Manz: So it's definitely a capable platform.
- 6:35Trevor Manz: But one thing it's not very good at is, or doesn't have the ecosystem for, is a lot of
- 6:40Trevor Manz: data work.
- 6:40Trevor Manz: And I think that that's really the big divide.
- 6:42Trevor Manz: So I see the web is really like
- 6:44Trevor Manz: one of the most accessible platforms
- 6:46Trevor Manz: for building like user interfaces and like applications.
- 6:50Trevor Manz: But then there's this whole other world,
- 6:52Trevor Manz: which is like tools that you actually do data science stuff in.
- 6:54Trevor Manz: And that is not the web whatsoever,
- 6:56Trevor Manz: but has like a similar amount of maturity
- 6:58Trevor Manz: in terms of being very ergonomic and good
- 7:00Trevor Manz: at doing that type of work.
- 7:02Michael Kennedy: - Right, and those two worlds meet in,
- 7:06Michael Kennedy: they meet in the web, right?
- 7:08Michael Kennedy: But the people doing the Python work, they aren't necessarily web developers.
- 7:13Michael Kennedy: You gave a talk a year ago about anywidget that I'll definitely link to.
- 7:18Michael Kennedy: And you have this graphic here like, okay, we've got the front end, which often is Jupyter.
- 7:25Michael Kennedy: Not always, as we'll see in a minute.
- 7:27Michael Kennedy: But often is Jupyter with the way you build for it is with all these web front end tools
- 7:32Michael Kennedy: that even me doing web development is a lot of times I'm like, what is this?
- 7:36Michael Kennedy: And why is it so complicated?
- 7:38Michael Kennedy: I just don't even know.
- 7:40Michael Kennedy: And I do web stuff all the time.
- 7:42Michael Kennedy: And then you've got the backend stuff
- 7:43Michael Kennedy: where Python people live doing NumPy,
- 7:46Michael Kennedy: Polars, Matplotlib, et cetera.
- 7:48Michael Kennedy: Do you want to riff on that challenge a little bit?
- 7:50Michael Kennedy: Because I know your project is really here
- 7:52Michael Kennedy: to kind of solve some of this disjointedness.
- 7:54Trevor Manz: Yeah, I think one interesting thing,
- 7:57Trevor Manz: like taking a step back,
- 7:58Trevor Manz: and I mentioned this in the talk that I gave a while back,
- 8:01Trevor Manz: but like the web and Python ecosystems
- 8:03Trevor Manz: have been around for almost the same exact amount of time.
- 8:06Trevor Manz: Like I think like the first webpage
- 8:07Trevor Manz: was around the same year that the first release of Python came out.
- 8:10Trevor Manz: And so they sort of have been evolving in their own respective,
- 8:15Trevor Manz: or developing their own respective ecosystems for that period of time.
- 8:18Trevor Manz: And then as the web became really this platform for building user interfaces,
- 8:22Trevor Manz: I think that some pretty visionary folks saw that you could connect
- 8:28Trevor Manz: these backend resources to these very interactive applications
- 8:31Trevor Manz: that could be developed very quickly.
- 8:34Trevor Manz: So over the years, these things that started off very far apart
- 8:36Trevor Manz: have now come very close together.
- 8:38Trevor Manz: And now with WebAssembly, sometimes it's just all the,
- 8:41Trevor Manz: like turtles all the way down,
- 8:43Trevor Manz: it's all actually running in the browser.
- 8:44Trevor Manz: So it's pretty amazing.
- 8:46Trevor Manz: But I think that there definitely is this friction.
- 8:49Trevor Manz: And one thing I've also noticed from being in both these,
- 8:51Trevor Manz: the web and Python ecosystems for so long
- 8:54Trevor Manz: is sort of these like ebbs and flows of like maturity
- 8:56Trevor Manz: or like places that need to catch up to one another.
- 8:59Trevor Manz: And so I came from definitely like the website originally.
- 9:03Trevor Manz: And there's a lot that I took for granted, I guess,
- 9:05Trevor Manz: and that ecosystem of tooling that for a while, I think,
- 9:09Trevor Manz: gave the language a very bad rap
- 9:11Trevor Manz: because it was sort of the scripting language that was invented,
- 9:13Trevor Manz: I think, famously in two weeks.
- 9:16Trevor Manz: And now people are trying to build applications in it.
- 9:18Trevor Manz: But over the years, there have been standards and things have matured.
- 9:23Trevor Manz: And actually, the web is very backwards compatible
- 9:25Trevor Manz: and has some of these properties that are kind of amazing
- 9:28Trevor Manz: for something that's been around for that long.
- 9:30Trevor Manz: And then I'd say in the last couple of years,
- 9:32Trevor Manz: we've seen a bunch of new developer tool work going into the Python ecosystem that in some part
- 9:39Trevor Manz: is also inspired by some of the tooling in the web ecosystem. So I love to see how these things
- 9:44Trevor Manz: go back and forth. And I think if you haven't checked in on the ecosystem for a while,
- 9:49Trevor Manz: you might think it isn't what it was five years ago as it is today. And one of the goals of AnyWidget
- 9:55Trevor Manz: is to try to demystify some of maybe those prior bad experiences folks had developing and just
- 10:01Trevor Manz: you know, get back to like opening up some HTML and writing some JavaScript and getting your Python
- 10:07Michael Kennedy: data in the browser. Yeah, absolutely. You know, I wonder, as you describe it being made in two
- 10:13Michael Kennedy: weeks, which I also think this is true, when it was made, I think, at Mozilla, right? Yeah. Anyway,
- 10:21Michael Kennedy: one of the JavaScript's real issues is it doesn't have a real numerical system, right? Everything is
- 10:28Michael Kennedy: afloat. That has a lot of problems for data science when it really, really has to be integers
- 10:33Michael Kennedy: or whatever, right? Like you need more control over the numbers. I wonder how much of Python's
- 10:39Michael Kennedy: benefit in the data science space originates from people going, JavaScript's super popular,
- 10:43Michael Kennedy: but can't do numbers there. I do science, can't do JavaScript. What am I doing now? You know what
- 10:48Trevor Manz: I mean? What do you think about that? It just occurred to me. Yeah, it's interesting. Like that
- 10:52Trevor Manz: is originally like a constraint of the language. And maybe, you know, when you're picking ecosystems
- 10:58Trevor Manz: on. Also, there was no server way to run JavaScript until 2010. So the idea of just running this
- 11:04Trevor Manz: without a browser was also not very good. So yeah, I'm not quite sure, but it's funny because
- 11:11Trevor Manz: JavaScript has sort of reacted to that by adding some big ints as a data type. But also now there's
- 11:17Trevor Manz: sort of like a fourth language for the web, which is WebAssembly, and there are proper data types
- 11:22Trevor Manz: in WebAssembly. So I guess it is sort of reactionary, but I haven't really seen. So now you can run
- 11:28Trevor Manz: Python in the browser. And, but you'd have to have all this like ecosystem grift or migration that I
- 11:33Trevor Manz: just don't think anybody wants. So it's more, maybe these ecosystems can play a lot nicer together.
- 11:39Michael Kennedy: Yeah. Yeah. And certainly they are with things like Jupyter and stuff, right? Like most users
- 11:44Trevor Manz: of Jupyter don't write JavaScript. Yes. And I think that everyone's happy about that. So
- 11:49Michael Kennedy: exactly. That's true. There's a lot of people are like, you know what, that's not for me.
- 11:52Michael Kennedy: So, you know, you were at Harvard doing your work and now you're at Marimo?
- 11:58Michael Kennedy: Marimo?
- 11:59Michael Kennedy: I always mess up saying this.
- 12:01Michael Kennedy: Tell us how to do it.
- 12:02Trevor Manz: It's Marimo.
- 12:03Michael Kennedy: Marimo.
- 12:04Michael Kennedy: Okay, Marimo.
- 12:05Michael Kennedy: Yeah.
- 12:05Michael Kennedy: And I'd actually on, and I know we talked a lot about it and he set me straight and then
- 12:10Michael Kennedy: I drifted, I'm sure.
- 12:11Michael Kennedy: So what's your experiences here?
- 12:14Michael Kennedy: Like, how's it coming from academia to this world?
- 12:17Trevor Manz: It's been great.
- 12:18Trevor Manz: I think that having worked with, so part of AnyWidget was trying to address some user needs working inside of Notebooks.
- 12:25Trevor Manz: And there's only so much that you can do as a plugin to get that extra bit to help users.
- 12:32Trevor Manz: And so I think one really exciting thing about working on this team with Marimo is they got very involved,
- 12:37Trevor Manz: or they were aware of AnyWidget a while ago, and they kind of actually legitimized AnyWidget as,
- 12:43Trevor Manz: hey, this is a standard because we were able to implement around this specification.
- 12:48Trevor Manz: And so that got us together.
- 12:50Trevor Manz: And then from there, it's just been super exciting to work with a team that is so passionate about notebooks and thinking about this next generation of notebooks and what that environment needs to look like.
- 13:00Trevor Manz: And so there's much more that we can do inside of Marimo beyond the AnyWidget specification, but also AnyWidget is an important component of that.
- 13:07Trevor Manz: So I like to be able to sort of think about both of these two worlds.
- 13:11Michael Kennedy: That's cool.
- 13:11Michael Kennedy: So when I use widgets in Marimo, it's often an AnyWidget?
- 13:17Trevor Manz: Yep. Yeah, exactly. So if when folks usually come and they want to like extend Marimo with their own custom UI elements, like our answer is you should make an AnyWidget. So that's pretty exciting. But then if you're using things in like the sidebar or things that like sort of integrate outside of like the notebook view, those aren't more custom elements that we've created at Marimo that aren't necessarily based on AnyWidget.
- 13:42Michael Kennedy: This portion of Talk Python To Me is brought to you by Sentry.
- 13:46Michael Kennedy: Let me ask you a question.
- 13:48Michael Kennedy: What if you could see into the future?
- 13:50Michael Kennedy: We're talking about Sentry, of course,
- 13:51Michael Kennedy: so that means seeing potential errors, crashes, and bugs before they happen,
- 13:56Michael Kennedy: before you even accept them into your code base.
- 13:59Michael Kennedy: That's what Sentry's AI Seer Code Review offers.
- 14:03Michael Kennedy: You get error prediction based on real production history.
- 14:06Michael Kennedy: AI Seer Code Review flags the most impactful errors
- 14:10Michael Kennedy: your PR is likely to introduce before merge using your app's error and performance context,
- 14:16Michael Kennedy: not just generic LLM pattern matching.
- 14:19Michael Kennedy: Seer will then jump in on new PRs with feedback and warning if it finds any potential issues.
- 14:25Michael Kennedy: Here's a real example.
- 14:26Michael Kennedy: On a new PR related to a search feature in a web app,
- 14:29Michael Kennedy: we see a comment from Seer by Sentry bot in the PR.
- 14:34Michael Kennedy: And it says,
- 14:35Michael Kennedy: potential bug, the process search results function,
- 14:38Michael Kennedy: can enter an infinite recursion
- 14:40Michael Kennedy: when a search query finds no matches,
- 14:43Michael Kennedy: as the recursive call lacks a return statement
- 14:45Michael Kennedy: and a proper termination condition.
- 14:48Michael Kennedy: And Seer AI Code Review also provides additional details
- 14:51Michael Kennedy: which you can expand for further information
- 14:54Michael Kennedy: on the issue and suggested fixes.
- 14:56Michael Kennedy: And bam, just like that,
- 14:57Michael Kennedy: Seer AI Code Review has stopped a bug in its tracks
- 15:00Michael Kennedy: without any devs in the loop.
- 15:02Michael Kennedy: A nasty infinite loop bug never made it into production.
- 15:06Michael Kennedy: Here's how you set it up.
- 15:07Michael Kennedy: You enable the GitHub Sentry integration on your Sentry account.
- 15:11Michael Kennedy: Enable Seer AI on your Sentry account.
- 15:13Michael Kennedy: And on GitHub, you install the Seer by Sentry app
- 15:16Michael Kennedy: and connect it to your repositories that you want it to validate.
- 15:19Michael Kennedy: So jump over to Sentry and set up code review for yourself.
- 15:23Michael Kennedy: Just visit talkpython.fm/seer-code-review.
- 15:27Michael Kennedy: The link is in your podcast player show notes and on the episode page.
- 15:30Michael Kennedy: Thank you to Sentry for supporting Talk Python To Me.
- 15:34Michael Kennedy: Why Marimo?
- 15:35Michael Kennedy: I know I had Axion people talked about.
- 15:37Michael Kennedy: When I look at this, it feels like a super modern UI that is just,
- 15:41Michael Kennedy: it's got a lot of polish and a lot of, it feels 2025 and working with it, right?
- 15:48Michael Kennedy: And it solves some of the, I consider Jupyter Notebooks like the world's most insane,
- 15:54Michael Kennedy: not the world's most insane, the second most insane series of go-to statements
- 15:58Michael Kennedy: that have no record of how you got the go-to,
- 16:01Michael Kennedy: you know, it doesn't even say go to 10.
- 16:02Michael Kennedy: It's like, well, what did you go and run?
- 16:04Michael Kennedy: I don't know, like, look at the numbers,
- 16:05Michael Kennedy: but there's like potentially, you know,
- 16:08Michael Kennedy: some lost as you rerun them.
- 16:10Michael Kennedy: And it solves that problem as well.
- 16:11Michael Kennedy: But like, you know, what's the elevator pitch for Marimo?
- 16:13Trevor Manz: Yeah, my elevator pitch for Marimo
- 16:15Trevor Manz: is that I think notebooks are incredibly important
- 16:19Trevor Manz: and that it's hard to deny that like they're a tool
- 16:22Trevor Manz: that many folks use to do their daily work.
- 16:25Trevor Manz: But there are very few like guardrails
- 16:26Trevor Manz: to help you do that work and work on a team with other folks.
- 16:30Trevor Manz: And so I think one of the big selling points to me with Marimo
- 16:33Trevor Manz: is just that you sort of get to free yourself
- 16:36Trevor Manz: from thinking about those go-to statements,
- 16:38Trevor Manz: and instead you have this very deterministic execution
- 16:41Trevor Manz: that sort of just feels natural.
- 16:44Trevor Manz: As you write cells, they will re-execute.
- 16:47Trevor Manz: And then on top of that, I think that Jupyter and Marimo
- 16:50Trevor Manz: have slightly different goals.
- 16:51Trevor Manz: So Jupyter, when I showed that diagram,
- 16:53Trevor Manz: we had that diagram before,
- 16:54Trevor Manz: you have this split between these diversity of front ends.
- 16:58Trevor Manz: So that's like you could use it in Colab,
- 17:00Trevor Manz: you could use a Jupyter kernel inside of VS Code,
- 17:02Trevor Manz: you could use a Jupyter kernel sort of within the Jupyter CLI.
- 17:06Trevor Manz: But then there's all another requirement of that ecosystem
- 17:08Trevor Manz: is to support many different kernels.
- 17:10Trevor Manz: So it's not just Python, it could be an R kernel,
- 17:12Trevor Manz: it could be a Julia kernel.
- 17:14Trevor Manz: And so I think ultimately attention that ends up happening
- 17:17Trevor Manz: is like a priority of that ecosystem is to support all these languages
- 17:20Trevor Manz: and all these different front ends.
- 17:21Trevor Manz: And instead, by just focusing on Python,
- 17:23Trevor Manz: we can really try to develop a really integrated
- 17:27Trevor Manz: and rich experience specifically for Python notebooks.
- 17:30Trevor Manz: So the trade-off there being some folks come and they say,
- 17:33Trevor Manz: oh, we'd love Marimo, but for R.
- 17:34Trevor Manz: And we're like, well, we can't really do that.
- 17:37Trevor Manz: It's called JupyterLab.
- 17:38Trevor Manz: Yeah, but we are hyper-focused on Python
- 17:41Trevor Manz: and that lets us integrate with other trends within the ecosystem too.
- 17:44Trevor Manz: So we're a huge fan of all the work from the astral folks.
- 17:47Trevor Manz: And we have a tight integration with uv, for example,
- 17:50Trevor Manz: to allow you to sort of use that PEP 723 script metadata.
- 17:54Trevor Manz: And as you're working, we'll like install packages for you
- 17:57Trevor Manz: and write that metadata so that at the end,
- 17:59Trevor Manz: you can send that document to someone else
- 18:02Trevor Manz: and they can like bootstrap their notebook
- 18:03Trevor Manz: and get all their dependencies
- 18:04Trevor Manz: and have their environment set up.
- 18:06Trevor Manz: And I think that type of like last mile with these notebooks
- 18:10Trevor Manz: is something that's been hard to get at
- 18:11Trevor Manz: without really focusing on like an ecosystem.
- 18:14Michael Kennedy: That last mile though, that's a lot of polish.
- 18:16Michael Kennedy: And that's often what kind of gets lost
- 18:20Michael Kennedy: in projects where, I don't know, it's not exactly the focus, right?
- 18:25Michael Kennedy: It's something where you want to take on the most interesting features
- 18:28Michael Kennedy: and it's not like it's necessarily a company
- 18:31Michael Kennedy: and there's somebody who's like,
- 18:32Michael Kennedy: no, we're polishing every little rough edge, period.
- 18:35Michael Kennedy: You know what I mean?
- 18:36Michael Kennedy: And I think you mentioned Astral and uv.
- 18:38Michael Kennedy: I think that is an example of they got funding
- 18:42Michael Kennedy: and it's like, okay, we're not going to do 95% of the packaging.
- 18:45Michael Kennedy: We're going to do 99.9% of the packaging.
- 18:47Michael Kennedy: You know what I mean?
- 18:47Michael Kennedy: And it's made a tremendous difference.
- 18:50Trevor Manz: Yeah.
- 18:50Trevor Manz: Yeah, I mean, I have plenty to say about Astro.
- 18:53Trevor Manz: We love all their tooling over here too.
- 18:56Michael Kennedy: Yeah, so do I.
- 18:56Michael Kennedy: I switched all my stuff to Astro and it's to uv and Ruff and yeah, super, super neat.
- 19:02Michael Kennedy: Okay, so another thing that you all just released is a new VS Code plugin.
- 19:08Michael Kennedy: So I guess one of the aspects of Marimo that is not necessarily apparent from looking at
- 19:13Michael Kennedy: it going there is that it's backed by a Python file, not a JSON file that contains both the
- 19:18Michael Kennedy: inputs and outputs, which is like one of the big shortcomings of Jupyter. Like how much of Jupyter
- 19:24Michael Kennedy: would have benefited if it just had an input in an output file? So you don't check in the output
- 19:29Trevor Manz: file potentially. You know what I mean? Yeah. Yeah. We, I think that was pretty visionary or maybe it
- 19:34Trevor Manz: was just, it's more that we have this ability to observe what's happened in the Jupyter ecosystem
- 19:40Michael Kennedy: and make adjustments from there. A little bit of a second mover benefit of like, we saw that,
- 19:44Michael Kennedy: That was 80% good.
- 19:45Trevor Manz: Definitely.
- 19:46Trevor Manz: Yeah, it was surprising.
- 19:48Trevor Manz: I mean, I think to rip more on Marimo,
- 19:50Trevor Manz: just there are all these,
- 19:52Trevor Manz: when people ask that question of like why Marimo,
- 19:54Trevor Manz: I think there are all these like very small things,
- 19:55Trevor Manz: but like that in net, I think are certainly
- 19:59Trevor Manz: like a order of magnitude kind of like richer experience
- 20:02Trevor Manz: for our users.
- 20:04Trevor Manz: But it's funny how many times just the fact
- 20:06Trevor Manz: that like our notebooks are get diffable,
- 20:08Trevor Manz: that's like one of the first things
- 20:10Trevor Manz: that folks like really latch onto
- 20:11Trevor Manz: and love about Marimo notebooks.
- 20:13Michael Kennedy: Yeah, yeah, very cool. And so the VS Code extension, what's the, like, how's this, how's this help us?
- 20:19Trevor Manz: Yeah, so I see this as, I think the best experience with using Marimo will always be sort of our CLI or like our, our web interface that we've like really curated around this experience.
- 20:31Trevor Manz: But we have a broad range of users that want to collaborate or work on Maremo documents.
- 20:36Trevor Manz: And so some of them are like, you know, I live in my VS Code, my cursor, my Windsurf, my IDE, and like I never want to leave this environment.
- 20:44Trevor Manz: And so getting them to come and like collaborate on these documents has been a little bit of a barrier there.
- 20:49Trevor Manz: So they could, of course, edit a Python file on disk, but having like a native notebook view like they do for Jupyter was something that we sort of lacked in those environments.
- 20:57Trevor Manz: And so we made it a priority shortly after I joined the team where we really wanted to address that user base of folks that want to live in that editor environment.
- 21:06Trevor Manz: And sort of from the ground up wrote this new extension where we have a very integrated view with sort of reactive outputs, similarly to what we have in our user interface.
- 21:16Trevor Manz: But it sort of lives inside of the VS Code ecosystem and uses the VS Code APIs.
- 21:22Michael Kennedy: Yeah, that makes a lot of sense.
- 21:24Michael Kennedy: and it's available on the, what is it?
- 21:25Michael Kennedy: VSX open marketplace for like cursor and anti-gravity.
- 21:30Michael Kennedy: That's a thing as of like three days ago.
- 21:32Michael Kennedy: Yes, all these different skins of VS Code,
- 21:37Trevor Manz: our extension should work as well.
- 21:38Trevor Manz: And we publish it to both marketplaces.
- 21:40Trevor Manz: So folks should be able to install it and get started.
- 21:42Michael Kennedy: It's a weird time for editors.
- 21:44Michael Kennedy: Yes.
- 21:45Michael Kennedy: It was really kind of straight.
- 21:47Michael Kennedy: When I first started Talk Python 11 years ago
- 21:49Michael Kennedy: or whatever it was,
- 21:50Michael Kennedy: I would ask people what editor they use
- 21:52Michael Kennedy: at the end of the show
- 21:53Michael Kennedy: I didn't know what they were going to say. It could have been anything. And then it just narrowed
- 21:58Michael Kennedy: down to VS Code, PyCharm. Those are the answers. And now it's kind of back to a lot of options
- 22:05Michael Kennedy: again. But it generally works in the VS Code variants as well. All right. Super cool. Okay.
- 22:12Michael Kennedy: Let's talk about just what is a Jupyter widget? Yeah. So like I mentioned before, Jupyter really
- 22:18Trevor Manz: reaches, and Marimo also, reach across this chasm between your Python code that's running in some,
- 22:23Trevor Manz: we call it like a kernel environment that's like a stateful environment that has your variables and
- 22:26Trevor Manz: when you run cells like things update there and then on the front end there's like the cell outputs
- 22:31Trevor Manz: that um are reflection of like whatever is sort of like living in the kernel and a jupiter widget
- 22:36Trevor Manz: is like a very interesting part of that like uh of that uh crossing of that chasm and that
- 22:42Trevor Manz: you can actually author both the front end code and the back end code to talk to one another so
- 22:46Trevor Manz: typically it's like you're if you write a python library you're only writing something that runs
- 22:50Trevor Manz: on the server. And then if you're making a Jupyter extension, for example, that's something that only
- 22:54Trevor Manz: lives in the front end. But a widget allows a library author to connect those two worlds together.
- 22:59Trevor Manz: And so for your small object that lives in the Python kernel, you can define ways that it can
- 23:05Trevor Manz: render itself and also be updated from that front end. And so it's a very powerful mechanism that's
- 23:11Trevor Manz: officially a part of Jupyter that allows you to extend your output cells with, I like to think of
- 23:17Trevor Manz: it as these web-based superpowers to be able to update your code in the kernel.
- 23:21Michael Kennedy: You have a really interesting point that you made in your SciPy talk, saying basically,
- 23:27Michael Kennedy: we can do lots of UI stuff in notebooks, but often those are kind of like isolated snapshots,
- 23:35Michael Kennedy: right? Maybe you have a graph and there's like outliers or something along those lines,
- 23:40Michael Kennedy: but you can see them, but you can't like programmatically interact with them in the
- 23:45Michael Kennedy: way that you could a widget, whereas you might drag and select to get a zoom area that actually
- 23:50Michael Kennedy: becomes a data frame, or you could move some widgets that then redraw the picture, but also
- 23:56Michael Kennedy: becomes something you could program against in like a machine learning algorithm or whatever,
- 24:00Michael Kennedy: right? Maybe I think that's a pretty powerful distinction that people want to have in mind as
- 24:05Trevor Manz: we dive into anywidget. Yeah, definitely. I like to think of it as like in a traditional like
- 24:10Trevor Manz: REPL kind of environment, like your two modes of input are sort of like writing code and running
- 24:15Trevor Manz: so you can write the code and you can run the cell and then you can observe the output but in order
- 24:19Trevor Manz: to like act on something that you see in that output you have to write more code so um if you
- 24:24Trevor Manz: have a plot for example that you produce from one of those outputs if there's some outliers or
- 24:29Trevor Manz: something a very natural thing to think is what is that point and you want to like circle that point
- 24:33Trevor Manz: and that is much easier to do with a gesture than it is to express as some sort of like
- 24:38Trevor Manz: query in in uh typing out some program and kind of looking at the axes to say like what are those
- 24:44Trevor Manz: points there. And so I think widgets really allow for you to be creative in terms of how you
- 24:51Trevor Manz: might like another mode of input for adjusting things that might be in the kernel. And like
- 24:56Trevor Manz: you're saying, now you can transform a selection into just a data frame that you get out and now,
- 25:00Trevor Manz: and then you're off to the races with running the next part of your program. And so I think it,
- 25:04Trevor Manz: it adds this degree of freedom to like let the algorithms and data, like use code when that's
- 25:09Trevor Manz: useful. And then for those pieces where you want to step in as a human and maybe use a gesture
- 25:14Trevor Manz: and that's easier to express as a gesture,
- 25:16Trevor Manz: then we have that mechanism now
- 25:18Trevor Manz: to allow you to extend your analyses.
- 25:21Michael Kennedy: Right.
- 25:21Michael Kennedy: If you don't need pictures and interaction,
- 25:24Michael Kennedy: just do it in Python straight.
- 25:26Michael Kennedy: You know what I mean?
- 25:27Michael Kennedy: You don't need notebooks.
- 25:28Michael Kennedy: And part of the value of notebooks
- 25:30Michael Kennedy: is this mix of like a visual plus code plus visual
- 25:35Michael Kennedy: and this sort of iterative back and forth between those.
- 25:38Michael Kennedy: And widgets reconnect the visual
- 25:40Michael Kennedy: back to the code, I guess, right?
- 25:42Trevor Manz: Yeah, exactly.
- 25:43Trevor Manz: I like to think of it as the types of workflows in notebooks
- 25:47Trevor Manz: are not typically batch scripts.
- 25:49Trevor Manz: I mean, in Marimo, you can write your notebook
- 25:51Trevor Manz: and run it as a script because it's just Python.
- 25:54Trevor Manz: But often when people are working
- 25:56Trevor Manz: and really getting their hands on data,
- 25:57Trevor Manz: these are long-lived sessions
- 25:59Trevor Manz: where you have a lot of data in memory
- 26:01Trevor Manz: and you really want to get your hands on that data.
- 26:03Trevor Manz: And I think if you only had the ability
- 26:05Trevor Manz: to write and run cells and not add that extra dimension,
- 26:10Trevor Manz: it would be pretty limited to what you could actually do.
- 26:12Trevor Manz: And so something like widgets allows you to really extend and be creative with how you'd like to explore that data and sort of like debug your data as it's in memory and get your hands on it.
- 26:22Michael Kennedy: Yeah.
- 26:23Michael Kennedy: Yeah.
- 26:23Michael Kennedy: I mean, that's what blew the world open when all that came around, right?
- 26:27Michael Kennedy: Yeah.
- 26:27Michael Kennedy: So that brings us to anywidget.
- 26:30Michael Kennedy: Why a new widget framework?
- 26:32Michael Kennedy: Why not just IPy widgets or whatever?
- 26:36Trevor Manz: Yeah, it's a great question.
- 26:37Trevor Manz: And it's something that when I started my PhD, like I was not, I guess I didn't really have a hand on either.
- 26:42Trevor Manz: But AnyWidget was definitely born out of a need of myself to like solve a problem that I was running into during the PhD.
- 26:49Trevor Manz: So as I mentioned before, we had all these visualization tools that we were building sort of in.
- 26:54Trevor Manz: And specifically, one of the tools I was building was a like a web-based genome browser.
- 26:59Trevor Manz: And so this is something that people put their genomes into and you can align different tracks and you can zoom in and try to understand like different types of things.
- 27:07Trevor Manz: types of functional assays in genomics.
- 27:10Trevor Manz: And then we had users that wanted to use these inside
- 27:12Trevor Manz: of computational notebooks.
- 27:14Trevor Manz: And one thing that immediately happened
- 27:16Trevor Manz: when we tried to build these integrations for notebooks
- 27:19Trevor Manz: is that you'd spend all this engineering effort trying
- 27:21Trevor Manz: to build an integration for a specific notebook.
- 27:24Trevor Manz: But then someone would come in and say, oh, I'd actually
- 27:26Trevor Manz: want this to work in Google Colab,
- 27:28Trevor Manz: or I need this to work in VS Code,
- 27:29Trevor Manz: or I need this to work in this other environment.
- 27:34Trevor Manz: And all of those environments are very similar on the back end
- 27:37Trevor Manz: but they're very different on the front end
- 27:38Trevor Manz: in terms of the way that you can register like front end code.
- 27:41Trevor Manz: And so it ended up putting a lot on a library author like myself
- 27:45Trevor Manz: to try to build those adapters for each of those environments.
- 27:48Trevor Manz: And so anywidget was sort of an attempt to standardize
- 27:51Trevor Manz: maybe how we can write that front end code
- 27:54Trevor Manz: such that it's more,
- 27:55Trevor Manz: and then we can build those adapters in one place
- 27:57Trevor Manz: that then we can support all those different environments.
- 27:59Michael Kennedy: Right, right.
- 28:00Michael Kennedy: We talked about building the widgets
- 28:01Michael Kennedy: largely in JavaScript earlier already,
- 28:03Michael Kennedy: but I think what people maybe who haven't tried this
- 28:06Michael Kennedy: don't realize is how many variations you would have to build to say, have I also, I wanted to
- 28:13Michael Kennedy: work in Jupyter and I wanted to work in Colab and you've got to build and publish the PyPI and NPM
- 28:19Michael Kennedy: and right. There's like, so everyone who built one of those had to, and wanted to cross use,
- 28:25Michael Kennedy: they had to do all those adaptation, adaptation. So, and your thought was basically, well,
- 28:30Michael Kennedy: I could create an adapter that everyone could use and then we don't have to do this ever again.
- 28:35Trevor Manz: Yeah, exactly. And to what you're saying as well, I think that adapter craziness that's in the web ecosystem of like, oh my gosh, I had to transpile my code into all these different formats.
- 28:49Trevor Manz: It's kind of a nightmare in terms of tooling. And it's something that came as a result of the state of the JavaScript ecosystem being pretty immature before 2018.
- 29:01Trevor Manz: And basically because JavaScript didn't have a module system.
- 29:04Trevor Manz: And so everyone had to come up with a way to bundle code.
- 29:07Trevor Manz: And there are all these third-party adapters.
- 29:08Trevor Manz: They're figuring out a way that they could load JavaScript modules.
- 29:12Trevor Manz: And so whatever these tools chose and the way that they chose to load their front-end code
- 29:17Trevor Manz: would affect the way that me as the library author would need to package up the code.
- 29:21Michael Kennedy: By modules and loading, you're talking where people might see the word require at the top
- 29:26Michael Kennedy: or something like that.
- 29:27Michael Kennedy: Kind of like our import.
- 29:29Trevor Manz: Yes, exactly.
- 29:29Trevor Manz: It's very much like import statements in Python.
- 29:32Trevor Manz: And in fact, the official, if you open up your browser,
- 29:35Trevor Manz: you can just type, you can use a syntax that's called ES modules
- 29:39Trevor Manz: and type in import.
- 29:41Trevor Manz: And you can import a bit of JavaScript code via URL.
- 29:45Trevor Manz: And this just works natively in the browsers like today,
- 29:50Trevor Manz: but wasn't sort of standardized until late 2015, or late 2018.
- 29:54Trevor Manz: So you mentioned require, that's actually a different module system
- 29:58Trevor Manz: that's not based in browsers.
- 30:00Trevor Manz: And if you were to type require in your browser,
- 30:02Trevor Manz: that would not work.
- 30:03Trevor Manz: And that is sort of like the tension
- 30:04Trevor Manz: that was the JavaScript ecosystem.
- 30:06Trevor Manz: So I was aware of some of the trends
- 30:08Trevor Manz: and things that have happened
- 30:09Trevor Manz: post this new module system
- 30:11Trevor Manz: because I've been working in the web ecosystem.
- 30:13Trevor Manz: And yet when I came to work
- 30:14Trevor Manz: on like Jupyter widgets specifically,
- 30:15Trevor Manz: there was like,
- 30:16Trevor Manz: I felt like I was writing code
- 30:18Trevor Manz: like I had been like a while ago for the browser.
- 30:20Trevor Manz: And so the idea behind anywidget was to like,
- 30:23Trevor Manz: let's just simplify this so like that my source
- 30:25Trevor Manz: and the code that I publish
- 30:26Trevor Manz: is more like what the browser understands natively.
- 30:29Trevor Manz: And then we take care of this like transpilation stuff
- 30:32Trevor Manz: once for everybody and package that up
- 30:34Trevor Manz: inside of anywidget to deal with sort of like
- 30:36Trevor Manz: the legacy module systems of like JupyterLab,
- 30:39Trevor Manz: VS Code, and a Google Colab.
- 30:42Michael Kennedy: This portion of Talk Python To Me
- 30:44Michael Kennedy: is brought to you by JetBrains and the PyCharm team.
- 30:47Michael Kennedy: The PSF, the Python Software Foundation,
- 30:50Michael Kennedy: is a nonprofit organization behind Python.
- 30:53Michael Kennedy: They run or oversee the conferences,
- 30:55Michael Kennedy: handle all the legal business to do with Python,
- 30:58Michael Kennedy: oversee the steering council and other groups, and much more.
- 31:01Michael Kennedy: But let's focus in on one key word here, non-profit.
- 31:05Michael Kennedy: Unlike some software ecosystems,
- 31:07Michael Kennedy: which grew out of and are supported by a single tech giant,
- 31:11Michael Kennedy: think.NET and Microsoft or Swift and Apple,
- 31:15Michael Kennedy: Python is by developers for developers.
- 31:18Michael Kennedy: That makes it a truly special place.
- 31:21Michael Kennedy: Everyone here is here because they chose to be here.
- 31:24Michael Kennedy: It's our garden.
- 31:25Michael Kennedy: and we have to tend it. That means supporting the ecosystem, and a big part of that is supporting
- 31:31Michael Kennedy: the PSF. That's why I was thrilled when JetBrains and the PyCharm team in particular reached out to
- 31:36Michael Kennedy: me to help spread the word about their PSF fundraiser. Here's the deal. You can purchase
- 31:41Michael Kennedy: PyCharm Pro for 30% off this week until December 19th, 2025. And when you do, not only do you get
- 31:48Michael Kennedy: a deal on PyCharm, but the PyCharm team will donate all the proceeds to the PSF. Let me say
- 31:54Michael Kennedy: that again because it's easy to miss. They will donate all the proceeds to the PSF. And a positive
- 32:00Michael Kennedy: addition this year is that this also applies to renewals, not just new customers. So if you're
- 32:05Michael Kennedy: already a PyCharm fan and customer, renew this week and you get a discount plus you support the PSF.
- 32:12Michael Kennedy: To take part in this, you'll need to be sure to use Talk Python's exclusive promo code,
- 32:17Michael Kennedy: STRONGERPYTHON, all caps, two words. That's STRONGERPYTHON for the code and the link is
- 32:22Michael Kennedy: talkpython.fm/PyCharm dash PSF dash 2025. Both of these are in your podcast player's show
- 32:29Michael Kennedy: notes. Thank you to PyCharm for supporting the show. I'm trying to decide if I feel like it's
- 32:36Michael Kennedy: in the interest, if the motivation of any of those platforms would have been to create something like
- 32:41Michael Kennedy: this, right? Like the Jupyter people are like, I don't know the problem. You just write for Jupyter
- 32:44Michael Kennedy: and it works. And the Colab people are like, I don't see a problem. You just write for Colab and
- 32:49Michael Kennedy: it works, right? Like what is the platform people's motivation to create integrations and smooth the
- 32:56Michael Kennedy: transition to the other ones? That's one tension. On the other though, they might have more stuff
- 33:00Michael Kennedy: come to them if they make it more reusable across them, right? So it's interesting that none of them
- 33:05Trevor Manz: actually did that. Yeah, I think, I mean, in hindsight, it makes sense why someone in my
- 33:09Trevor Manz: position, like, I guess, focused on this because it was like, I had two widgets and then times the
- 33:14Trevor Manz: number of platforms. And then if something broke, you'd have to go fix it a bunch of different
- 33:17Trevor Manz: places and it just becomes a maintenance nightmare.
- 33:22Trevor Manz: But one thing that's been really interesting is I think that there is a good pressure to
- 33:26Trevor Manz: support a healthy ecosystem.
- 33:29Trevor Manz: So I'd say before anywidget, it was pretty complicated to create custom widgets.
- 33:34Trevor Manz: And so one of my goals was I want the feeling of being able to author a widget to be very
- 33:39Trevor Manz: similar to the way that you can copy and paste code into a notebook, but move it into a file.
- 33:44Trevor Manz: And then you could publish that to PyPI.
- 33:46Trevor Manz: And that workflow always worked for Python,
- 33:48Trevor Manz: but there was no way to start prototyping a widget
- 33:51Trevor Manz: inside of a notebook before and then move it out.
- 33:54Trevor Manz: And I really wanted to bring sort of,
- 33:56Trevor Manz: to lower that barrier to entry.
- 33:58Trevor Manz: And then what I think came out of that
- 33:59Trevor Manz: is you get a much richer ecosystem of people
- 34:01Trevor Manz: that are willing to try and make things.
- 34:05Trevor Manz: And then when there's a cool widget that comes out,
- 34:07Trevor Manz: then that's a good positive pressure
- 34:08Trevor Manz: for other ecosystems,
- 34:10Trevor Manz: because then people are trying to request,
- 34:11Trevor Manz: they go, hey, I want this widget to work in your environment.
- 34:13Trevor Manz: And that puts more pressure on various environments
- 34:16Trevor Manz: to implement sort of a more standardized approach.
- 34:19Michael Kennedy: Or adopt a adapting layer like anywidget.
- 34:22Michael Kennedy: Yep. Yeah, exactly.
- 34:24Michael Kennedy: Yeah, to sort of back you up here,
- 34:26Michael Kennedy: Kostal says, thank you for building anywidget.
- 34:28Michael Kennedy: Having gone through creating an IPy widget,
- 34:30Michael Kennedy: it was a lot of work.
- 34:32Michael Kennedy: So yeah, exactly.
- 34:35Michael Kennedy: Let's just take a tour through the widget gallery.
- 34:39Michael Kennedy: Like what widgets are available here?
- 34:42Michael Kennedy: Got some favorites?
- 34:43Trevor Manz: Yeah, we definitely have some favorites.
- 34:45Trevor Manz: I would say that one of the early adopters of AnyWidget
- 34:48Trevor Manz: is a fairly popular plotting library called Altair.
- 34:53Trevor Manz: And it allows to do exactly what you were talking about earlier
- 34:56Trevor Manz: with selecting points and allowing you to get those back
- 34:59Trevor Manz: as data frames in the kernel.
- 35:01Trevor Manz: So for a while, the way that Altair worked,
- 35:04Trevor Manz: and I think it still by default works inside of a Jupyter environment,
- 35:09Trevor Manz: is that it creates sort of an interactive output
- 35:12Trevor Manz: that isn't connected back to the kernel.
- 35:14Michael Kennedy: So you can get your output.
- 35:15Michael Kennedy: It feels interactive because you can zoom in and you can select and you can do all the things, but it's just a view.
- 35:21Trevor Manz: Exactly.
- 35:22Trevor Manz: That state, I like to think of it as like is trapped in the output and you can't get it back in the notebook.
- 35:27Trevor Manz: And so what the AnyWidget does behind the scenes is it allows for that output to communicate back with the kernel,
- 35:34Trevor Manz: which then allows you to update an object or a selection and then run your cell again and view some output.
- 35:40Trevor Manz: And just that bi-directional communication
- 35:43Trevor Manz: between your kernel and your front end
- 35:45Trevor Manz: allows you to do things like create a data frame
- 35:47Trevor Manz: that is updated when you select.
- 35:50Michael Kennedy: Yeah.
- 35:51Michael Kennedy: Nice.
- 35:51Michael Kennedy: Yeah, it's sort of that example
- 35:53Michael Kennedy: we talked about the outliers before, right?
- 35:56Michael Kennedy: Yeah, exactly.
- 35:58Michael Kennedy: Altair's super cool.
- 35:59Michael Kennedy: You know, I talked to Jake VanderPlas about it
- 36:01Michael Kennedy: when it first came out and it's very beautiful.
- 36:04Trevor Manz: Yeah, Altair was actually, I think,
- 36:06Trevor Manz: how I got into open source contributions forever ago.
- 36:09Trevor Manz: Like I made like documentation examples
- 36:11Trevor Manz: and it was very like,
- 36:13Trevor Manz: it was very fun to come full circle
- 36:14Trevor Manz: to actually have like a dependency
- 36:17Trevor Manz: that somehow like got back into that library
- 36:18Michael Kennedy: many years later.
- 36:20Michael Kennedy: Now you build something that makes it more,
- 36:22Michael Kennedy: that supercharges Altair
- 36:24Michael Kennedy: because now it has like bidirectional data integration
- 36:27Michael Kennedy: sort of thing.
- 36:27Michael Kennedy: Yeah, yeah.
- 36:28Michael Kennedy: Yeah, that's wild.
- 36:29Michael Kennedy: Yeah, maybe just talk to people really quick about that.
- 36:30Michael Kennedy: Like you don't have to write a revolutionary feature
- 36:33Michael Kennedy: to be part of open source.
- 36:35Trevor Manz: Yeah, yeah, definitely.
- 36:36Trevor Manz: I think my entry to open source was just
- 36:39Trevor Manz: I got interested in a plotting library and they had some open tickets for making examples for their documentation.
- 36:45Trevor Manz: And I wanted to learn how to use the plotting library.
- 36:48Trevor Manz: So then I started contributing to them.
- 36:50Trevor Manz: And it was really like those interactions, I think, with maintainers that kind of got a tick in my head where I was like, oh, I think I like this way of working and communicate.
- 36:58Trevor Manz: Like there's a lot of, I don't know, oftentimes the challenges in open source aren't so technical as they are just social and figuring out how to communicate expectations to different users.
- 37:07Trevor Manz: And I think specifically interacting with Jake VanderPlas
- 37:10Trevor Manz: and some of those issues,
- 37:13Trevor Manz: I think I learned a lot about that
- 37:15Trevor Manz: and I was attracted to trying to find new ways
- 37:18Trevor Manz: to work on problems in open source.
- 37:20Michael Kennedy: Yeah, awesome.
- 37:21Michael Kennedy: All right, well, that's number one
- 37:23Michael Kennedy: with 10,000 favorites out of the community.
- 37:27Michael Kennedy: What are some others?
- 37:28Trevor Manz: Some of the other, I would say like,
- 37:29Trevor Manz: so Vincent Warmerdam, who is one of my colleagues
- 37:32Trevor Manz: and you've had it on the podcast any times before.
- 37:34Michael Kennedy: A couple times, yeah.
- 37:35Trevor Manz: Yeah, it's created this draw data widget.
- 37:38Trevor Manz: And I would say when this widget came out,
- 37:40Trevor Manz: this was very much,
- 37:41Trevor Manz: there are many different,
- 37:43Trevor Manz: it demos very well.
- 37:44Trevor Manz: So the idea is that you have like a canvas
- 37:47Trevor Manz: that you can draw some points
- 37:48Trevor Manz: and you get those points back out as a data frame.
- 37:51Trevor Manz: And yes, so Vincent has a nice Marimo notebook
- 37:55Trevor Manz: that's running in the browser.
- 37:57Michael Kennedy: Yeah, that's right.
- 37:57Michael Kennedy: There we go.
- 37:59Trevor Manz: And I believe if you draw some points.
- 38:01Michael Kennedy: I don't like the brush.
- 38:02Michael Kennedy: I'm going to change the brush.
- 38:03Michael Kennedy: We've got precise data.
- 38:04Michael Kennedy: So you could have one kind of data set here and then you could go like, okay, we're going to do,
- 38:10Michael Kennedy: you know, this is super interesting because maybe you say like the data kind of looks like this and
- 38:14Michael Kennedy: I want to run an algorithm against it, but there's a ton of work to get the data in the right format.
- 38:18Michael Kennedy: You could just start, you know, kind of just visually doing these things. And then you can
- 38:24Michael Kennedy: go on and analyze it and do all sorts of stuff by just literally by drawing.
- 38:30Trevor Manz: Yeah. We found this is like educators are quite excited about like this kind of widget.
- 38:34Trevor Manz: because it's like, hey, here's this,
- 38:36Trevor Manz: how does a random forest algorithm work?
- 38:38Trevor Manz: It's like, okay, we can just draw a data set
- 38:39Trevor Manz: and then we can actually view
- 38:41Trevor Manz: how a classification would work
- 38:42Trevor Manz: over a specific type of data set.
- 38:44Trevor Manz: And I think it's really that type of interplay
- 38:47Trevor Manz: between something that you can play with
- 38:49Trevor Manz: to create something with the data
- 38:50Trevor Manz: and then maybe you take scikit-learn or something
- 38:53Trevor Manz: and apply an algorithm
- 38:54Trevor Manz: and you can help build intuition
- 38:56Trevor Manz: for how these algorithms work
- 38:57Trevor Manz: just by plugging in with the actual workhorse
- 39:00Trevor Manz: of doing the operations
- 39:02Trevor Manz: and like computing, like your classifier.
- 39:04Trevor Manz: But instead you have this new input,
- 39:06Trevor Manz: which is like allowing for a bit more play
- 39:09Trevor Manz: with like learning how those algorithms work.
- 39:11Michael Kennedy: Yeah, you have an algorithm and you say,
- 39:15Michael Kennedy: I want to see how, if the data looked like this,
- 39:17Michael Kennedy: what would happen?
- 39:18Michael Kennedy: If the data looked like that, what would happen?
- 39:20Michael Kennedy: And a lot of times people will result
- 39:21Michael Kennedy: to generating that data with code,
- 39:24Michael Kennedy: either by writing it themselves,
- 39:26Michael Kennedy: using a library like Faker or something like that,
- 39:29Michael Kennedy: you know, like, how am I going to get it?
- 39:30Michael Kennedy: What if it looks like this?
- 39:31Michael Kennedy: And here you just say, whatever looks like this, and you draw it.
- 39:34Michael Kennedy: And then you run your algorithm based on the output of it because it's a widget, an AnyWidget widget.
- 39:39Michael Kennedy: And then you just keep going.
- 39:40Michael Kennedy: It's super neat, actually.
- 39:42Trevor Manz: Yeah.
- 39:42Trevor Manz: Yeah.
- 39:43Trevor Manz: So to go back to, I think, something you mentioned before as well,
- 39:48Trevor Manz: AnyWidget sort of serves two communities.
- 39:50Trevor Manz: So I think for one, there are folks that never will ever need to touch or learn any JavaScript,
- 39:55Trevor Manz: but can just use these libraries like they would Python packages.
- 39:58Trevor Manz: So the idea is, hey, I can pip install draw data,
- 40:00Trevor Manz: and now I get to use a scatter widget.
- 40:02Trevor Manz: And I don't care at all how it works,
- 40:03Trevor Manz: but now I get to understand how this algorithm works.
- 40:07Trevor Manz: But for those that are interested,
- 40:09Trevor Manz: they can go and learn maybe a little bit of JavaScript
- 40:12Trevor Manz: or progressively a little bit more JavaScript
- 40:15Trevor Manz: to create something and package it up
- 40:16Trevor Manz: for many different platforms.
- 40:18Trevor Manz: So you sort of have people that want to make libraries
- 40:21Trevor Manz: and then you have library consumers.
- 40:22Trevor Manz: And depending on how much front-end stuff you want to learn,
- 40:25Trevor Manz: that's how deep you can go into either of those sides.
- 40:27Trevor Manz: But I'd say probably many more people
- 40:29Trevor Manz: are just widget users and happily wire them together and don't worry about it and move on
- 40:34Trevor Manz: with their day. And then there's some folks that maybe go a little bit deeper on the JS side and
- 40:39Michael Kennedy: learn how to create these interactive experiences. When you say wire them together, do you mean like
- 40:43Michael Kennedy: put one in a notebook in one cell and then another in another cell, but then say the input of it is
- 40:48Michael Kennedy: the output of the other, that kind of wire together? Exactly. Yeah. So you can really think of these as
- 40:53Trevor Manz: like building blocks that you can like compose inside of a notebook environment. And I think
- 40:57Trevor Manz: specifically in marimo a really cool thing is that when you update that value that lives in the
- 41:02Trevor Manz: kernel that cell below will rerun so now it's not just like you do the thing and then you have to
- 41:07Trevor Manz: manually rerun the cell you actually start to build up based of our reactivity graph like a little bit
- 41:12Trevor Manz: of an application of like i select some cells and now that reruns this python code and and if i have
- 41:18Trevor Manz: more cells that run after that it all is sort of wired up from this new input which is your widget
- 41:23Michael Kennedy: Yeah, I kind of riffed on this a little bit when I said like the world's craziest go-to.
- 41:27Michael Kennedy: And I said the second craziest because the most crazy is Excel.
- 41:31Michael Kennedy: But that's because the way Marimo solves that is it actually understands the way these variables
- 41:38Michael Kennedy: used across cells.
- 41:38Michael Kennedy: So when I move a widget in one, it redraws.
- 41:41Michael Kennedy: It's like, oh, the thing that depended upon it also now has to change.
- 41:44Michael Kennedy: And then like you can, it cascades that execution across the widgets, right?
- 41:48Trevor Manz: Exactly.
- 41:49Trevor Manz: And that would normally just happen if you use our built-in UI elements or if you rerun cells.
- 41:54Trevor Manz: And because it's just this reactive model where we trace the dependency, we just track what the dependencies are statically between your cells.
- 42:02Trevor Manz: We know that when you update this property on a widget, we know it sells that you have to update that depend on that widget.
- 42:08Trevor Manz: And so, yeah, it just sort of all falls out of this simple idea of your notebooks are a graph.
- 42:13Trevor Manz: They're not just like this manual.
- 42:16Trevor Manz: I think of it as like a lot of like running cells is like manual callbacks.
- 42:20Trevor Manz: Like you, you like do something and you're like, oh, I have to click a callback and run it.
- 42:24Trevor Manz: And by modeling it as a graph, we can run those for you.
- 42:28Trevor Manz: And so that we know exactly what needs to update when this dependency of that part of the graph is invalidated.
- 42:35Michael Kennedy: I've talked to some data scientists who are like, that is both a feature and a problem that you can just be so freeform in Jupyter Notebooks, right?
- 42:42Michael Kennedy: Like I can just iterate and play.
- 42:44Michael Kennedy: And I think while you're iterating and playing, that freedom is great.
- 42:48Michael Kennedy: But as soon as you want to start making decisions, then it becomes like a real danger point, right?
- 42:53Michael Kennedy: Yeah, I think there's kind of a nice balance.
- 42:56Trevor Manz: So specifically in Marimo, there are some requirements for how you have to write your Python code that are slightly more limiting than within a Jupyter environment.
- 43:05Trevor Manz: And one that often trips folks up is that you can't redeclare variables across cells or else it would be ambiguous.
- 43:11Trevor Manz: Like, is this the cell that defines X or is this the cell that defines X?
- 43:15Michael Kennedy: But I like to think of it as-
- 43:16Michael Kennedy: Which order did you run it in?
- 43:18Michael Kennedy: That's the one.
- 43:19Trevor Manz: Yeah, exactly.
- 43:20Michael Kennedy: That's tricky.
- 43:21Trevor Manz: So we're fairly strict on that.
- 43:23Trevor Manz: But what we believe is if you buy into this constraint, then we can give you all these
- 43:27Trevor Manz: properties, which are deterministic execution order and the ability to turn these scripts
- 43:34Trevor Manz: into reproducible, or turn these sort of open-ended workflows into more reproducible artifacts
- 43:39Trevor Manz: that have a deterministic execution order.
- 43:43Trevor Manz: And so I like to think of it a little bit as like,
- 43:45Trevor Manz: I used to type Python code without type hints.
- 43:47Trevor Manz: Then I started using type hints,
- 43:48Trevor Manz: and now I can't imagine not having any autocomplete.
- 43:51Trevor Manz: And now I think like maybe our type,
- 43:53Trevor Manz: like when you start working with data in long-lived sessions,
- 43:56Trevor Manz: having some of these guardrails actually help you keep on track
- 43:59Trevor Manz: such that if you accidentally delete a variable,
- 44:01Trevor Manz: we'll let you know that you deleted it,
- 44:03Trevor Manz: and it's not something that the next time you boot up the notebook,
- 44:05Trevor Manz: you're just missing that variable.
- 44:06Trevor Manz: So it's something that you buy into,
- 44:09Trevor Manz: but then I think has all these nice consequences
- 44:10Trevor Manz: that come out that--
- 44:12Michael Kennedy: - As a newbie, you'll see like,
- 44:14Michael Kennedy: these things are not defined,
- 44:15Michael Kennedy: or this library doesn't exist.
- 44:16Michael Kennedy: And you know what it does exist,
- 44:17Michael Kennedy: you just skipped running the top import cell,
- 44:20Michael Kennedy: or you know, that stuff's a little frustrating.
- 44:23Michael Kennedy: So during this talk you talked about,
- 44:25Michael Kennedy: during your talk previously,
- 44:26Michael Kennedy: you talked about like how anywidget allows you to write
- 44:30Michael Kennedy: just enough JavaScript.
- 44:32Michael Kennedy: What do you mean by that?
- 44:33Trevor Manz: - What do I mean by just enough JavaScript?
- 44:35Michael Kennedy: - Yeah, like, so one person's just enough JavaScript,
- 44:38Michael Kennedy: another person's like, whoa, way too much JavaScript.
- 44:41Trevor Manz: Sure.
- 44:41Trevor Manz: So when I first started learning any front-end code,
- 44:45Trevor Manz: my experience was I opened up an HTML file
- 44:47Trevor Manz: and I just wrote some JavaScript on the page.
- 44:49Trevor Manz: And I completely love this workflow
- 44:52Trevor Manz: for playing and learning how to write code
- 44:54Trevor Manz: for the first time in the browser.
- 44:57Trevor Manz: But I think over the years,
- 44:59Trevor Manz: as people have started to build things
- 45:01Trevor Manz: like Figma and Adobe in the browser,
- 45:05Trevor Manz: there's a ton of tooling that has come up
- 45:07Trevor Manz: to help build those types of applications.
- 45:09Trevor Manz: So many people's first experience with writing JavaScript
- 45:13Trevor Manz: is someone telling them that they need to learn React
- 45:15Trevor Manz: or learn a specific framework.
- 45:18Trevor Manz: And then it's a bit like, well, this isn't technically JavaScript.
- 45:21Trevor Manz: This is a flavor of JavaScript that we transform.
- 45:24Trevor Manz: And so the experience that I wanted for anywidget
- 45:27Trevor Manz: was to write this standardized JavaScript code
- 45:31Trevor Manz: as sort of the entry point to your widgets.
- 45:34Trevor Manz: So it should feel as simple as you could just open up
- 45:37Trevor Manz: browser console and start typing in code.
- 45:39Trevor Manz: And the code that you write is exactly what the browser understands.
- 45:43Trevor Manz: And so it should be dead simple from the beginning.
- 45:46Trevor Manz: Just learning some APIs and probably pattern matching between, okay, this is some syntax.
- 45:51Trevor Manz: But it should feel pretty familiar.
- 45:53Trevor Manz: Should you want to learn those frameworks or use those frameworks, those all have the
- 45:57Trevor Manz: ability to be transformed into this standardized JavaScript.
- 46:01Trevor Manz: And in fact, they have to be in order to run in the browser.
- 46:03Trevor Manz: That's how that all works.
- 46:05Trevor Manz: So I wanted that initial experience to be, if you want to learn and you've never tried it out before, send a variable and you can console log that variable and it just works.
- 46:15Trevor Manz: But should you want to build something very ambitious and a lot of our most popular complicated widgets do use some of these frameworks, that's something that you can learn.
- 46:23Michael Kennedy: So I could do a view or an AlpineJS or I could do a React and all of that kind of stuff if I want.
- 46:30Trevor Manz: Yeah, so in our documentation, there is like a, I think it's, I call it, we call it, we have like a little CLI to bootstrap a project that's like ready to be used with React.
- 46:41Trevor Manz: And I think we had a contributor contribute one for Vue and Svelte as well.
- 46:47Trevor Manz: And the whole idea there is like, yes, in order to, like, the tradeoff is that now you are introducing like some JavaScript build tooling into your, like into this process.
- 46:56Trevor Manz: But hopefully if you're familiar with those frameworks, that isn't like a big overhead to trying out some of those things.
- 47:02Trevor Manz: Versus like for the Python beginner that wants to learn something in the front end and they're just trying to get their data into the front end.
- 47:10Trevor Manz: I just don't want them to have to worry about TypeScript or React or any of these things that they might hear about.
- 47:15Trevor Manz: And instead they can just get started with trying to paint some pixels on the screen and then progressively learn outside of that ecosystem.
- 47:22Trevor Manz: So the entry point will always be sort of this simple front end standard.
- 47:27Trevor Manz: And then how far you want to go into that ecosystem, then you can experience more of
- 47:32Trevor Manz: like the tooling there to help with reactivity and things in the front end.
- 47:37Michael Kennedy: Yeah, that's super interesting to think of injecting little miniature view applications
- 47:42Michael Kennedy: and stuff to allow that work.
- 47:44Michael Kennedy: But they are super powerful if you're willing to go through the build steps and all the
- 47:48Michael Kennedy: hoops that those different frameworks ask you to do to get it to run.
- 47:52Michael Kennedy: And once you get it set up, it's like, okay, these things all bi-directionally data bind to each other internally.
- 47:57Michael Kennedy: And so I can see how that plays just like perfectly naturally with the already binding of the dynamic interaction here.
- 48:04Trevor Manz: Yeah, exactly.
- 48:05Trevor Manz: So we model this as like we have the standard, which is like this ECMAScript standard, which is the JavaScript code that you write.
- 48:14Trevor Manz: And then all of the libraries are modeled as like adapters on top of that standard.
- 48:18Trevor Manz: I think we call them bridges.
- 48:19Trevor Manz: So in React, you get hooks that you can call,
- 48:22Trevor Manz: and then you're writing code that looks like idiomatic React,
- 48:25Trevor Manz: but behind the scenes, it's calling anywidget APIs.
- 48:29Trevor Manz: And our Vue bridge does the same thing, but with Vue APIs.
- 48:32Trevor Manz: So you get to write front-end code that feels like it's Vue-like or React-like,
- 48:36Trevor Manz: but behind the scenes, you have these custom bridges
- 48:38Trevor Manz: that are written by folks that are familiar with those frameworks
- 48:41Trevor Manz: for how they should interface with our standard specification.
- 48:44Michael Kennedy: Yeah, wild.
- 48:45Michael Kennedy: Let's talk about not using one of those,
- 48:46Michael Kennedy: but instead talking through building a simple widget.
- 48:50Michael Kennedy: Now, just to be clear,
- 48:52Michael Kennedy: I know we can't read all of the code audio version
- 48:55Michael Kennedy: because most people just listen to the show,
- 48:57Michael Kennedy: but maybe just give us a sense going through this.
- 48:59Michael Kennedy: You have a build a counter widget.
- 49:02Michael Kennedy: Yeah.
- 49:02Michael Kennedy: Or I can click a button and it counts or something.
- 49:04Michael Kennedy: Yeah, just walk us through,
- 49:05Michael Kennedy: just to give people a sense of what does it mean
- 49:07Michael Kennedy: to build one of these AnyWidget widgets.
- 49:09Trevor Manz: Yeah, so the idea within AnyWidget
- 49:11Trevor Manz: is that you create a class that extends from a single class
- 49:15Trevor Manz: that's in anywidget called anywidget.
- 49:17Trevor Manz: And that is what you define both your view,
- 49:20Trevor Manz: so the front end part of that code,
- 49:22Trevor Manz: and then also the back end code for that.
- 49:25Trevor Manz: So it fully encapsulates the idea of a widget
- 49:27Trevor Manz: that has both a back end and a front end component.
- 49:30Michael Kennedy: Yeah, and just to be clear for people,
- 49:32Michael Kennedy: let's say when you say a class,
- 49:33Michael Kennedy: it's not one of those weird prototype JavaScript type things.
- 49:36Michael Kennedy: It's the more modern class keyword,
- 49:40Michael Kennedy: but in ECMAScript, is that right?
- 49:41Trevor Manz: Oh, sorry.
- 49:42Trevor Manz: So right, what we're looking at here is just a Python class that's extending.
- 49:46Michael Kennedy: Oh, this is a Python class.
- 49:47Michael Kennedy: Okay.
- 49:47Michael Kennedy: Yeah.
- 49:48Michael Kennedy: A Python class.
- 49:48Michael Kennedy: Great.
- 49:49Michael Kennedy: And so you create a Python class, but then it has the JavaScript.
- 49:52Michael Kennedy: Exactly.
- 49:53Trevor Manz: So ESM is like a private field that defines a front end module.
- 49:58Trevor Manz: And the whole idea there is that you define a function that's called render that takes
- 50:02Trevor Manz: in two arguments, a model and an element.
- 50:05Trevor Manz: So the model is like this object that talks back to the kernel.
- 50:09Trevor Manz: And an element is whatever the front end, like Jupyter or VS Code gives you as like the output on the screen.
- 50:15Trevor Manz: And so those two things combined, you can call methods on that model to set a value or get a value.
- 50:21Trevor Manz: And then you can update some part of the UI.
- 50:24Michael Kennedy: I see.
- 50:25Michael Kennedy: So you're past like a DOM element, which might be a div or whatever.
- 50:29Michael Kennedy: And then you can just inject JavaScript, like a pen child and other stuff and set a class and whatever.
- 50:34Michael Kennedy: And that builds out the little, the part of the DOM that you control or it's given to you?
- 50:38Trevor Manz: Exactly. And then you can style that however way that you want.
- 50:42Trevor Manz: And then the key thing is that as a part of this adapter,
- 50:46Trevor Manz: when you call methods on this model object that you get,
- 50:49Trevor Manz: I think there's only a few methods that are on it,
- 50:51Trevor Manz: like get, set, and save changes.
- 50:53Trevor Manz: And that just synchronizes values back and forth
- 50:56Trevor Manz: between the front end and the back end.
- 50:58Trevor Manz: And that same sort of API is on the Python side as well.
- 51:02Trevor Manz: And so you can react to those values as they update
- 51:04Trevor Manz: or set them as well on the Python side.
- 51:07Trevor Manz: And then we'll deal for the most part,
- 51:09Trevor Manz: like with serialization of simple data types to one.
- 51:12Trevor Manz: So if you have a float or an int in Python,
- 51:14Trevor Manz: we'll just map that to a number data type.
- 51:16Trevor Manz: We have that mapping in our documentation.
- 51:18Trevor Manz: If you want to serialize to something like JSON,
- 51:20Trevor Manz: that's totally fine too.
- 51:22Trevor Manz: And then you just send that over the wire.
- 51:24Michael Kennedy: Yeah, that's wild.
- 51:25Michael Kennedy: So how does it actually,
- 51:27Michael Kennedy: so we've got a Python class,
- 51:28Michael Kennedy: which I guess probably lives in the kernel.
- 51:31Michael Kennedy: And then it's got HTML JavaScript stuff it's doing
- 51:34Michael Kennedy: that it's setting values.
- 51:37Michael Kennedy: What's this exchange?
- 51:39Michael Kennedy: Where do different pieces run?
- 51:41Michael Kennedy: How do they communicate?
- 51:43Trevor Manz: Sure.
- 51:43Trevor Manz: So that is up to the implementation.
- 51:45Trevor Manz: So whoever builds an adapter for anywidget.
- 51:48Trevor Manz: But the idea is that the front-end code that you write is in the standardized form.
- 51:52Trevor Manz: So you can just call import and import this JavaScript module that you have.
- 51:57Trevor Manz: And then the front-end is responsible for when these different methods get called on model
- 52:03Trevor Manz: for sending that data back and communicating over some sort of mechanism to the backend.
- 52:09Michael Kennedy: Jupyter already has defined something like that.
- 52:11Michael Kennedy: Yeah, so Jupyter has a notion of something called a com,
- 52:14Trevor Manz: and that is implemented over a web socket to communicate back and forth.
- 52:18Trevor Manz: And similar in Marimo, we're not based on Jupyter at all,
- 52:21Trevor Manz: but our any-witted adapter just talks over a web socket with some different messages.
- 52:26Trevor Manz: But basically, we call this a host platform that takes care of that implementation
- 52:31Trevor Manz: and wires up those two ends.
- 52:32Trevor Manz: But then as the widget author, you just care about like,
- 52:35Trevor Manz: here's my JavaScript module, here's my Python code.
- 52:37Trevor Manz: And they use these APIs.
- 52:39Trevor Manz: And then it's someone else's problem to figure out how to wire those up together.
- 52:42Michael Kennedy: Yeah, super neat.
- 52:43Michael Kennedy: Kasaasa, interesting thought here.
- 52:45Michael Kennedy: I'd be super interested to see this working purely in Python.
- 52:48Michael Kennedy: Front end running in Wasm.
- 52:49Michael Kennedy: No need for JavaScript streams in Python.
- 52:51Michael Kennedy: What do you think here?
- 52:52Trevor Manz: Yeah, yeah.
- 52:53Trevor Manz: I haven't played around with some of the Pyodide or the PyScript APIs.
- 53:00Trevor Manz: I think that that would probably be possible.
- 53:02Trevor Manz: the example that you had of draw data before
- 53:05Trevor Manz: for the Marimo notebook that Vincent had
- 53:09Trevor Manz: that is entirely running in the browser
- 53:11Trevor Manz: so that is like the Marimo Python kernel is running in Wasm
- 53:15Trevor Manz: and then we're also loading the JavaScript code
- 53:17Trevor Manz: so we do have folks that just create a Marimo notebook
- 53:21Trevor Manz: and then compile it to WebAssembly
- 53:23Trevor Manz: and then they have a static website that has both of these bits together
- 53:27Michael Kennedy: Okay, that's actually pretty wild, isn't it?
- 53:31Michael Kennedy: So I've seen that there's some other places that I can, anywidget, like Myst.
- 53:36Michael Kennedy: Yeah.
- 53:37Michael Kennedy: And also Mosaic.
- 53:38Michael Kennedy: Tell us about these.
- 53:39Trevor Manz: Yeah, yeah, definitely.
- 53:40Trevor Manz: So Myst, I think on our community page, we have a notion of widgets, and then we have a notion of host platforms.
- 53:50Trevor Manz: And so the two primary host platforms right now are things that are Jupyter-based, so like VS Code, Notebooks, Google Colab.
- 54:01Trevor Manz: binder, like all these things that are based off of a Jupyter kernel and run Python behind the scenes.
- 54:07Trevor Manz: Then Marimo is another host platform and Mist is currently working on an integration
- 54:12Trevor Manz: around that specification for the front-end code. And so the idea is like as long as they have a way
- 54:17Trevor Manz: to, and I'm not sure how far along that is at the moment, but as long as there is a way to run Python
- 54:23Trevor Manz: code and sort of maintain that relationship between that front-end code and back-end code, then
- 54:27Trevor Manz: And you could drop anywidgets within your MyST markdown, for example, as well.
- 54:31Michael Kennedy: Yeah.
- 54:32Michael Kennedy: MIST is wild.
- 54:33Michael Kennedy: I had that team on the podcast a while ago.
- 54:35Michael Kennedy: It's like, you want to create an e-book based on notebooks or whatever, LaTeX paper, or
- 54:42Michael Kennedy: you name it, right?
- 54:42Trevor Manz: Yeah.
- 54:43Michael Kennedy: And yeah.
- 54:45Michael Kennedy: I haven't done anything with Mosaic.
- 54:46Trevor Manz: Yeah, Mosaic.
- 54:47Trevor Manz: I think this is a really cool project.
- 54:50Trevor Manz: So at its core, Mosaic is a bit more of like an architecture.
- 54:54Trevor Manz: And this is probably one of the things that I'm most excited about,
- 54:56Trevor Manz: like the ability that anywidget is bringing to folks
- 54:59Trevor Manz: to experiment with new types of architectures
- 55:02Trevor Manz: for building high-performance visualizations.
- 55:05Trevor Manz: So inside a Mosaic, you have a notion of some database source
- 55:10Trevor Manz: that I believe is typically DuckDB.
- 55:13Trevor Manz: And then you write a bunch of front-end code
- 55:14Trevor Manz: that basically expresses all of the data that it needs
- 55:17Trevor Manz: as queries to that database.
- 55:18Trevor Manz: And then there's a lot of optimizations that can happen
- 55:21Trevor Manz: between those individual views and the database
- 55:24Trevor Manz: that can all be coordinated and allow for very scalable data visualizations.
- 55:29Trevor Manz: One cool thing about Mosaic is that this architecture lends itself very well to notebooks
- 55:34Trevor Manz: because you can keep that database, that DuckDB running completely in the kernel,
- 55:39Trevor Manz: and then you just have your front-end client. But then there's also an option where you just
- 55:42Trevor Manz: completely compile everything into WebAssembly, and then that DuckDB is running in the browser as
- 55:48Trevor Manz: well. And so you get to reuse a lot of this architecture and allows just a lot of code
- 55:53Trevor Manz: reuse and you're just kind of moving that lever of like okay do i need like high performance compute
- 55:58Trevor Manz: okay let me put my database in my hpc and then i'll just have a thin client on top of it versus
- 56:03Trevor Manz: okay actually i want to look at everything in the browser like maybe we can just compile to web
- 56:07Trevor Manz: assembly and let someone drop in a csv and then we can use reuse the same visualization so yeah
- 56:12Michael Kennedy: this is super yeah that's super flexible duckdb has a very interesting WebAssembly story as well so
- 56:18Michael Kennedy: yeah definitely it's definitely catching a lot of attention and people you know it's
- 56:23Michael Kennedy: It's the data science SQLite, right?
- 56:26Trevor Manz: Yeah.
- 56:27Trevor Manz: And I'd say like a growing trend that I've seen by being able to,
- 56:31Trevor Manz: like one thing I didn't, that didn't fully,
- 56:33Trevor Manz: I wasn't fully aware of when I started on anywidget,
- 56:35Trevor Manz: but it has been fun to see is because it became easier to sort of start playing
- 56:39Trevor Manz: with like both front end code and Python code in the same environment.
- 56:42Trevor Manz: Like there've been a lot more, I think, like experimentations around,
- 56:46Trevor Manz: like trying out new types of architectures for building like visualizations.
- 56:50Trevor Manz: And so one trend that I've noticed in our community gallery
- 56:53Trevor Manz: is that a lot of our most popular widgets
- 56:55Trevor Manz: are taking advantage of new data formats like Apache Arrow
- 57:00Trevor Manz: to be able to send lots of data to the browser
- 57:02Trevor Manz: to put on the GPU and render very quickly.
- 57:05Trevor Manz: And so basically, there's a really cool example
- 57:08Trevor Manz: of a widget called Lawnboard,
- 57:10Trevor Manz: which is a geospatial visualization widget,
- 57:13Trevor Manz: which is a wrapper around a front-end library called deck.gl
- 57:16Trevor Manz: that was made by Uber to do geospatial visualization.
- 57:20Trevor Manz: And the previous Jupyter integration,
- 57:22Trevor Manz: like serialized data to JSON to be able to like render inside of deck.gl.
- 57:27Trevor Manz: So the moment that you had to render maybe a few million points,
- 57:29Trevor Manz: it's like you're spending a ton of time serializing that data
- 57:31Trevor Manz: to be able to put it in the browser.
- 57:33Michael Kennedy: Right.
- 57:34Michael Kennedy: It's like using an ORM.
- 57:35Michael Kennedy: They're great until you try to do a query with 100,000 records.
- 57:38Michael Kennedy: You're like, why is this so slow?
- 57:39Trevor Manz: Exactly.
- 57:40Trevor Manz: And so I think there's an example with Lawnboard where
- 57:44Trevor Manz: some data set with like 3.5 million rows just like crashed in the previous,
- 57:48Trevor Manz: or never rendered, maybe it took a few seconds to render,
- 57:51Trevor Manz: or a minute to render.
- 57:53Trevor Manz: But Lawnboard uses Apache Arrow
- 57:55Trevor Manz: and grabs that data from either Arrow, Parquet,
- 57:59Trevor Manz: or all these different file formats.
- 58:00Trevor Manz: And that's very fast to do,
- 58:02Trevor Manz: because you just copy that buffer and ship it to the front end
- 58:04Trevor Manz: and put it on the GPU.
- 58:06Trevor Manz: And so it can do that same example in, I think,
- 58:08Trevor Manz: one or two seconds on modern machines.
- 58:11Trevor Manz: And so it really is this, get your data into a data frame
- 58:13Trevor Manz: and dump it on the GPU and visualize it.
- 58:16Trevor Manz: And that whole idea of,
- 58:18Trevor Manz: oh, what format do I need to convert to to be able to use this tool, this visualization tool
- 58:23Trevor Manz: that I've heard? It's like, no, no, no, just load it as a data frame. And then as long as you get
- 58:27Trevor Manz: your data as a data frame, we can throw it into the web browser. Yeah, super neat. That's the kind
- 58:33Michael Kennedy: of stuff that normal web people don't think about, right? You're like, well, how much is it to
- 58:37Michael Kennedy: serialize a little JSON response? Or, you know, we're talking about a million of them. Oh.
- 58:42Trevor Manz: Yeah, yeah, exactly. And I guess one thing I've been impressed with is just at times where my
- 58:48Trevor Manz: understanding of how good computers have gotten is like, it's just shocking. It's more like, oh,
- 58:54Trevor Manz: I think we're holding ourselves back at times by maybe some of the standard practices versus like,
- 59:00Trevor Manz: yeah, hardware has gotten very good. And if you can make use of that hardware efficiently,
- 59:04Trevor Manz: there's quite a bit that you can do on very low powered devices and visualize a ton of data.
- 59:10Michael Kennedy: Yeah. Quite a while ago, like really long time ago, I did some OpenGL programming and you see,
- 59:15Michael Kennedy: you know, like here, we gave this, the scene a hundred thousand triangles and it's rendering
- 59:19Michael Kennedy: at 200 frames a second. You're like, how, how many operations is that? Like, that is insane. You know,
- 59:25Michael Kennedy: this is like 30 years ago. You were just like, that just blows my mind. Yeah. I think people
- 59:29Michael Kennedy: underestimate what computers can do sometimes, especially if you work with them, right? You're
- 59:32Michael Kennedy: not doing three levels of serialization and deserialization and, and so on. Yeah. Yeah,
- 59:37Michael Kennedy: exactly. That's wild. So what about publishing one of these things? If we go and write,
- 59:42Michael Kennedy: I've created an AnyWidget and it's amazing for me to use, but I want to put it on PyPI so people can UVPIP install it or whatever in their notebook.
- 59:51Trevor Manz: Yeah.
- 59:52Trevor Manz: So I have a couple.
- 59:53Trevor Manz: One, I would recommend if folks are really interested in it, there's a couple of videos I have on my YouTube of just like publishing some widgets and they're linked in the AnyWidget documentation.
- 1:00:03Trevor Manz: But that file that you see there, that's open in the current view that we have.
- 1:00:09Trevor Manz: If you know how to publish a Python file, you can just publish that to PyPI.
- 1:00:12Trevor Manz: and it should just work.
- 1:00:13Trevor Manz: So yeah, the one caveat I'd have is like,
- 1:00:17Trevor Manz: you're looking at an inline string here,
- 1:00:18Trevor Manz: and that's not always the nicest way
- 1:00:20Trevor Manz: to write your front end code.
- 1:00:22Trevor Manz: So you can also just import,
- 1:00:23Trevor Manz: like you can require that as a file instead.
- 1:00:26Trevor Manz: And so you can put that code into a separate file,
- 1:00:28Trevor Manz: type check that or like lint it or like format it
- 1:00:31Trevor Manz: as JavaScript.
- 1:00:32Michael Kennedy: - So write a JavaScript file,
- 1:00:34Michael Kennedy: and then somehow set just,
- 1:00:36Michael Kennedy: would I just read that in Python?
- 1:00:39Michael Kennedy: And then just set the text result,
- 1:00:40Michael Kennedy: like use path and say read text and then jam it in there?
- 1:00:43Trevor Manz: Yeah, we support if you just pass a path,
- 1:00:46Trevor Manz: lib path to ESM, we'll read it for you.
- 1:00:49Michael Kennedy: Oh, okay, perfect, yeah.
- 1:00:51Michael Kennedy: So as long as I have a package
- 1:00:53Michael Kennedy: and the package points out that these JavaScript files
- 1:00:56Michael Kennedy: are to be included at build, then you're good to go?
- 1:00:59Trevor Manz: Yep, and our starter kit template
- 1:01:01Trevor Manz: is all configured with Hatchling to do that for you.
- 1:01:04Michael Kennedy: Yeah, very nice.
- 1:01:05Michael Kennedy: Okay, and I've been using uv build, uv publish these days,
- 1:01:10Michael Kennedy: and it's pretty seamless.
- 1:01:12Trevor Manz: Yeah, yeah.
- 1:01:12Trevor Manz: I think maybe we might need to update the build script
- 1:01:15Trevor Manz: to have uv build as the backend.
- 1:01:17Trevor Manz: So, yeah.
- 1:01:17Michael Kennedy: Yeah, even if you do uv build against something
- 1:01:19Michael Kennedy: with a different backend,
- 1:01:20Michael Kennedy: I think uv just runs that backend instead.
- 1:01:22Michael Kennedy: So not a big deal.
- 1:01:24Michael Kennedy: Not a big deal.
- 1:01:25Michael Kennedy: So what are maybe some of the rough edges
- 1:01:27Michael Kennedy: that people need to look out for these days?
- 1:01:30Michael Kennedy: It's got a lot of stuff that makes things easy,
- 1:01:32Michael Kennedy: but what should they be maybe on the lookout for?
- 1:01:35Trevor Manz: I think the thing that if folks are getting,
- 1:01:39Trevor Manz: Hopefully if you want to try out a widget, it should be as simple as installing any other Python package.
- 1:01:44Trevor Manz: And that is really a goal that we've had for the project, is that if you want to use this like you would some algorithm library that just does computation,
- 1:01:52Trevor Manz: we want that to be as simple as pip installing and getting started.
- 1:01:57Trevor Manz: I would say probably the highest barrier to entry is that it is just this idea of just enough JavaScript.
- 1:02:04Trevor Manz: And so one thing that I try to emphasize in the docs is that I'd really start with a very
- 1:02:10Trevor Manz: simple example if you've never played around in the browser and get used to opening up
- 1:02:15Trevor Manz: your developer tools and logging things and just understanding how to develop maybe a
- 1:02:20Trevor Manz: little bit in the front end.
- 1:02:22Trevor Manz: If you're coming from the front end side, then it would be learning a little bit more
- 1:02:25Trevor Manz: of how does Python work and how do I debug things on the Python side.
- 1:02:29Michael Kennedy: And what is PyPI and how do I even work with that thing?
- 1:02:32Trevor Manz: Exactly. So it's really, I'd say, most of the rough edges are just these problems of working
- 1:02:37Trevor Manz: with two language ecosystems. But that's also been a very important part of AnyWidget because we don't
- 1:02:41Trevor Manz: want people that are ambitious to build things that sort of bridge this gap to feel restricted
- 1:02:46Trevor Manz: from either using things in the Python ecosystem or the web ecosystem. Because we could always write
- 1:02:51Trevor Manz: wrappers to make things easier for authors, but then we'll probably get a bunch of issues that
- 1:02:56Michael Kennedy: then say, hey, I want to use this API and you haven't exposed it. And they're like, hey, we'd like to use
- 1:03:00Michael Kennedy: view, you're like, well, you use our Python thing that defines the DOM.
- 1:03:03Michael Kennedy: Like, oh, okay.
- 1:03:04Michael Kennedy: Yeah, exactly.
- 1:03:05Trevor Manz: So with great power comes great responsibility, but we want to give that to people that want
- 1:03:11Trevor Manz: to build these types of integrations.
- 1:03:12Trevor Manz: Yeah.
- 1:03:13Michael Kennedy: So what about agentic AI for this kind of stuff?
- 1:03:16Michael Kennedy: I know five years ago, you have to learn every step of the JavaScript.
- 1:03:20Michael Kennedy: How much can I say, take my inline JavaScript, put it into a JS file, and then point it at,
- 1:03:26Michael Kennedy: you know, ask Claude Sonnet, hey, this is an AnyWidget widget, and this is the JavaScript.
- 1:03:30Michael Kennedy: and here's what I'm trying to accomplish.
- 1:03:31Michael Kennedy: I bet you could go pretty far
- 1:03:34Michael Kennedy: with a marginal understanding of JavaScript
- 1:03:36Michael Kennedy: as a Python person, plus some kind of AI.
- 1:03:39Michael Kennedy: What do you think?
- 1:03:39Trevor Manz: Oh, yeah, absolutely.
- 1:03:41Trevor Manz: I think, like I mentioned earlier,
- 1:03:43Trevor Manz: Vincent works and I work very closely together.
- 1:03:46Trevor Manz: And his joke that he likes to tell
- 1:03:48Trevor Manz: is that I created anywidgets
- 1:03:49Trevor Manz: so that he could make anywidgets.
- 1:03:53Trevor Manz: And the ability to vibe code
- 1:03:55Trevor Manz: sort of the front end for an object
- 1:03:58Trevor Manz: really is eye-opening if you've never tried it.
- 1:04:00Trevor Manz: before if you're working with your data.
- 1:04:02Trevor Manz: And I think one of the barriers maybe of trying out
- 1:04:05Trevor Manz: or of thinking about how to use anywidget
- 1:04:09Trevor Manz: is knowing when it might be useful.
- 1:04:11Trevor Manz: And really, it's like anytime you have an object
- 1:04:13Trevor Manz: that you might want to visualize in a particular way
- 1:04:16Trevor Manz: or maybe extend with some extra capabilities
- 1:04:20Trevor Manz: in your notebook environment,
- 1:04:21Trevor Manz: that's a perfect time to open up some agentic tool
- 1:04:25Trevor Manz: and start trying to explain what you're thinking about.
- 1:04:29Trevor Manz: because it's just JavaScript and not like a custom framework that we wrote or, and it's not like,
- 1:04:35Trevor Manz: they're very good at like writing this type of code. And so sometimes you might need to,
- 1:04:39Trevor Manz: we have a set of rules to try to like help it, make sure it doesn't like try to do React or
- 1:04:43Trevor Manz: something, but it can go very far. And because it's just like a view on top of like your data,
- 1:04:48Trevor Manz: it's like, it's kind of the perfect thing to play around with vibe coding, I think is.
- 1:04:52Michael Kennedy: It's incredible how far you can go with this stuff. You can, you can give it your data source
- 1:04:56Michael Kennedy: and say, here's the data source,
- 1:04:57Michael Kennedy: here's what I'm trying to do.
- 1:04:58Michael Kennedy: And because the data sources often can be
- 1:05:01Michael Kennedy: really foundational like CSV or whatever.
- 1:05:02Michael Kennedy: And then importantly, because it's just pure JavaScript,
- 1:05:06Michael Kennedy: AI goes crazy on pure JavaScript and pure Python, right?
- 1:05:10Michael Kennedy: It's unleashed.
- 1:05:11Michael Kennedy: Yeah, it's crazy.
- 1:05:12Trevor Manz: So to plug it back to Marimo for a second,
- 1:05:16Trevor Manz: I think because it's just Python and just JavaScript,
- 1:05:19Trevor Manz: it's a really fun environment
- 1:05:21Trevor Manz: to actually create anywidgets in.
- 1:05:22Trevor Manz: And we have some integrations with like AI chat
- 1:05:26Trevor Manz: within our editor where we actually will inspect some of your Python variables and include that
- 1:05:32Trevor Manz: in the prompts as you're trying to work on things.
- 1:05:34Trevor Manz: So if you're saying, "Hey, I want to make a widget and I want to visualize this data
- 1:05:38Trevor Manz: frame," you can actually tag the object that you want to start programming around.
- 1:05:43Trevor Manz: And that will include things like the schema and stuff as it gives it to the model, such
- 1:05:46Trevor Manz: that then you get that sort of grounds it at least when it's writing that JavaScript code
- 1:05:50Trevor Manz: to grab the right columns and things off the data set and get to the ground running without
- 1:05:54Trevor Manz: you having to procure those things as well.
- 1:05:56Trevor Manz: So it's a pretty fun environment to create these things.
- 1:05:59Michael Kennedy: It's a weird time, isn't it, that we live in?
- 1:06:01Michael Kennedy: Kind of magical and also scary, but just weird.
- 1:06:04Michael Kennedy: Yeah, definitely.
- 1:06:05Michael Kennedy: But very much fun as well.
- 1:06:08Michael Kennedy: I would throw out there, if people are interested,
- 1:06:10Michael Kennedy: check out the Matt Makai episode I did on HHC programming
- 1:06:14Michael Kennedy: three or four episodes ago.
- 1:06:15Michael Kennedy: And choose a good model.
- 1:06:16Michael Kennedy: I find people are like, I tried this.
- 1:06:18Michael Kennedy: It did a bunch of junk.
- 1:06:19Michael Kennedy: It's like, yeah, but use the free tier, right?
- 1:06:20Michael Kennedy: I see.
- 1:06:22Michael Kennedy: There's a big difference between the top tier models
- 1:06:25Michael Kennedy: and the cheaper ones.
- 1:06:26Michael Kennedy: So, all right. Where are we going? What's the roadmap look like for anywidget?
- 1:06:31Trevor Manz: Yeah. So the roadmap for anywidget, I think looks a lot like trying to iron, like trying to get users to, or authors to understand some of these patterns that are like emerging in the ecosystem for like building some of these, maybe more like high performance, like visualization tools.
- 1:06:46Trevor Manz: In terms of the library itself, there may be a few features that we want to add for users.
- 1:06:51Trevor Manz: But I think one of the most important things is that we just ensure that we stay backwards compatible now that we have something that people are building around.
- 1:07:01Trevor Manz: And so my call to action is just to try to get more folks, if they are curious, to try out building new widgets and let's keep this ecosystem pretty healthy.
- 1:07:12Trevor Manz: And then on top of that, if there are places where folks are like running into limitations of like the specification as is, then getting like invested parties either from, you know, the implementers to try to understand like what APIs we need to add to support things in the future.
- 1:07:26Trevor Manz: So, yeah.
- 1:07:27Michael Kennedy: Amazing.
- 1:07:28Michael Kennedy: It was up my mind, but I forgot to ask it when we were talking about this, where things run.
- 1:07:33Michael Kennedy: If this is running in the kernel and you're doing HPC type stuff, I could potentially use Rust or C++ as part of building my widget.
- 1:07:40Michael Kennedy: Is that right?
- 1:07:41Trevor Manz: Yeah, definitely. So one pattern we've seen is like, you know, you just try to do as little as you like just the interactive bits that you want in the front end. And then you have the full resources of anything that you can do in Python on the on the back end side, right. And because Python is such a language that has sort of grown to be able to be extended with all these like systems level programming languages, there's like a lot that you can tap into there in terms of like, yeah, high performance compute or like.
- 1:08:07Trevor Manz: So my hope is that really we push user or push anywidget authors of creating like interesting interactive elements that then allow us to really like have that extra input into these like really scalable like ecosystem, data ecosystem that we have on the Python side.
- 1:08:23Michael Kennedy: Awesome.
- 1:08:24Michael Kennedy: PR is accepted?
- 1:08:25Trevor Manz: Absolutely.
- 1:08:26Trevor Manz: Yeah.
- 1:08:26Michael Kennedy: Yeah.
- 1:08:27Michael Kennedy: Yeah.
- 1:08:27Michael Kennedy: Okay.
- 1:08:28Michael Kennedy: So yeah, people can check it out here on GitHub.
- 1:08:30Michael Kennedy: Of course, we'll link to that.
- 1:08:31Michael Kennedy: And yeah, you got ideas.
- 1:08:33Michael Kennedy: All right.
- 1:08:33Michael Kennedy: Get in there and add it.
- 1:08:35Trevor Manz: Yeah.
- 1:08:35Michael Kennedy: And we also have a Discord.
- 1:08:36Trevor Manz: So folks, like you open up a notebook
- 1:08:40Trevor Manz: and you run into something or you just, you have an idea,
- 1:08:42Trevor Manz: like there's plenty of folks or I'm in there.
- 1:08:45Trevor Manz: And I love to try to get people
- 1:08:47Trevor Manz: for their first bit of JavaScript ever.
- 1:08:50Trevor Manz: I think it's pretty fun when someone has an idea
- 1:08:52Trevor Manz: and you just, we help them get there.
- 1:08:54Michael Kennedy: So like, but it's JavaScript.
- 1:08:56Michael Kennedy: Like, no, no, you're going to be okay.
- 1:08:57Michael Kennedy: It's not that much.
- 1:08:57Michael Kennedy: It's just enough JavaScript, right?
- 1:08:59Michael Kennedy: Exactly.
- 1:09:00Trevor Manz: Whatever that means to you.
- 1:09:02Michael Kennedy: Exactly.
- 1:09:03Michael Kennedy: Just enough is so that my thing works.
- 1:09:05Michael Kennedy: All right.
- 1:09:05Michael Kennedy: Trevor, thank you so much for being on the show.
- 1:09:07Michael Kennedy: I really appreciate it.
- 1:09:08Michael Kennedy: And congrats on anywidget.
- 1:09:10Michael Kennedy: Looks super cool.
- 1:09:12Michael Kennedy: It definitely looks like it's all of any need
- 1:09:13Michael Kennedy: and easy to work with.
- 1:09:14Trevor Manz: Yeah, thanks so much for having me.
- 1:09:16Michael Kennedy: Yeah, you bet.
- 1:09:17Michael Kennedy: See you later.
- 1:09:17Trevor Manz: See ya.
- 1:09:19Michael Kennedy: This has been another episode of Talk Python To Me.
- 1:09:22Michael Kennedy: Thank you to our sponsors.
- 1:09:23Michael Kennedy: Be sure to check out what they're offering.
- 1:09:24Michael Kennedy: It really helps support the show.
- 1:09:26Michael Kennedy: Look into the future and see bugs
- 1:09:28Michael Kennedy: before they make it to production.
- 1:09:30Michael Kennedy: Sentry's Seer AI code review
- 1:09:32Michael Kennedy: uses historical error and performance information
- 1:09:34Michael Kennedy: at Sentry to find and flag bugs in your PRs before you even start to review them. Stop bugs before
- 1:09:41Michael Kennedy: they enter your code base. Get started at talkpython.fm/seer-code-review. And this
- 1:09:47Michael Kennedy: episode is sponsored by JetBrains and the PyCharm team. This week only through December 19th, 2025,
- 1:09:54Michael Kennedy: get 30% off of PyCharm Pro, including renewals, and PyCharm will donate all the proceeds to the
- 1:10:00Michael Kennedy: Python Software Foundation. Support the PSF by getting or renewing PyCharm. Visit talkpython.fm
- 1:10:06Michael Kennedy: slash PyCharm dash PSF dash 2025 and use the code strongerpython. Both of these are in your podcast
- 1:10:13Michael Kennedy: player show notes. If you or your team needs to learn Python, we have over 270 hours of beginner
- 1:10:18Michael Kennedy: and advanced courses on topics ranging from complete beginners to async code, Flask, Django,
- 1:10:24Michael Kennedy: HTML, HTML, HTML, HTML, HTML, HTML, HTML, HTML, HTML, HTML, HTML, HTML, HTML, HTML, HTML, HTML.
- 1:10:31Michael Kennedy: And if you're not already subscribed to the show on your favorite podcast player,
- 1:10:35Michael Kennedy: what are you waiting for?
- 1:11:02Michael Kennedy: I'm out.