Latest / Talk Python To Me / #555: Marimo Pair - A Canvas for Agent + Developers Collaboration
Transcript
- 0:00Michael Kennedy: Coding agents have gotten really good at one kind of work.
- 0:03Michael Kennedy: You scope a feature, edit some files, run the test, ship it.
- 0:07Michael Kennedy: It all happens on disk.
- 0:08Michael Kennedy: But that is not how data work feels.
- 0:11Michael Kennedy: You load something, you look at it, you run a cell, you watch how it responds,
- 0:14Michael Kennedy: you decide the next move from whatever is sitting in memory.
- 0:18Michael Kennedy: And until now, your agent couldn't see any of that.
- 0:20Michael Kennedy: They only saw files, never the live state.
- 0:24Michael Kennedy: On this episode, that wall comes down.
- 0:26Michael Kennedy: Marimo pair drops a coding agent right inside a running notebook with full access to every variable Python is holding in memory.
- 0:33Michael Kennedy: The notebook becomes a shared canvas.
- 0:35Michael Kennedy: You point, it runs the code.
- 0:38Michael Kennedy: You tell it to zoom in on a graphic and the chart just updates.
- 0:41Michael Kennedy: No MCP tools to wire up, no schema to describe, just Python and an agent that can finally see what you see.
- 0:49Michael Kennedy: Trevor Manz from Marimo is back to walk us through it.
- 0:53Michael Kennedy: This is Talk Python To Me, episode 555, recorded June 30th, 2026.
- 1:17Michael Kennedy: Welcome to Talk Python To Me, the number one Python podcast for developers and data scientists.
- 1:22Michael Kennedy: This is your host, Michael Kennedy.
- 1:24Michael Kennedy: I'm a PSF fellow who's been coding for over 25 years.
- 1:28Michael Kennedy: Let's connect on social media.
- 1:30Michael Kennedy: You'll find me and Talk Python on Mastodon, BlueSky, and X.
- 1:33Michael Kennedy: The social links are all in your show notes.
- 1:36Michael Kennedy: You can find over 10 years of past episodes at talkpython.fm.
- 1:39Michael Kennedy: And if you want to be part of the show, you can join our recording live streams.
- 1:43Michael Kennedy: That's right.
- 1:43Michael Kennedy: We live stream the raw uncut version of each episode on YouTube.
- 1:47Michael Kennedy: Just visit talkpython.fm/youtube to see the schedule of upcoming events.
- 1:52Michael Kennedy: Be sure to subscribe there and press the bell so you'll get notified anytime we're recording.
- 1:56Michael Kennedy: This episode is brought to you by Sentry.
- 1:59Michael Kennedy: You know Sentry for the error monitoring, but they now have logs too.
- 2:02Michael Kennedy: And with Sentry, your logs become way more usable,
- 2:05Michael Kennedy: interleaving into your error reports to enhance debugging and understanding.
- 2:10Michael Kennedy: Get started today at talkpython.fm/sentry.
- 2:14Michael Kennedy: Trevor, welcome back to Talk Python.
- 2:16Michael Kennedy: Great to have you back.
- 2:17Michael Kennedy: Yeah, thanks for having me again.
- 2:19Michael Kennedy: We'll probably talk about notebooks, data science, maybe a little bit of AI in the mix.
- 2:24Trevor Manz: Yeah, definitely. We've been doing a lot at Marimo and thinking about how agents can play nice with notebooks.
- 2:30Michael Kennedy: I think it's a little bit of an extra challenge, so it's going to be fun to see what you all have in mind.
- 2:35Michael Kennedy: Now, before we get into that, it's been a year since you've been on the show to talk about AnyWidget.
- 2:40Michael Kennedy: Just give us a quick introduction for folks who maybe didn't listen to that episode.
- 2:43Trevor Manz: Yeah, AnyWidget is both a specification and a toolkit for making interactive UI elements
- 2:50Trevor Manz: that deeply integrate into your interactive programming environments,
- 2:54Trevor Manz: and specifically Python environments.
- 2:56Trevor Manz: It has deep integration into Marimo, which is the company that I work at now,
- 3:00Trevor Manz: where we build a new kind of reactive Python notebook.
- 3:03Michael Kennedy: I'm a fan of Marimo. I don't do that much stuff in notebooks,
- 3:06Michael Kennedy: but if I did, I would be using Marimo most of the time.
- 3:09Michael Kennedy: It's kind of like that Dos Equis.
- 3:11Michael Kennedy: Yeah, yeah.
- 3:13Trevor Manz: I like to, depending on the ilk of user that we have,
- 3:17Trevor Manz: I like to make the joke that there are often
- 3:19Trevor Manz: a certain group of folks that have plenty of notebook friends
- 3:24Trevor Manz: but don't really use notebooks themselves.
- 3:26Trevor Manz: And I'd like to at least pitch why I think Marimo
- 3:30Trevor Manz: scratches the itch of many more software developers
- 3:31Trevor Manz: and represents more traditional software
- 3:34Trevor Manz: than traditional computational notebooks.
- 3:37Michael Kennedy: I think it also kind of is special for people
- 3:41Michael Kennedy: We were more on the software development side because it's a little more Python focused instead of special tool focused in that.
- 3:47Michael Kennedy: We'll talk about Marimo in a second.
- 3:49Michael Kennedy: But like, for example, instead of having IPY and B files, it has just Python files.
- 3:54Trevor Manz: Yeah, we are hyper focused on Python.
- 3:56Trevor Manz: So we're from all the way from the, you know, our file format down to the way that we understand the relationships between yourselves.
- 4:04Trevor Manz: It's all oriented around the Python ecosystem.
- 4:07Michael Kennedy: Yeah, that's probably going to pay off a little bit when we talk about this project here.
- 4:10Trevor Manz: Yeah, definitely.
- 4:12Trevor Manz: Definitely.
- 4:13Michael Kennedy: All right, well, actually, let's do a quick refresher on just what Marimo is.
- 4:19Michael Kennedy: Am I saying that right?
- 4:19Michael Kennedy: Marimo?
- 4:20Michael Kennedy: Sorry, I should be saying Marimo, right?
- 4:21Trevor Manz: Yep, it's Marimo.
- 4:22Trevor Manz: Yep.
- 4:23Michael Kennedy: Okay.
- 4:24Michael Kennedy: Give us a quick refresher for people who don't know.
- 4:26Michael Kennedy: You know, it's sort of in the realm of JupyterLab, but also different.
- 4:30Trevor Manz: Yeah.
- 4:31Trevor Manz: Marimo is spiritually a computational notebook, much similar to something like Jupyter or Google
- 4:36Trevor Manz: Colab, if folks have used that before.
- 4:38Trevor Manz: But as we just mentioned earlier in the show, we're hyper-focused on the Python ecosystem.
- 4:43Trevor Manz: And we are also a special kind of notebook in that we are a reactive Python notebook.
- 4:49Trevor Manz: So what that means is that the order in which Marimo understands your notebook is not in the
- 4:55Trevor Manz: order that you wrote the cells, but the actual data flow between the cells.
- 4:58Trevor Manz: And so we understand the relationships between your cells based off of the variables they
- 5:03Trevor Manz: declare and where those variables are used.
- 5:05Trevor Manz: And then we know how to automatically re-execute the notebook to ensure that you don't get to some sort of inconsistent state in your notebook.
- 5:11Trevor Manz: So you can really think of Marimo as you are incrementally building a Python program rather than sort of a scratch pad or a set of logs of like some code that ran.
- 5:19Michael Kennedy: It sounds like a minor feature, this reactive bit, but it's not so minor.
- 5:24Michael Kennedy: I'll tell you what, like I'm sure people who've done a lot of work with notebooks have had the experience where they're iterating, iterating, going back, editing, making changes.
- 5:33Michael Kennedy: and maybe go back three cells, edit something, rerun that cell,
- 5:37Michael Kennedy: go down back to where they were and continue.
- 5:39Michael Kennedy: Like, why is this?
- 5:40Michael Kennedy: It doesn't seem to do anything.
- 5:43Michael Kennedy: Or this is not what I expected or whatever.
- 5:45Michael Kennedy: And then you realize, oh, because I didn't run the two cells
- 5:49Michael Kennedy: or the one cell in the middle that actually used that value,
- 5:52Michael Kennedy: which then flowed on to the next, right?
- 5:54Michael Kennedy: And basically what you're saying with this Reactive Notebooks
- 5:57Michael Kennedy: is unless you overwrite it or something,
- 5:59Michael Kennedy: that can't happen with Marimo.
- 6:01Trevor Manz: Yeah, it's essentially when you're working
- 6:03Trevor Manz: something like a Jupyter notebook,
- 6:05Trevor Manz: you, the user, have to do a form of bookkeeping
- 6:07Trevor Manz: to make sure that whatever state exists in the kernel
- 6:11Trevor Manz: is representative of whatever cells you have on the screen.
- 6:14Trevor Manz: And discipline doesn't really scale necessarily,
- 6:17Trevor Manz: or it becomes hard to do that bookkeeping yourself.
- 6:20Michael Kennedy: Come on, I don't buy it because look,
- 6:22Michael Kennedy: when you go into Jupyter, it says like 27, 34, 57, 58, and then 90.
- 6:30Michael Kennedy: And if you see one of those,
- 6:31Michael Kennedy: if you're not doing your bubble sorting,
- 6:32Michael Kennedy: that's out of order. You know you've got to go back and run it. I mean, we all keep track of this.
- 6:37Trevor Manz: Yeah, but essentially the moment that you get to some sort of complex notebook and state,
- 6:43Trevor Manz: that becomes a lot of cognitive overhead that you as the user sort of have to keep in mind in order
- 6:48Trevor Manz: to ensure that what you're doing is representative, such that when you hand off your notebook to
- 6:52Trevor Manz: someone else, they're able to confidently reproduce that execution that you had in front of you and get
- 6:57Michael Kennedy: back to that state. And so with Maremo, we offload that.
- 6:59Michael Kennedy: It's just about that, right?
- 7:00Michael Kennedy: Like that's obviously a problem.
- 7:02Trevor Manz: Yeah.
- 7:03Trevor Manz: And so at Marimo, you essentially offload that bookkeeping to a system,
- 7:07Trevor Manz: which we do this dependency tracking of your variables
- 7:10Trevor Manz: and where they're declared and where they're used.
- 7:13Trevor Manz: And essentially we can provide guarantees that if you try to do something like
- 7:16Trevor Manz: rerun a cell, we will rerun all descendant cells of that cell.
- 7:20Trevor Manz: Or if you try to redeclare a variable, we'll tell you,
- 7:22Trevor Manz: hey, you already declared this variable and eliminate this problem of hidden state.
- 7:27Trevor Manz: such that when you do end up working on a team
- 7:29Trevor Manz: with more than one individual
- 7:30Trevor Manz: and you want to hand off that artifact to someone,
- 7:33Trevor Manz: they can confidently run the notebook
- 7:34Trevor Manz: and reproduce the execution results
- 7:37Trevor Manz: that you were looking at
- 7:38Trevor Manz: when you ran that notebook earlier.
- 7:40Michael Kennedy: Yeah, it pretty much guarantees ordering.
- 7:42Michael Kennedy: Yep.
- 7:42Michael Kennedy: Okay.
- 7:43Michael Kennedy: Also, it's got a really nice modern UI feel, I think.
- 7:49Michael Kennedy: It looks good.
- 7:50Michael Kennedy: It feels fresh.
- 7:51Michael Kennedy: And I don't know, for some people,
- 7:52Michael Kennedy: maybe that doesn't matter.
- 7:54Michael Kennedy: But to me, I'm working on stuff.
- 7:56Michael Kennedy: I just feel better if it's a nice UI and it looks polished instead of old school.
- 8:01Trevor Manz: Yeah, and because we are hyper-focused on the Python ecosystem,
- 8:05Trevor Manz: we've been able to think about common data structures and objects that are in the Python ecosystem
- 8:10Trevor Manz: and then really have polished user experiences for inspecting and understanding those objects.
- 8:14Trevor Manz: So inside of a Marimo notebook, if you load a data frame, whether that's a Polars data frame
- 8:18Trevor Manz: or a Pandas data frame or an IBIS table or anything that implements this data frame protocol,
- 8:24Trevor Manz: which is a standard in the Python ecosystem,
- 8:26Trevor Manz: we can represent and render
- 8:28Trevor Manz: in a really nice interactive table.
- 8:30Trevor Manz: And so we're able to do that
- 8:32Trevor Manz: because we're tailored around this Python ecosystem
- 8:34Trevor Manz: and we're able to polish both the user experience
- 8:36Trevor Manz: on the front end side
- 8:38Trevor Manz: as well as all the way down to the kernel
- 8:41Trevor Manz: in terms of being able to share
- 8:42Trevor Manz: these reproducible notebook documents.
- 8:44Michael Kennedy: Okay, yeah, I love it.
- 8:46Michael Kennedy: All right, so that's Marimo.
- 8:47Michael Kennedy: And what we're talking about today
- 8:49Michael Kennedy: is not exactly Marimo,
- 8:51Michael Kennedy: but more AI plus notebooks in a particular tool, agent skill.
- 8:56Michael Kennedy: I don't know.
- 8:57Michael Kennedy: We're going to get into that, what it is.
- 8:59Michael Kennedy: But before we do, let's just talk about how do people,
- 9:03Michael Kennedy: like what do people do with, say, either Marima or Jupyter or JupyterLab today
- 9:10Michael Kennedy: without a tool like Marima pair?
- 9:12Trevor Manz: Yeah, I'd say that the software as I've known it over the past year
- 9:16Trevor Manz: has changed quite a bit for traditional software development.
- 9:19Trevor Manz: And as we started working more and more on Marimo,
- 9:22Trevor Manz: we were using agents to perform more of our traditional software development.
- 9:27Trevor Manz: And many of our users were asking,
- 9:29Trevor Manz: what's the best way to use Marimo with agents?
- 9:31Trevor Manz: Because they've been using Marimo.
- 9:33Trevor Manz: And I think that many different,
- 9:36Trevor Manz: if you'd ever tried out of the box to use one of these coding agents with notebooks,
- 9:40Trevor Manz: whether it be Marimo or JupyterLab or Jupyter or Google Colab,
- 9:46Trevor Manz: there kind of felt like this difference or like awkwardness in that user experience in terms of
- 9:51Trevor Manz: being able to drive that interactive environment in a way that I think was very sort of unsettling
- 9:57Trevor Manz: or unfulfilling compared to traditional software development because you're able to sort of like
- 10:02Trevor Manz: put off your agent on these long-lived software tasks and then come back and have it run the test
- 10:07Trevor Manz: and let it get in these type loops to be able to autocorrect and do this sort of like traditional
- 10:13Trevor Manz: programming and software development.
- 10:15Trevor Manz: But when you tried to apply it to a data problem,
- 10:18Trevor Manz: things would happen where you edit the file
- 10:20Trevor Manz: and then you could get to some inconsistent state
- 10:22Trevor Manz: inside the notebook,
- 10:24Trevor Manz: or the agent couldn't actually see the actions
- 10:25Trevor Manz: that it performed inside that notebook.
- 10:27Trevor Manz: And it wasn't really able to get inside those tight loops.
- 10:30Trevor Manz: And so we really started thinking from the bottom up,
- 10:33Trevor Manz: how can we open up Marimo in such a way
- 10:35Trevor Manz: that it's actually useful to an agent
- 10:36Trevor Manz: rather than just this data source that it can query
- 10:39Trevor Manz: and really try to extend that agent's working environment with notebooks the same way that,
- 10:45Trevor Manz: you know, humans have used notebooks for working on data tasks.
- 10:49Michael Kennedy: I think notebooks are particularly tricky for AI to work with because many people know,
- 10:55Michael Kennedy: but probably not everyone.
- 10:57Michael Kennedy: When you look at a Jupyter notebook, the IPY in B file, you've got your cell definition
- 11:03Michael Kennedy: with code or markdown or whatever's in there.
- 11:06Michael Kennedy: But also, and this is the part that makes it tricky part of the part, is that all the output.
- 11:11Michael Kennedy: So if you've got something that lists out a thousand rows, that's just embedded in the JSON that defines that notebook file, right?
- 11:21Michael Kennedy: And so as a Claude Code or a codex or whatever that's going to go through and try to understand it,
- 11:26Michael Kennedy: it's got to skim through all of that output, determine most of it is irrelevant to me.
- 11:31Michael Kennedy: Some of it is relevant.
- 11:32Michael Kennedy: Maybe it was run in the wrong order.
- 11:34Michael Kennedy: So if it does try to look at the output, it's actually, right, there's no enforcement of an order.
- 11:37Michael Kennedy: And so if it's run in the wrong order, the output might be present and they might want to use it,
- 11:43Michael Kennedy: but it's actually wrong because it was run, it's stale from what's actually in there.
- 11:47Michael Kennedy: There's a lot of issues, right, to just work directly on the file format.
- 11:51Trevor Manz: Yeah, I think, you know, as we started thinking about this problem, I think that we, you know,
- 11:56Trevor Manz: even ourselves at Marimo started to realize that for notebooks, these file formats are more the
- 12:00Trevor Manz: artifact of the work rather than the source necessarily of the code. And really, it's the
- 12:07Trevor Manz: editor combined with the state, which is how you are authoring these notebooks in this live,
- 12:12Trevor Manz: interactive environment. And that by just allowing agents to use their tools out of the box and edit
- 12:17Trevor Manz: those artifacts on disk, they're missing a lot of the context in which those files are actually
- 12:24Trevor Manz: authored. And they're also, in what you just mentioned, they are polluted with additional
- 12:28Trevor Manz: context that's not necessarily useful to like performing a coding task on behalf of the user.
- 12:33Michael Kennedy: Yeah, it's like, hey, Claude, work on this. And by the way, here's 10,000 lines of stuff that may
- 12:37Michael Kennedy: either help you or harm you depending on stuff you can't determine really.
- 12:41Trevor Manz: Yeah, exactly. So I think we started to think about this as more, you know, humans, like,
- 12:48Trevor Manz: you know, out of the box, these coding agents are equipped with sort of like the ability to read
- 12:52Trevor Manz: and write files and run bash scripts. And those tools really fit like the tasks of traditional
- 12:57Trevor Manz: software development because that type of like the way that our command line tools and work that we
- 13:01Trevor Manz: do for traditional software development work or that the file system is really the source of truth
- 13:07Trevor Manz: and then you like make changes to those files and then you run sort of these like stateless commands
- 13:11Trevor Manz: that like run your tests or basically take those changes and apply them and see if like what effect
- 13:16Trevor Manz: that those have had and humans you know for data tasks have have sort of gone beyond the tools of
- 13:22Trevor Manz: reading and writing and editing files and running batch scripts and instead we use these really like
- 13:27Trevor Manz: interactive repls or sort of live programming environments for working with data because they
- 13:31Trevor Manz: give us this ability to like iterate on intermediate results and values. So it's not like you run a
- 13:37Trevor Manz: script, maybe you made an error, you have to run that script again from scratch. Instead, we can
- 13:40Trevor Manz: like load a data set into memory and then sort of inspect those values and sort of iterate on them
- 13:45Trevor Manz: in memory. And so like the usefulness of those sort of interactive environments like Excel or
- 13:51Trevor Manz: Jupyter or Marimo or even something like RStudio is that they're stateful. And one problem is that
- 13:58Trevor Manz: these agents weren't really good at accessing those stateful environments. And so that's exactly what
- 14:05Trevor Manz: made it hard for us to open up those environments to agents. And I think there are many different
- 14:09Trevor Manz: approaches that folks have taken. And even we took originally to try to make Marimo a useful tool.
- 14:14Trevor Manz: And it took us a little while to figure out what were the ergonomics that work well for agents.
- 14:19Michael Kennedy: Sure. So what you're saying is basically, instead of running on the file system,
- 14:25Michael Kennedy: like the coding agents do now for, say, my code, I guess,
- 14:29Michael Kennedy: what instead they need is they need to run in the kernel,
- 14:32Michael Kennedy: kind of looking at the state of things in the kernel as it's working
- 14:36Michael Kennedy: more than, say, regular programming code.
- 14:39Trevor Manz: Exactly. Yeah. Because, you know, when we, as humans have adopted these tools,
- 14:43Trevor Manz: the reason we adopt them is because it's not just the code,
- 14:45Trevor Manz: it's the values and the in-memory representations of those data
- 14:49Trevor Manz: So it's not just that I have this data frame on disk or this file on disk that has my data,
- 14:55Trevor Manz: it's that I want to look at the table and I want to see what those values are. And that may determine
- 14:59Trevor Manz: the next step that I'm going to take with that data of what plots I'm going to do or what validations
- 15:04Trevor Manz: I'm going to run on these data. And so really we had to sort of invert that thinking and think more
- 15:09Trevor Manz: about how do we extend these agents with a useful tool, which is a notebook for doing this sort of
- 15:15Trevor Manz: data work and iterating on those intermediate values.
- 15:20Michael Kennedy: This portion of Talk Python To Me is brought to you by Sentry.
- 15:22Michael Kennedy: You know Sentry for their great error monitoring, but let's talk about logs.
- 15:27Michael Kennedy: Logs are messy.
- 15:28Michael Kennedy: Trying to grep through them and line them up with traces and dashboards just to understand
- 15:32Michael Kennedy: one issue isn't easy.
- 15:34Michael Kennedy: Did you know that Sentry has logs too?
- 15:37Michael Kennedy: And your logs just became way more usable.
- 15:39Michael Kennedy: Sentry's logs are trace connected and structured, so you can follow the request flow and filter
- 15:44Michael Kennedy: by what matters. And because Sentry surfaces the context right where you're debugging, the trace,
- 15:50Michael Kennedy: relevant logs, the error, and even the session replay all land in one timeline. No timestamp
- 15:55Michael Kennedy: matching, no tool hopping. From front end to mobile to back end, whatever you're debugging,
- 15:59Michael Kennedy: Sentry gives you the context you need so you can fix the problem and move on. More than 4.5 million
- 16:05Michael Kennedy: developers use Sentry, including teams at Anthropic and Disney+. Get started with Sentry
- 16:10Michael Kennedy: logs and error monitoring today at talkpython.fm/sentry. Be sure to use our code talkpython26.
- 16:17Michael Kennedy: The link is in your podcast player show notes. Thank you to Sentry for supporting the show.
- 16:22Michael Kennedy: Maybe good time to introduce Marimo pair. What is this? Yeah, so Marimo pair is an agent skill
- 16:30Trevor Manz: that drops an agent inside of an active Marimo kernel. And it allows basically it's a single tool
- 16:36Trevor Manz: that allows the agent to run Python code inside of that kernel
- 16:39Trevor Manz: to inspect and perform any sort of understanding
- 16:42Trevor Manz: what sort of intermediate values you have
- 16:44Trevor Manz: inside of your kernel environment,
- 16:46Trevor Manz: but then also drive the authorship of the notebook itself
- 16:48Trevor Manz: and run and execute cells.
- 16:50Trevor Manz: So basically it allows the agent to do anything
- 16:52Trevor Manz: you could do in a Marimo notebook
- 16:55Trevor Manz: and extend your analysis with an agent
- 16:59Trevor Manz: by giving the agent the ability to drive the exploration
- 17:02Trevor Manz: of a Marimo notebook.
- 17:03Michael Kennedy: Interesting.
- 17:04Michael Kennedy: Okay, so how does it get inside the notebook?
- 17:07Michael Kennedy: You know what I mean?
- 17:07Michael Kennedy: Do you have to change your code or something like that?
- 17:11Michael Kennedy: Do you have to include something?
- 17:13Trevor Manz: Yeah, so the setup is essentially an agent skill
- 17:15Trevor Manz: that you can install either from,
- 17:17Trevor Manz: if you're using something like Claude Code,
- 17:18Trevor Manz: you can install it from the Cloud Marketplace.
- 17:20Trevor Manz: You can install from Codex from a Marketplace as well.
- 17:23Trevor Manz: Or you can use an NPX command to install a skill from GitHub.
- 17:28Trevor Manz: And that skill teaches the agent how to use a single tool,
- 17:31Trevor Manz: which is essentially just run Python.
- 17:34Trevor Manz: And that single tool call allows the agent to run any kind of Python it wants to in the running Marimo kernel.
- 17:40Trevor Manz: So inside that kernel environment, it can do things like list variables that are in the notebook.
- 17:44Trevor Manz: It can inspect the cells of the notebook and look at the outputs of the notebook.
- 17:48Trevor Manz: But then it can also perform sort of user tasks in the notebook as well, like installing packages inside of Marimo or creating cells or running cells.
- 17:57Trevor Manz: But as it's performing those tasks using that tool, the agent gets instant feedback of what went wrong or what went right inside of that kernel.
- 18:04Trevor Manz: and is able to get back into these agentic loops for doing these tasks.
- 18:08Trevor Manz: But using Marimo as sort of the workspace for performing your data tasks
- 18:11Trevor Manz: rather than editing the file system.
- 18:14Michael Kennedy: Yeah, okay, that makes sense.
- 18:15Michael Kennedy: And I guess there's some kind of API or something that the agent can use to talk to the running notebook.
- 18:21Trevor Manz: Yeah, so we sort of hide an API within Marimo that's called code mode.
- 18:27Trevor Manz: And what code mode is essentially is this semi-private API
- 18:30Trevor Manz: that's just meant for agents that are running Python inside of that kernel.
- 18:34Trevor Manz: And with that API, the agent can grab the current notebook state
- 18:38Trevor Manz: and talk to Marimo directly.
- 18:40Trevor Manz: So it can do things like toast notifications in the UI that say,
- 18:43Trevor Manz: hey, I'm connected to your notebook session.
- 18:46Trevor Manz: It can do things like I mentioned before,
- 18:49Trevor Manz: like list out variables or inspect what cells declare different variables.
- 18:53Trevor Manz: But then also it has these sort of mutation APIs
- 18:56Trevor Manz: where I want to say create cell, edit cell, run cell.
- 19:00Trevor Manz: And because it's all Python and not individual something like MCP tools,
- 19:05Trevor Manz: the agent has the ability to write Python code
- 19:07Trevor Manz: that really does complex composition of those primitives as well.
- 19:11Trevor Manz: So it can create multiple cells at the same time
- 19:14Trevor Manz: just by calling create cell five times inside of some sort of loop.
- 19:18Trevor Manz: Because we're giving it Python as the tool
- 19:20Trevor Manz: rather than sort of a JSON API.
- 19:22Michael Kennedy: I'll say, for me, it kind of boggles the mind
- 19:26Michael Kennedy: how much Claude Code just relies on grep to understand projects.
- 19:30Michael Kennedy: And it seems super inefficient to me.
- 19:33Michael Kennedy: I mean, Claude Code was created in two weeks, something like that.
- 19:37Michael Kennedy: It feels very much JavaScript-y in that regard.
- 19:40Michael Kennedy: Like, look what you built.
- 19:42Michael Kennedy: Also, look at the missing pieces a little bit.
- 19:44Michael Kennedy: And as impressive as it is, it seems like if it could ask the question,
- 19:50Michael Kennedy: where is this symbol used throughout my project?
- 19:53Michael Kennedy: What is the value of this variable?
- 19:55Michael Kennedy: Things like that.
- 19:55Michael Kennedy: What is the type of it?
- 19:57Michael Kennedy: Without reading and jumping around 100,000, a million lines of code all the time, it would
- 20:03Michael Kennedy: be way more efficient.
- 20:04Michael Kennedy: And it sounds a little bit like that's how it interacts with your notebook through Marimo
- 20:07Michael Kennedy: Pair.
- 20:08Trevor Manz: Yeah.
- 20:08Trevor Manz: So within that code execution point where it can run Python code, the agent has the ability
- 20:13Trevor Manz: to look at the source of those cells, but then also can look at the in-memory values
- 20:18Trevor Manz: of those cells as well.
- 20:19Trevor Manz: And therefore, it can, like you were just saying, it can look at the type, it can look at the
- 20:24Trevor Manz: values.
- 20:25Trevor Manz: and this type of runtime inspection of values
- 20:30Trevor Manz: really does change model behavior
- 20:31Trevor Manz: in terms of, like I mentioned before,
- 20:34Trevor Manz: allowing them to get into these loops
- 20:36Trevor Manz: and efficiently get to some sort of problem,
- 20:38Trevor Manz: resolution to some task or problem inside the notebook
- 20:41Trevor Manz: because it's able to course correct
- 20:43Trevor Manz: and ask a lot richer information about your values.
- 20:46Trevor Manz: Because if you're looking at a source code on disk,
- 20:49Trevor Manz: maybe for a file that loads a data frame,
- 20:51Trevor Manz: you just have a single line that says,
- 20:53Trevor Manz: you know, load, Polars read CSV or pandas read CSV.
- 20:57Trevor Manz: And then the agent would actually have to go look at that CSV to understand what's in that CSV
- 21:02Trevor Manz: and combining that with the source code.
- 21:04Trevor Manz: But if you pair that with a live REPL like we have inside of Marimo,
- 21:07Trevor Manz: the agent could just say, you know, the agent now has a data frame that it can look at.
- 21:11Trevor Manz: And that's a much richer representation of that static file on disk.
- 21:15Trevor Manz: And then the agent can ask about the schema.
- 21:17Trevor Manz: It could ask about, yeah, the different columns, the data types of the columns.
- 21:20Trevor Manz: It could figure out the number of rows.
- 21:23Trevor Manz: So essentially when you ask a question of, you know, I want to plot the quantitative axes of these data in a pair plot, you no longer have to specify what those axes are because the agent can just go off and look at the schema to figure that out.
- 21:35Trevor Manz: And I think that that provides this really rich experience when you're trying to get something done with your data because you can be a little bit more declarative about like, I want to look at these subsets or these things without having to actually go down and figure out the APIs to plot those things out.
- 21:50Michael Kennedy: What's the token economics of this?
- 21:54Michael Kennedy: Is it more efficient on tokens because it doesn't have to search around so much?
- 21:57Michael Kennedy: Or have you noticed a difference?
- 21:59Trevor Manz: Yeah, that's a great question.
- 22:00Trevor Manz: I think from the skill itself is a pretty slim markdown file that just teaches the agent
- 22:08Trevor Manz: what this tool is and how to use this tool, which is run Python in the running kernel.
- 22:13Trevor Manz: And then the agent is able to, maybe before the agent would read the entire notebook file
- 22:19Trevor Manz: to figure out what you want to do.
- 22:20Trevor Manz: but instead off of disk because it had to orient itself
- 22:24Trevor Manz: where you are inside the notebook.
- 22:26Trevor Manz: Versus if I asked the agent,
- 22:28Trevor Manz: we're focusing on this cell right now inside the notebook.
- 22:31Trevor Manz: The agent doesn't have to print off all the other cells into context.
- 22:34Trevor Manz: It can just focus on that one cell or that one variable
- 22:36Trevor Manz: that we're talking about in the kernel.
- 22:38Trevor Manz: So we haven't done anything formal to compare those things.
- 22:41Trevor Manz: But essentially when you're able to extend the environment
- 22:45Trevor Manz: with variables and values,
- 22:47Trevor Manz: then you give the agent the ability to offload context
- 22:50Trevor Manz: into Python rather than bringing that as extra context
- 22:53Trevor Manz: that fills up your context buffer.
- 22:55Michael Kennedy: Yeah, my impression is that first estimate
- 22:58Michael Kennedy: is it would be way more efficient, honestly.
- 23:00Michael Kennedy: Like a lot of times I'll see Claude Code or something
- 23:03Michael Kennedy: and go like, okay, I need to understand what this does.
- 23:06Michael Kennedy: Let me write a little Python script
- 23:08Michael Kennedy: and execute it with a dash C or what,
- 23:10Michael Kennedy: you know, or I can just pass it as a string effectively.
- 23:13Michael Kennedy: And it's recreating all these things
- 23:15Michael Kennedy: instead of just like print X
- 23:17Michael Kennedy: or just give me the value of X, right?
- 23:19Trevor Manz: Yeah, exactly.
- 23:20Trevor Manz: And actually you can think of each invocation of the tool
- 23:23Trevor Manz: that we provide to the agent
- 23:25Trevor Manz: as essentially running Python-C,
- 23:27Trevor Manz: except picking up wherever you left off inside of your notebook.
- 23:31Trevor Manz: So it has the ability in that string that it passes to Python
- 23:35Trevor Manz: to just reference variables that you currently have in memory.
- 23:38Trevor Manz: And it doesn't have to perform something high up in that script
- 23:41Trevor Manz: that might be costly to reload a data set or mangle it
- 23:44Trevor Manz: to get to some later state to print it out.
- 23:47Trevor Manz: Instead, it can kind of pick up where you are currently in your notebook session, you
- 23:51Trevor Manz: know, and tell me about my data frame.
- 23:52Trevor Manz: And it can run a bunch of queries on the thing that you currently have in memory to tell
- 23:56Trevor Manz: you about it.
- 23:56Michael Kennedy: Sure.
- 23:57Michael Kennedy: Okay.
- 23:57Michael Kennedy: Super interesting.
- 24:00Michael Kennedy: And let's talk just really quickly about this distributing as a skill.
- 24:05Michael Kennedy: I mean, there've been other attempts for notebooks that I've seen that are kind of like, we're
- 24:10Michael Kennedy: going to embed an LLM or at least an LLM integration in the notebook.
- 24:16Michael Kennedy: And it's interesting to see you shipping this as a skill plus a capability that's just in Maremo.
- 24:23Michael Kennedy: So on one hand, it's easy to think, well, that doesn't seem very useful.
- 24:27Michael Kennedy: But then again, there's always the what is now well-known SaaSpocalypse because Claude shipped 13 markdown files, which wiped $285 billion off of the stock market, right?
- 24:40Michael Kennedy: So there's something to these markdown files.
- 24:41Michael Kennedy: I really think it's quite powerful.
- 24:44Michael Kennedy: but how'd you come around to this distribution model?
- 24:48Trevor Manz: Yeah, so Marimo, and I should be clear,
- 24:51Trevor Manz: Marimo today still has a chat integration
- 24:53Trevor Manz: that you can bring your own LLM
- 24:56Trevor Manz: and actually drive an agent interface from there.
- 24:59Trevor Manz: And even you can actually use the Marimo pair tools
- 25:03Trevor Manz: inside of that chat interface as well.
- 25:06Trevor Manz: But increasingly we had users that were asking about,
- 25:08Trevor Manz: how do I use Claude Code with Marimo?
- 25:10Trevor Manz: Or how do I use Codex with Marimo?
- 25:12Trevor Manz: And what we started to realize is that
- 25:14Trevor Manz: These coding agents, we're building a tool that we'd like our users to spend a lot of time in.
- 25:20Trevor Manz: But these coding agents outside of Marimo have a lot of access to things that aren't ever going to be inside of the Marimo user interface,
- 25:26Trevor Manz: such as the different skills or MCPs or things that they've enabled for their main driver of doing development on their machine.
- 25:35Trevor Manz: And we want to make sure that Marimo is a useful tool in that context as well.
- 25:38Trevor Manz: And so increasingly, many of the folks on our team are using Claude Code for the actual development of Marimo.
- 25:44Trevor Manz: and we started to feel this friction
- 25:47Trevor Manz: of when we wanted to work on a notebook
- 25:48Trevor Manz: that we couldn't just start up the notebook
- 25:50Trevor Manz: and get it running from Claude
- 25:52Trevor Manz: and then edit it.
- 25:53Trevor Manz: Instead, it felt like we were jumping between tools.
- 25:56Trevor Manz: At least initially, we were thinking
- 25:59Trevor Manz: how do we make Maremo notebooks
- 26:01Trevor Manz: a useful tool for agents?
- 26:03Trevor Manz: Then we started to look at best practices
- 26:06Trevor Manz: for doing that.
- 26:08Trevor Manz: Simply a bare bones MCP
- 26:10Trevor Manz: was one approach that you could go with.
- 26:12Trevor Manz: When we started to look at skills
- 26:13Trevor Manz: was I think around the fall slash December last year
- 26:18Trevor Manz: when these models started to get quite good,
- 26:21Trevor Manz: the skills started to become a very useful vector
- 26:25Trevor Manz: I think for packaging up reusable instructions
- 26:29Trevor Manz: for how to effectively use a particular command line tool or skill.
- 26:35Trevor Manz: And so if you actually look at our skill today,
- 26:37Trevor Manz: it doesn't really tell you much about how the internals of Maremo works
- 26:41Trevor Manz: or how that tool works.
- 26:43Trevor Manz: And instead it just teaches the agent
- 26:46Trevor Manz: about where that tool exists
- 26:47Trevor Manz: and how to use that tool.
- 26:49Trevor Manz: But then if it wants to learn
- 26:50Trevor Manz: about how to invoke that tool
- 26:51Trevor Manz: and the different capabilities that it has
- 26:53Trevor Manz: within that active kernel,
- 26:54Trevor Manz: it actually uses the help command.
- 26:56Trevor Manz: We instruct it to use the help command
- 26:58Trevor Manz: to print off the doc strings for itself
- 27:00Trevor Manz: and then learn in that session
- 27:01Trevor Manz: how to effectively drive Marimo.
- 27:03Trevor Manz: And so this actually has a sort of decoupling
- 27:05Trevor Manz: between our skill and Marimo's internals
- 27:08Trevor Manz: because we don't actually publish anything
- 27:09Trevor Manz: in the skill that talks about the API that it will be using.
- 27:13Trevor Manz: And instead we'd say, hey, go find that when you load the skill to figure out what capabilities
- 27:17Trevor Manz: that you actually have inside the active kernel.
- 27:19Michael Kennedy: That's interesting.
- 27:20Michael Kennedy: That way, if you want to change it, you don't have to get people to update the skill, which
- 27:23Michael Kennedy: is always tricky.
- 27:24Trevor Manz: Exactly.
- 27:25Trevor Manz: This was the thing that we became very conscious of quite early is that updating Marimo and
- 27:30Trevor Manz: updating the skill could get out of sync.
- 27:32Trevor Manz: And we just wanted to make sure that our users didn't get into the state where they're having
- 27:37Trevor Manz: a really poor experience using their agents because they upgraded Marimo and they hadn't
- 27:41Trevor Manz: upgraded their skill. And so the skill isn't so prescriptive about exactly what the agent should
- 27:45Trevor Manz: do, just more, hey, these are tools. And this is sort of the mental model of how you could drive
- 27:51Trevor Manz: Marimo. And then should you want to drive Marimo, here's where you go find how to do that inside of
- 27:56Trevor Manz: the active Marimo that you have in your session. Michael, I can't, I might have lost.
- 28:01Michael Kennedy: Sorry. So skills have been changing over time about how they're structured and they used to be
- 28:06Michael Kennedy: commands and then i don't know just the layout of these things is a little bit a little bit funky
- 28:12Michael Kennedy: um i mean i guess you could manage it from marimo like have it say like hey skill update available
- 28:18Michael Kennedy: push this button to reinstall it or something but it sounds pretty bare bones in terms of like just
- 28:24Michael Kennedy: go talk here and then you'll figure it out when you get there sounds sounds good yeah exactly and
- 28:29Trevor Manz: you know some of these like agents have the ability like for instance in Claude Code and codex
- 28:35Trevor Manz: If you have this marketplace.json file where you have your skill,
- 28:39Trevor Manz: you can subscribe for auto-updates of that skill
- 28:42Trevor Manz: so you don't have to re-sync that file.
- 28:44Trevor Manz: Or if you use one of these command-line tools for installing from GitHub,
- 28:47Trevor Manz: you can install the latest.
- 28:50Trevor Manz: If our users got out of sync, it's quite hard to figure out what version they have,
- 28:53Trevor Manz: and maybe we'd need to do some runtime inspection.
- 28:55Trevor Manz: So by really trying to have this decoupling of the skill
- 28:58Trevor Manz: from the capabilities that we have inside of Marimo,
- 29:01Trevor Manz: we can ensure that there's sort of a baseline of user experience.
- 29:05Trevor Manz: And then should folks want to upgrade to latest skill or upgrade Marimo,
- 29:09Trevor Manz: hopefully both those things should, should,
- 29:10Trevor Manz: should improve that experience over time.
- 29:12Michael Kennedy: Yeah, for sure.
- 29:15Michael Kennedy: This portion of Talk Python is brought to you by us.
- 29:18Michael Kennedy: I want to give you a quick bit of news about the courses side of Talk Python.
- 29:23Michael Kennedy: Now,
- 29:23Michael Kennedy: every single course at Talk Python training has full subtitles in German,
- 29:28Michael Kennedy: Spanish, and Portuguese.
- 29:30Michael Kennedy: That's all 283 hours completely translated, not just a couple of flagship courses.
- 29:36Michael Kennedy: Just click the CC button in your player, pick your language, and you can even resize and
- 29:42Michael Kennedy: reposition the captions so they don't cover the code.
- 29:44Michael Kennedy: If Deutsch, Espanol, or Portuguese is your first language, this one's for you.
- 29:50Michael Kennedy: Check it out at talkpython.fm.
- 29:52Michael Kennedy: Just click courses in the nav bar, log in, or create an account.
- 29:56Michael Kennedy: Even the free courses now come with subtitles in four different languages.
- 30:01Michael Kennedy: Let's walk through installing this and maybe a quick start story.
- 30:05Michael Kennedy: So first, installing it, how do we do?
- 30:08Trevor Manz: Yeah, so whether or not you have a tool called...
- 30:11Trevor Manz: So first of all, a skill is a folder of some files,
- 30:15Trevor Manz: and there's a file called skill.md.
- 30:17Trevor Manz: This is like an official specification
- 30:20Trevor Manz: that you put somewhere on your file system for your agent to find.
- 30:23Trevor Manz: And then there are a handful of tools that exist in open source
- 30:26Trevor Manz: adding those files. And like I mentioned just a moment ago, being able to sort of upgrade those
- 30:30Trevor Manz: files easily, either based off of Git syncing or by installing with one of these marketplaces. So
- 30:38Trevor Manz: the way that we publish our skills, we have this repo, it's called marimoteam, marimopair.
- 30:42Trevor Manz: The code that we publish there, we version over time. And you can either use, if you have the
- 30:48Trevor Manz: npm package manager, you can use npxskillsadd marimoteam slash marimopair. That will start up
- 30:54Trevor Manz: the command line tool to add those files to your file system. You can either install them locally
- 30:58Trevor Manz: in a folder, globally on your system. If you don't have npm installed, you can actually use UV
- 31:04Trevor Manz: and do uvx Dino A npm skills. And this will sort of shell out to Dino to actually install those for
- 31:11Michael Kennedy: you, but you can drive it through uv. If you have pod code. I've seen this so much. I'm like,
- 31:16Michael Kennedy: oh man, why are we stuck on NPM? I do have these things. So I'll put the uvx Dino dash A NPM
- 31:24Michael Kennedy: I feel like that could be a sweet new alias,
- 31:27Michael Kennedy: just UVNPM.
- 31:33Michael Kennedy: I think that'd be nice.
- 31:34Michael Kennedy: I'm going to find a way to do that.
- 31:36Trevor Manz: Yeah, definitely.
- 31:38Trevor Manz: Short tangent, I actually got the Dino name for the Dino folks
- 31:42Trevor Manz: so we could transfer over that package.
- 31:45Trevor Manz: Being able to share packages between ecosystems
- 31:47Trevor Manz: without having to reinstall a new package manager
- 31:50Trevor Manz: I think is really important
- 31:51Trevor Manz: because both the Python ecosystem and the npm ecosystem
- 31:55Trevor Manz: are growing so much.
- 31:57Trevor Manz: But it's a lot to ask of users to make sure
- 31:58Trevor Manz: that they have both these things installed,
- 32:00Trevor Manz: especially if someone considers themselves
- 32:02Trevor Manz: a node person versus a Python person.
- 32:05Trevor Manz: Let's just make sure that everyone has access.
- 32:06Michael Kennedy: It could be an offense to have to install npm.
- 32:09Michael Kennedy: I'm not just kidding.
- 32:11Michael Kennedy: So you're responsible for getting Dino as a PyPI package?
- 32:15Trevor Manz: Yes, yeah.
- 32:16Trevor Manz: I've collaborated a little bit with the Dino folks over the years.
- 32:19Trevor Manz: I went through a very formal process with PyPy to request that name and then turn it over to them.
- 32:24Michael Kennedy: Oh, that's super cool.
- 32:25Michael Kennedy: So tell people real quick about Dino because they're like, well, what does that have to do with Node?
- 32:31Trevor Manz: Yeah, so the creator of Dino was the same creator of Node.
- 32:35Trevor Manz: And sort of the basis of Dino was, at least from the perspective of the Dino creators,
- 32:42Trevor Manz: was to fix some of the things that had happened in the Node ecosystem.
- 32:45Trevor Manz: And so Dino is a similar type of server-side JavaScript runtime,
- 32:50Trevor Manz: but brings over a lot of functions a lot more similarly
- 32:54Trevor Manz: to the way that the browser has.
- 32:56Trevor Manz: So it has a lot more fine-grained permissions
- 32:58Trevor Manz: baked into when you're trying to do something
- 33:00Trevor Manz: like read the file system or read variables,
- 33:03Trevor Manz: you have to actually explicitly opt into those capabilities
- 33:07Trevor Manz: while you're executing the script
- 33:10Trevor Manz: to allow that runtime to access those things.
- 33:13Michael Kennedy: Okay, yeah, very nice.
- 33:15Michael Kennedy: Now, do you have a preference here if I npx it or uvx it,
- 33:20Michael Kennedy: or is it better to do the marketplace type of thing?
- 33:24Trevor Manz: Yeah, so this starts to come down to your agent of choice.
- 33:28Trevor Manz: So the npx skills is a command line tool that's published.
- 33:32Trevor Manz: Skills is a package that's on the npm registry
- 33:35Trevor Manz: that installs skills on your system
- 33:38Trevor Manz: and sort of has a little CLI walkthrough
- 33:40Trevor Manz: where you can pick multiple agents,
- 33:43Trevor Manz: like if you use Codex or use Claude Code or maybe OpenCode,
- 33:46Trevor Manz: where it will install them to universal directories for those things.
- 33:51Trevor Manz: So if you are someone that likes to play with a lot of different agent harnesses,
- 33:54Trevor Manz: I'd probably recommend using NPX or uvx Dino.
- 33:59Trevor Manz: Those are semantically equivalent.
- 34:02Trevor Manz: They just eventually will trigger the same CLI.
- 34:05Trevor Manz: It's just the package manager that's doing it is different.
- 34:08Michael Kennedy: Right, it's more npm versus plugin, exactly.
- 34:11Trevor Manz: Yeah, and then the plugin is more,
- 34:14Trevor Manz: that's a specific install instruction to Claude Code.
- 34:17Trevor Manz: And also I believe that Codex has something quite similar.
- 34:20Trevor Manz: And there you can register what's called a marketplace
- 34:23Trevor Manz: for our Marimo team,
- 34:25Trevor Manz: such that when we publish updates,
- 34:28Trevor Manz: when you boot up Claude Code one day,
- 34:30Trevor Manz: maybe it'll ask you if you'd like to upgrade our plugin.
- 34:32Trevor Manz: So that will sort of keep it in sync.
- 34:35Trevor Manz: So if you are a Claude Code user,
- 34:36Trevor Manz: I think I'd generally recommend,
- 34:38Trevor Manz: and mostly a Claude Code user,
- 34:39Trevor Manz: I'd generally recommend installing from the marketplace
- 34:42Trevor Manz: versus if you're someone that's flipping around
- 34:43Trevor Manz: between a lot of tools,
- 34:45Trevor Manz: the MPX skills does a good job
- 34:46Trevor Manz: and you can MPX skills upgrade
- 34:49Trevor Manz: the Marimo pair skill as well.
- 34:50Michael Kennedy: Okay, that sounds really good.
- 34:53Michael Kennedy: I guess, yeah, the one is general, right?
- 34:55Michael Kennedy: And the one, the other,
- 34:56Michael Kennedy: the plugin one is really Claude Code.
- 34:58Michael Kennedy: Although I suspect if you put it into Codex,
- 35:00Michael Kennedy: it might just give you a little bit of snark
- 35:02Michael Kennedy: and install it.
- 35:04Trevor Manz: Yeah, yeah, definitely.
- 35:05Trevor Manz: I've accidentally invoked the skill with the four,
- 35:09Trevor Manz: I think in Codex,
- 35:09Trevor Manz: it's the dollar sign to invoke skills
- 35:11Trevor Manz: and it's Claude, it's like this forward slash
- 35:13Trevor Manz: and it figures it out.
- 35:15Michael Kennedy: Yeah, yeah, exactly.
- 35:17Michael Kennedy: You must be confused.
- 35:20Michael Kennedy: This doesn't even make sense.
- 35:21Michael Kennedy: What you meant to type was such and such.
- 35:24Michael Kennedy: Yeah, okay.
- 35:25Michael Kennedy: So is there like a getting started example
- 35:28Michael Kennedy: or something like that on one of your pages
- 35:31Michael Kennedy: I can sort of point at?
- 35:33Trevor Manz: Yeah, so if you have the skill installed,
- 35:36Trevor Manz: the best thing you can do is just spin up a Marimo session.
- 35:40Trevor Manz: So you could even prompt, starting from your agent of choice,
- 35:43Trevor Manz: say, start a Marimo notebook using the Marimo pair skill.
- 35:47Trevor Manz: And then everything needed to actually start you pairing with Marimo
- 35:53Trevor Manz: is baked into that skill.
- 35:55Trevor Manz: So after you've run that uvx command,
- 35:57Trevor Manz: you should be able to spin up a notebook
- 36:00Trevor Manz: and then connect to it with your agent
- 36:01Trevor Manz: and just start talking about some data
- 36:03Trevor Manz: or talking about a notebook that you already have.
- 36:05Michael Kennedy: I guess, what are some of the use cases or whatever
- 36:09Michael Kennedy: that you might go through with this.
- 36:11Michael Kennedy: How do you find it to be useful?
- 36:13Michael Kennedy: What are you all doing with it?
- 36:14Trevor Manz: Yeah, I'd say Marimo pair is increasingly the main way
- 36:17Trevor Manz: that our users that prefer to author code with agents
- 36:20Trevor Manz: are starting to create and share Marimo notebooks.
- 36:24Trevor Manz: And so I think there are a lot of different use cases,
- 36:27Trevor Manz: but the way I like to think of it
- 36:28Trevor Manz: is that it really ranges from a more hands-on
- 36:31Trevor Manz: versus hands-off approach to authoring notebooks.
- 36:33Trevor Manz: So a more hands-on approach would be the workflow
- 36:37Trevor Manz: that I just described where you spin up a notebook session, maybe you have a data set and you want to
- 36:41Trevor Manz: be hands-on looking at that data, making plots, more exploratory data analysis or more iterative
- 36:49Trevor Manz: where you're hands-on working with the agent. But rather than writing the code, you're sort of
- 36:53Trevor Manz: prompting the code with the agent and looking at the outputs and deciding where to go next.
- 36:56Trevor Manz: So that's more on the head, the interactive or hands-on approach. And then we also have a set
- 37:01Trevor Manz: of users that are driving Marimo, using Marimo pair and a more headless version as well, where
- 37:07Trevor Manz: they might spin off many different Marimo pair sessions
- 37:10Trevor Manz: to work on a similar problem.
- 37:12Trevor Manz: And at the end, they'll have these notebooks that are running
- 37:14Trevor Manz: that then they can connect to and sort of check and see
- 37:16Trevor Manz: what the agent was working on inside of that session.
- 37:19Trevor Manz: So essentially, when you want to start a task with data,
- 37:22Trevor Manz: you can open up your agent and spin up Marimo
- 37:24Trevor Manz: and then start prompting towards working on that problem.
- 37:28Michael Kennedy: I see.
- 37:29Michael Kennedy: So maybe this headless story, like I have this data
- 37:32Michael Kennedy: and I know I want some kind of description,
- 37:36Michael Kennedy: exploration summary of it. So, Hey, Claude, just create a notebook and just from scratch,
- 37:41Michael Kennedy: just do what you want to do to build it up. And then I'll go look at it. Right.
- 37:45Michael Kennedy: Yeah. And the other ones may be more like a coding, like a data coding sort of story. Yeah,
- 37:50Trevor Manz: exactly. Yeah. And the, I think the nuance there of like why the more headless approach
- 37:55Trevor Manz: like works quite well with Mareem L'Apair is that if, if you've had any experience with trying to
- 38:00Trevor Manz: like one shot a program or one shot a notebook in the past, the agent doesn't really have a way of
- 38:05Trevor Manz: verifying what it's doing or that like that whole notebook that it created works well or maybe just
- 38:10Trevor Manz: at the end can like try to run the notebook and then we'll have to go back and fix cell by cell
- 38:14Trevor Manz: versus marimo pair driving from marimo pair sort of forces the agent to build up the notebooks a
- 38:20Trevor Manz: similar way that you would where you would actually go cell by cell so the first thing i have to do is
- 38:23Trevor Manz: like load my data the second thing i have to do is you know inspect look at my nulls and if there
- 38:28Trevor Manz: are errors in any of those steps the agent will correct them there rather than sort of generating
- 38:32Trevor Manz: the whole notebook and then running it from scratch. And so we found that you get much
- 38:36Trevor Manz: higher quality outputs when you are actually at the time of looking at the notebook, because
- 38:41Trevor Manz: the process in which the agent had to go to create the notebook sort of guarantees that it has to run
- 38:46Trevor Manz: because it adheres to the Marimo's constraints versus just generating the artifact and then
- 38:51Trevor Manz: saying like, hey, I'm done and didn't really check the outputs at all. Right, exactly. It just could
- 38:56Michael Kennedy: be some well-formed but meaningless notebook, right?
- 38:59Michael Kennedy: Yeah.
- 39:00Michael Kennedy: What if I'm now we're, we're pushing up to the limits of my Marimo knowledge.
- 39:05Michael Kennedy: Cause I've not tried this, but what if I got a Marimo notebook and I say, open
- 39:09Michael Kennedy: up that project and VS Code, like for example, maybe I have a regular
- 39:14Michael Kennedy: programming project that's VS Code that has the Claude Code installed in it, like
- 39:20Michael Kennedy: the extension or whatever.
- 39:21Michael Kennedy: And inside there, part of it is a Marimo notebook.
- 39:25Michael Kennedy: Can I say open up that notebook in Marimo,
- 39:28Michael Kennedy: but then also have Marimo pair,
- 39:31Michael Kennedy: but from within the VS Code,
- 39:33Michael Kennedy: Claude Code,
- 39:34Michael Kennedy: or do I have got to go to the terminal?
- 39:36Michael Kennedy: What is this interoperability story?
- 39:38Trevor Manz: Sure.
- 39:39Trevor Manz: At Marimo, I'm responsible for our VS Code extension,
- 39:42Trevor Manz: which is integrated.
- 39:44Trevor Manz: If you've ever tried to open up a Jupyter notebook
- 39:46Trevor Manz: inside of VS Code,
- 39:48Trevor Manz: VS Code or Cursor have a built-in UI for notebooks.
- 39:52Trevor Manz: We have a built-in UI for notebooks
- 39:54Trevor Manz: that reuses that sort of the VS Code native view,
- 39:58Trevor Manz: except replacing with Maremo outputs.
- 40:00Trevor Manz: And the latest thing I've been working on
- 40:02Trevor Manz: is getting the ability to have your agent inside of VS Code
- 40:06Trevor Manz: drive those notebook outputs as well.
- 40:08Trevor Manz: So that's something we should ship
- 40:09Trevor Manz: in probably the next week or so.
- 40:11Michael Kennedy: And there's, of course, I guess because of economics
- 40:14Michael Kennedy: or lock-in or I don't know, whatever,
- 40:17Michael Kennedy: there's always, in all these editors,
- 40:19Michael Kennedy: yes, even in Cursor,
- 40:21Michael Kennedy: There are like first class built-in ways to do agents.
- 40:26Michael Kennedy: Say in VS Code, there's like the chat thing on the right.
- 40:29Michael Kennedy: Those I think is probably what they intend you to do.
- 40:32Michael Kennedy: But then you can get the VS Code Claude or Codex extension,
- 40:37Michael Kennedy: which is a totally different UI, but still in VS Code.
- 40:40Michael Kennedy: Or you could go to the terminal and you could type Claude or Codex.
- 40:45Michael Kennedy: And that's a third sort of thing, which can sort of have links back in there.
- 40:50Michael Kennedy: Do some of these work and some of them don't?
- 40:51Michael Kennedy: Are they all the same?
- 40:53Michael Kennedy: What's the story?
- 40:54Trevor Manz: Yeah, so if you're launching from the terminal
- 40:56Trevor Manz: or the integrated VS Code,
- 40:59Trevor Manz: sorry, the Claude Code extension from VS Code today,
- 41:04Trevor Manz: that will likely start Marimo's command line tool
- 41:07Trevor Manz: and then open up a web view inside of VS Code,
- 41:09Trevor Manz: which is like our Marimo editor.
- 41:11Trevor Manz: If you use the chat,
- 41:13Trevor Manz: which is sort of the built-in agents panel inside of VS Code,
- 41:16Trevor Manz: that would drive the usage of the more integrated view
- 41:19Trevor Manz: inside of VS Code.
- 41:22Michael Kennedy: But all three are possible, I guess, yeah?
- 41:25Trevor Manz: Yeah, exactly.
- 41:26Trevor Manz: You can start a Marimo pair session
- 41:28Trevor Manz: from any of those panels.
- 41:30Trevor Manz: It's just a matter of what the visual
- 41:32Trevor Manz: that you're looking at is,
- 41:34Trevor Manz: if that's going to be the native VS Code editor
- 41:37Trevor Manz: for the notebook versus a web view
- 41:42Trevor Manz: of the Marimo notebook UI.
- 41:44Michael Kennedy: Yeah, and my sort of huff at this before was like,
- 41:48Michael Kennedy: This is only here because Claude Code won't allow you to use your subscription in the other one.
- 41:56Michael Kennedy: It's got to be, you know, in certain circumstances, right?
- 41:59Michael Kennedy: Like, oh, if you use the official extension, you can use your subscription.
- 42:03Michael Kennedy: But if you use this other way, then you've like, say in Cursor, you use your Cursor credits, not your Claude Code subscription.
- 42:10Michael Kennedy: And then PyCharm, you've got the sort of duality as well, where if you use the AI chat section that uses your JetBrains AI credits, whereas like if you use the terminal, it's clawed and just it's kind of a mess, honestly.
- 42:24Trevor Manz: Yeah, I think there's a lot of fragmentation in the ability to, and who owns that interface for where you're typing into that box and driving these tools.
- 42:34Trevor Manz: And so from our perspective, we think there will likely be a continued amount of drift between these different tools.
- 42:43Trevor Manz: And we don't necessarily want Marimo to be a tool that people are kind of deciding whether or not they're going to use our chat bar.
- 42:48Trevor Manz: but we do think Marimo as an environment for working with your data should be accessible from
- 42:53Trevor Manz: whatever tool that you choose. And so on our side, we just want to make sure that you're able to
- 42:58Trevor Manz: connect to and drive a Marimo notebook from your agent harness and tool of choice.
- 43:03Michael Kennedy: I think in maybe some kind of idealistic, non-realistic world where all the frontier
- 43:12Michael Kennedy: foundation coding models, you could just tell it your subscription or tell it whatever,
- 43:16Michael Kennedy: and it's the same billing everywhere,
- 43:18Michael Kennedy: it might be better to have some kind of built-in panel
- 43:22Michael Kennedy: into Marimo or little pop-ups or something.
- 43:25Michael Kennedy: But given all the weird restrictions and stuff,
- 43:28Michael Kennedy: it seems like a really good plan
- 43:29Michael Kennedy: to just have Marimo good at talking to any agent
- 43:33Michael Kennedy: through this way and however people want to run it,
- 43:36Michael Kennedy: they can just talk to it, right?
- 43:37Trevor Manz: Yeah.
- 43:39Trevor Manz: It's been challenging because we spend a lot of time
- 43:42Trevor Manz: on that UI and thinking about that UI
- 43:44Trevor Manz: that we own inside of Marimo
- 43:46Trevor Manz: how this should work with these agents.
- 43:48Trevor Manz: But the reality is that there's a lot of friction.
- 43:51Trevor Manz: And if we would have tried to build around
- 43:53Trevor Manz: Claude Max like a year ago,
- 43:55Trevor Manz: that would have been a lot of wasted effort
- 43:56Trevor Manz: because of the way that these platforms are changing.
- 43:59Trevor Manz: So as these tools become increasingly sticky
- 44:02Trevor Manz: and folks get entrenched into their agents of choice,
- 44:05Trevor Manz: I think from our perspective,
- 44:08Trevor Manz: making sure Marimo remains a useful tool
- 44:11Trevor Manz: to any agent is really our priority.
- 44:13Trevor Manz: And if there is some sort of...
- 44:15Trevor Manz: yeah, future day where we can own that UI again, then I think we will certainly have a story there.
- 44:21Michael Kennedy: Yeah, I think I totally agree with you, but I want to share a little graph with you from the
- 44:26Michael Kennedy: Pragmatic Engineer newsletter. Yeah, I guess newsletter. So if you, there's this one that was
- 44:32Michael Kennedy: AI tooling for software engineers in 2026. So you scroll down till we see a graph. There we go.
- 44:38Michael Kennedy: If you look at what people are using, it's Claude Code.
- 44:44Michael Kennedy: And then quite a ways back, we get Google Copilot, which I think is really, I don't know, maybe I live in some kind of sheltered world.
- 44:52Michael Kennedy: But I feel like this is primarily used because companies have Microsoft 365 subscriptions and they've got 10,000 employees.
- 45:01Michael Kennedy: And they're like, you can use Copilot because it's approved.
- 45:04Michael Kennedy: I don't know that that's necessarily what people are seeking out as their top choice.
- 45:08Michael Kennedy: I don't know, I could be wrong.
- 45:09Michael Kennedy: Sorry if I got that wrong, Copilot folks.
- 45:11Michael Kennedy: But, and then maybe about half is Cursor
- 45:14Michael Kennedy: and that's kind of its own world and then it goes Codex.
- 45:16Michael Kennedy: So like, I feel like if you're trying to,
- 45:19Michael Kennedy: this is like Claude Code was way behind a year ago.
- 45:22Michael Kennedy: It's crazy.
- 45:23Michael Kennedy: So I feel like if you're building a tool,
- 45:26Michael Kennedy: especially for developers that says,
- 45:28Michael Kennedy: let's pretend you don't want this.
- 45:30Michael Kennedy: Let us give you our version of something that's like it.
- 45:34Michael Kennedy: I just don't think that that's a road for success.
- 45:36Michael Kennedy: I think you're fighting against like,
- 45:38Michael Kennedy: everyone's like, you know what, we're in Claude Code and it works really well. Why am I going to
- 45:42Michael Kennedy: go put that away and use your thing? As opposed to what you guys built, which is like, well, here's
- 45:46Michael Kennedy: how you use the top three of those things to talk to what you're already doing. I think that's a good
- 45:52Trevor Manz: choice. Yeah, I think for us, it was the realization that the effectiveness of agents on a particular
- 45:58Trevor Manz: task is a combination of like, I think an agent is by definition is like a model, the tools that you
- 46:03Trevor Manz: equip that model with and then its environment or the loop that it runs in to perform that task.
- 46:09Trevor Manz: And so its effectiveness is going to be limited by whatever tools you give that agent.
- 46:13Trevor Manz: And so if we didn't make Marimo a useful tool for the agent, then if you give a data problem
- 46:18Trevor Manz: to the agents, it's going to use the tools that it has at hand, which are reading and writing files
- 46:22Trevor Manz: and running bash scripts. If you run that script a bunch of times or you ask the same data question
- 46:26Trevor Manz: using those tools, you might get a folder with a lot of different scripts and things and maybe a
- 46:30Trevor Manz: result. And so by giving agents, or really thinking of Marimo as a tool for agents,
- 46:36Trevor Manz: then we don't have to think so much about the interface for the agent, but rather just how to
- 46:40Trevor Manz: expose our environment to agents. And then when you ask for those data tasks, the thing that you
- 46:44Trevor Manz: generate at the end is this reproducible Python program that is a Marimo notebook, but you can
- 46:49Trevor Manz: drive that for many of these UIs of choice. And I look at these bars here, there's going to be
- 46:55Trevor Manz: jumping back and forth between these, depending on what the providers dictate in terms of their
- 47:01Michael Kennedy: Who gets blocked by the US government, who doesn't?
- 47:04Trevor Manz: Exactly.
- 47:05Trevor Manz: For us at Marimo, as long as we can make sure that regardless of what agent you use,
- 47:09Trevor Manz: you will have notebooks as a useful tool.
- 47:13Trevor Manz: Then at the end of the day, you're still just generating Marimo notebooks.
- 47:16Trevor Manz: Even if you turn off your agent, you have this reproducible artifact
- 47:19Trevor Manz: that is useful for communicating your data results
- 47:22Trevor Manz: or something about what happened in that session while you're working with data.
- 47:26Trevor Manz: That's our goal at Marimo,
- 47:27Trevor Manz: to make sure that whether you knew how to write Python code
- 47:30Trevor Manz: or you don't know how to write Python code,
- 47:32Trevor Manz: you're able to produce this reproducible artifact
- 47:35Trevor Manz: for your data analysis.
- 47:37Michael Kennedy: Okay.
- 47:38Michael Kennedy: You also talked about open code AI.
- 47:42Michael Kennedy: This is somewhat new to me.
- 47:44Michael Kennedy: What is this open code thing?
- 47:46Trevor Manz: Yeah, so open code is similar.
- 47:48Trevor Manz: I think Claude Code had the first form factor
- 47:51Trevor Manz: of being one of these terminal CLIs that you spin up.
- 47:54Trevor Manz: but just with the Anthropic models.
- 47:58Trevor Manz: And then OpenCode is a similar,
- 48:00Trevor Manz: like it feels very similar to using Claude Code,
- 48:03Trevor Manz: but it allows you to configure a lot of different models
- 48:05Trevor Manz: that have the ability to configure API endpoints.
- 48:09Trevor Manz: So for a while,
- 48:11Trevor Manz: I believe you can still configure all the different providers.
- 48:15Trevor Manz: It's just like the type of subscription models
- 48:18Trevor Manz: that you can use with OpenCode change quite a bit,
- 48:20Trevor Manz: similar to what you were just mentioning inside of VS Code.
- 48:24Michael Kennedy: Yeah, for example, it looks like you can use your Codex subscription, but not your Claude subscription.
- 48:31Trevor Manz: Yeah, exactly.
- 48:32Trevor Manz: So it should have a very similar form factor to when you type in Claude and you pop up that thing inside of your terminal.
- 48:39Trevor Manz: If you type in OpenCode, you'll get a window.
- 48:41Trevor Manz: You can start prompting.
- 48:43Trevor Manz: You can also install skills for OpenCode as well, the same way that you install for any of these harnesses.
- 48:50Trevor Manz: But we had some users that use OpenCode because of the open models.
- 48:53Trevor Manz: We have some users that are using Claude Code.
- 48:55Trevor Manz: We have some users that are using codex or VS Code.
- 48:58Trevor Manz: And like I mentioned, we just want to make sure that anyone can drive a Marimo notebook.
- 49:02Michael Kennedy: So it must be tough to be supporting AI stuff in this space, given how much flux it's under.
- 49:08Trevor Manz: Yeah, I think by inverting the problem in so far is that we are no longer like, you know,
- 49:14Trevor Manz: by moving some of this ability to drive Marimo outside of the Marimo UI, we don't have to
- 49:19Trevor Manz: keep up as much with all the fluctuation in the new models.
- 49:22Trevor Manz: And instead, the thing that we can focus on is the skill and making sure that that interface for controlling Marimo is really good from any agent of choice.
- 49:31Trevor Manz: And then as these different UIs compete for sort of where the users are going to be in terms of driving their agents, again, we can just sort of sit there with Marimo and just make sure Marimo is a really good tool for any of these agents.
- 49:46Michael Kennedy: Sure, sure, sure.
- 49:48Michael Kennedy: So having this, how does this change how people use notebooks?
- 49:53Michael Kennedy: I know how it's changed coding.
- 49:55Michael Kennedy: It's changed it quite a bit in some ways and not at all in others.
- 49:58Michael Kennedy: But how about for data?
- 49:59Trevor Manz: That's a really good question.
- 50:00Trevor Manz: So I mentioned earlier that part of the value of these environments
- 50:05Trevor Manz: like a Marimo notebook or like a Jupyter or Excel
- 50:08Trevor Manz: is the statefulness of those environments.
- 50:10Trevor Manz: And so it's really like there's a lot of, you know,
- 50:13Trevor Manz: when you're using an agent,
- 50:15Trevor Manz: it's able to gather things and put it from your file system
- 50:19Trevor Manz: to bring that into context or from the web
- 50:21Trevor Manz: to be able to, when you ask a prompt,
- 50:24Trevor Manz: perform a task that hopefully fulfills that
- 50:26Trevor Manz: to some sufficient level.
- 50:28Trevor Manz: And prior to having an integration like Marimo pair,
- 50:31Trevor Manz: that statefulness could be,
- 50:34Trevor Manz: basically the values that are in memory
- 50:36Trevor Manz: could be extra context to helping the agent
- 50:40Trevor Manz: answer some question,
- 50:42Trevor Manz: but you'd sort of have to babysit the model
- 50:43Trevor Manz: or tell it something like, oh, I copied this output,
- 50:45Trevor Manz: here's the output.
- 50:46Trevor Manz: And now when you say, what's in this data frame,
- 50:49Trevor Manz: it can look at those columns for you.
- 50:51Trevor Manz: Or for example, if I'm doing something like EDA type of analysis
- 50:56Trevor Manz: inside of Marimo, I can circle on a plot and make a selection.
- 50:59Trevor Manz: And I can say, what did I just select here?
- 51:01Trevor Manz: And the agent can go take that indice selection that I made,
- 51:05Trevor Manz: compare it against the data frame,
- 51:06Trevor Manz: and come back to me with some answer.
- 51:07Trevor Manz: So I think these types of questions that maybe felt tedious
- 51:11Trevor Manz: to ask before, like, because you'd have to type out a lot of code to do that.
- 51:16Trevor Manz: Now you can really either use the agent to help you write code or actually ask you questions
- 51:20Trevor Manz: about the state inside that notebook.
- 51:22Trevor Manz: And you're really extending the agent's, you know, environment with the intermediate values
- 51:27Trevor Manz: that, you know, as a human might find interesting.
- 51:29Trevor Manz: But now the agent can also use that as potential context.
- 51:32Michael Kennedy: One of the things I think is super useful.
- 51:35Michael Kennedy: A lot of times I feel like people maybe miss this and maybe, maybe more people than I realize
- 51:40Michael Kennedy: know about it, but in VS Code or PyCharm or cursor, I think cursor might be best as I'm not
- 51:46Michael Kennedy: entirely sure these days, but anyway, if I've got a file, maybe I've got hundreds of files in my
- 51:52Michael Kennedy: project, but a particular file I'm interested in, if I have that file open and I ask questions,
- 51:57Michael Kennedy: it's automatically included as context, just by virtue of having it be the last focused file.
- 52:03Michael Kennedy: But even better is you can highlight parts of a line or three lines or whatever and go,
- 52:08Michael Kennedy: what's wrong with this?
- 52:10Michael Kennedy: It's all you got to say.
- 52:11Michael Kennedy: And it goes, oh yeah, I see the function
- 52:12Michael Kennedy: that you're talking about,
- 52:13Michael Kennedy: the part that you've highlighted,
- 52:14Michael Kennedy: like boom, off it goes.
- 52:16Michael Kennedy: Is there some mechanism?
- 52:17Michael Kennedy: It sounds a little bit like there is,
- 52:19Michael Kennedy: but is there a mechanism in Marimo
- 52:21Michael Kennedy: that it communicates back what's active,
- 52:24Michael Kennedy: what you're working with?
- 52:25Trevor Manz: Yeah, so we have, you know,
- 52:27Trevor Manz: as the agent is running things,
- 52:28Trevor Manz: we can communicate, you know,
- 52:30Trevor Manz: what cells have changed
- 52:31Trevor Manz: or like if there are values
- 52:33Trevor Manz: that have changed in the notebook
- 52:34Trevor Manz: and then the agent can go and ask questions
- 52:36Trevor Manz: about those things that have changed.
- 52:38Trevor Manz: We have some folks in our team that are working on creating these sort of,
- 52:41Trevor Manz: like I think to what you're mentioning,
- 52:43Trevor Manz: imagine you highlight a line of code and you want to feed that back
- 52:46Trevor Manz: as potential context of here's where I'm focusing.
- 52:49Trevor Manz: Inside of a notebook, if you're using actually the integrated browser
- 52:53Trevor Manz: inside a VS Code or cursor, you can actually click on a plot
- 52:57Trevor Manz: and it'll take that screenshot and it'll add it as context
- 53:00Trevor Manz: to what you're going to ask.
- 53:01Trevor Manz: And so now you're having this interaction where it's not just the values
- 53:04Trevor Manz: but also the outputs and the visual outputs that you can say,
- 53:07Trevor Manz: hey, this is a little bit weird.
- 53:08Trevor Manz: I see this, this, and this.
- 53:10Trevor Manz: So we're definitely thinking that direction
- 53:11Trevor Manz: where, yeah, it's not just the line of code,
- 53:13Trevor Manz: but the value of the code
- 53:15Trevor Manz: and the representation of the code
- 53:16Trevor Manz: that could actually feed back
- 53:17Trevor Manz: to these multimodal models
- 53:18Trevor Manz: and help you sort of come to better understanding
- 53:21Trevor Manz: quickly with your data.
- 53:22Michael Kennedy: Yeah, awesome.
- 53:23Michael Kennedy: I love it.
- 53:24Michael Kennedy: It's so nice because instead of trying
- 53:26Michael Kennedy: to just like describe,
- 53:26Michael Kennedy: okay, and the third function called this,
- 53:29Michael Kennedy: there's a part where there's an if,
- 53:31Michael Kennedy: you know, just like highlight and go this, right?
- 53:33Michael Kennedy: It's great.
- 53:34Trevor Manz: Exactly.
- 53:35Trevor Manz: There's a certain level of interactions
- 53:36Trevor Manz: or feeding back of...
- 53:38Trevor Manz: I think when I started to realize
- 53:40Trevor Manz: that these agents could be very powerful
- 53:42Trevor Manz: was when coding tasks started to feel a lot cheaper.
- 53:45Trevor Manz: Like maybe these what-if ideas
- 53:47Trevor Manz: of something I wanted to try with software,
- 53:48Trevor Manz: I could, rather than that taking up a whole weekend
- 53:51Trevor Manz: or several weeks to try out,
- 53:53Trevor Manz: it's like maybe an afternoon I could try that out.
- 53:55Trevor Manz: And I think the experience that we want to provide
- 53:57Trevor Manz: for our users inside of Marimo Notebooks
- 53:58Trevor Manz: is that these kind of what-if questions with your data
- 54:01Trevor Manz: also feel very cheap.
- 54:03Trevor Manz: So you say, what is that?
- 54:04Trevor Manz: And now that like starts a conversation or starts a new part of your analysis that, you know, you maybe would have had to be very convinced to go down that route before.
- 54:11Trevor Manz: And now you can just like start to ask those questions and hopefully get to insight more quickly.
- 54:15Michael Kennedy: I think another thing that that's really nice for is, you know, hat tip to the name here is like pair, like pair programming, right?
- 54:23Michael Kennedy: If you were actually paired programming, you could just highlight something on the screen and go, what do you think about this?
- 54:28Michael Kennedy: Right. Where's sort of the traditional, I don't know, Claude code just in the terminal.
- 54:33Michael Kennedy: You've got to describe it a lot, talk about the file, right?
- 54:36Michael Kennedy: Like you can't just have it sort of ambiently there.
- 54:40Michael Kennedy: And if you're sitting there working with these tools, these agentic tools all day,
- 54:45Michael Kennedy: especially if you're not doing a lot of programming with other people, like it's
- 54:47Michael Kennedy: primarily the, you're sort of coding partner, you know, your paired programmer or
- 54:52Michael Kennedy: whatever, the more you've kind of got to artificially step out and say, yeah,
- 54:56Michael Kennedy: over on this file at dah, dah, dah, dah, try to find the file.
- 54:59Michael Kennedy: And then you're talking about this, right?
- 55:01Michael Kennedy: It breaks this flow and this idea of this thing is here to help me.
- 55:06Michael Kennedy: It's like, I'm just sending stuff to this dumb machine
- 55:09Michael Kennedy: that can't really figure out what's going on.
- 55:11Michael Kennedy: So I really like it.
- 55:13Michael Kennedy: This concept you're talking about.
- 55:14Trevor Manz: I had this experience where I was actually trying to help my dad
- 55:18Trevor Manz: look at some data that he had in Excel.
- 55:20Trevor Manz: Notoriously, that's very annoying to load an Excel file in Python
- 55:24Trevor Manz: because you end up writing your own little parser
- 55:25Trevor Manz: to figure out the different subsets of the tables.
- 55:28Trevor Manz: At the end of the day, what I really wanted were a couple data frames
- 55:31Trevor Manz: plot inside of the notebook. And being able to just drag from my UI the Excel file over into
- 55:37Trevor Manz: Marimo pair and saying, hey, can you just load these three tables inside the notebook and let
- 55:41Trevor Manz: the agent chug away in the notebook at trying to figure out how to create those plots for me?
- 55:46Trevor Manz: Maybe that would have taken me an hour to do on my hand from before. And it took a couple minutes
- 55:50Trevor Manz: for the agent or maybe even a minute for the agent. And then I got to focus on the exciting
- 55:54Trevor Manz: part was how to make these plots and communicate something with the data. So automating those pieces
- 55:58Trevor Manz: that are very bespoke and kind of annoying of like, how do you get data formats into the notebook is
- 56:02Trevor Manz: now something you can sort of, you know, task the agent on for a little bit. Right. I'm not a fan of
- 56:07Michael Kennedy: vibe coding really, but I do think this provides really interesting onboard, like on ramps for
- 56:12Michael Kennedy: people to get into notebooks and programming and so on. Cause maybe they can ask decent questions
- 56:19Michael Kennedy: about data, but they can't necessarily go, okay, I'm going to get the pie X amount, the XML,
- 56:24Michael Kennedy: XLS writer or whatever it is. Right. As you can tell, I don't remember exactly the name of it.
- 56:28Michael Kennedy: So there you go.
- 56:29Michael Kennedy: All right, that kind of thing.
- 56:30Michael Kennedy: And just like load this up and then let's talk about it.
- 56:32Michael Kennedy: Like I know what a data frame is,
- 56:33Michael Kennedy: but I really need to know how to like select the third sheet in Excel.
- 56:38Michael Kennedy: Yes, exactly.
- 56:39Trevor Manz: Do I need to know that API to like get my tasks done
- 56:41Trevor Manz: with these data inside the notebook?
- 56:43Trevor Manz: And I think, you know, for in this context as well,
- 56:47Trevor Manz: because Marimo has this, you know,
- 56:49Trevor Manz: this deterministic execution order,
- 56:52Trevor Manz: you can sort of collaborate on building, you know,
- 56:54Trevor Manz: this like this reproducible like workflow
- 56:57Trevor Manz: of how you got to that notebook.
- 56:59Trevor Manz: So you can, instead of vibe coding the whole thing,
- 57:01Trevor Manz: you can maybe allow someone to kind of vibe code
- 57:03Trevor Manz: the first bit of how do we get the data into memory?
- 57:06Trevor Manz: And then the things that really require attention
- 57:07Trevor Manz: about cleaning up the data and plotting the data
- 57:11Trevor Manz: and running some modeling on that data,
- 57:14Trevor Manz: now you've sort of freed up your time
- 57:15Trevor Manz: to focus on those bits as well.
- 57:17Michael Kennedy: Yeah, 100%.
- 57:18Michael Kennedy: It lets you focus on the parts that actually matter,
- 57:20Michael Kennedy: not just silly file formats and stuff like that, right?
- 57:23Trevor Manz: Yeah.
- 57:24Trevor Manz: And we're lucky because Python's such a Swiss army knife
- 57:26Trevor Manz: to all that has such a rich ecosystem
- 57:28Trevor Manz: of ingesting data and working with data
- 57:31Trevor Manz: that you can lean on that ecosystem
- 57:35Trevor Manz: plus the agent inside of the notebook
- 57:37Trevor Manz: to get your data into a format that is useful.
- 57:39Trevor Manz: But then that's the point that you step in
- 57:41Trevor Manz: and start to direct more about what direction
- 57:43Trevor Manz: you want to take that analysis.
- 57:45Michael Kennedy: Totally.
- 57:45Michael Kennedy: So a couple of final questions
- 57:48Michael Kennedy: to wrap up our conversation here.
- 57:49Michael Kennedy: Tips and tricks for people like,
- 57:52Michael Kennedy: okay, you've got the skill, you've got Marimo.
- 57:54Michael Kennedy: Are there interesting things you've all discovered you can do
- 57:58Michael Kennedy: that maybe are non-obvious?
- 57:59Michael Kennedy: Tips and tricks.
- 58:00Trevor Manz: Honestly, my recommendation would be to,
- 58:02Trevor Manz: if there is some data set that you have in mind,
- 58:05Trevor Manz: like the example I mentioned with an Excel file,
- 58:08Trevor Manz: it's a very fun task to just drag in a data set and say,
- 58:11Trevor Manz: please load this for me inside the notebook
- 58:13Trevor Manz: and let's start making some plots or something.
- 58:15Trevor Manz: And I think very quickly you'll realize
- 58:18Trevor Manz: how quickly this runtime inspection
- 58:20Trevor Manz: really shapes this user experience
- 58:23Trevor Manz: where I think I went from being very hands-on
- 58:25Trevor Manz: with working in notebooks
- 58:26Trevor Manz: to being able to sit back a little bit more
- 58:29Trevor Manz: and think cell-by-cell about what I want to do.
- 58:31Trevor Manz: So I just encourage folks to try it out with their data
- 58:36Trevor Manz: and let us know what they run into.
- 58:37Michael Kennedy: Okay, yeah, that makes a lot of sense.
- 58:39Michael Kennedy: One thing that I've done before,
- 58:41Michael Kennedy: just playing around with data,
- 58:42Michael Kennedy: is I've asked Claude,
- 58:44Michael Kennedy: like, hey, here's the data, here's the scenario.
- 58:47Michael Kennedy: What are some interesting questions
- 58:49Michael Kennedy: we should be asking about it?
- 58:51Michael Kennedy: here's what I think is interesting, but what am I missing?
- 58:55Michael Kennedy: Are there trends in the data that I don't see that maybe you can pull out
- 58:58Michael Kennedy: and just kind of have it just cruise around and just think about it a little bit?
- 59:01Michael Kennedy: And it was really good.
- 59:03Trevor Manz: Yeah, and I think you can imagine extending that.
- 59:07Trevor Manz: Typically when you're maybe asking those questions back and forth with Claude,
- 59:10Trevor Manz: it's giving you some tables and numbers and distributions in the data.
- 59:14Trevor Manz: But because when you're connected to a Marimo kernel,
- 59:17Trevor Manz: now you can ask for plots or different visual representations
- 59:20Trevor Manz: that might be able to show those trends.
- 59:22Trevor Manz: So if the agent is telling you
- 59:24Trevor Manz: that there is this difference,
- 59:25Trevor Manz: you could say, hey, make a bar chart
- 59:26Trevor Manz: or a box plot for me to understand that information.
- 59:30Trevor Manz: Because you do just have this much richer canvas
- 59:33Trevor Manz: for talking about your data
- 59:34Trevor Manz: rather than just the ASCII output in your terminal.
- 59:37Michael Kennedy: Right, the first thing that I got
- 59:38Michael Kennedy: was a bunch of data frames and heads
- 59:40Michael Kennedy: or stats or something like that.
- 59:43Michael Kennedy: And I'm like, this is great,
- 59:45Michael Kennedy: but describe this in pictures.
- 59:47Michael Kennedy: And then I had a bunch of graphs.
- 59:48Michael Kennedy: And I'm like, okay, that was cool.
- 59:50Michael Kennedy: That was really cool.
- 59:51Michael Kennedy: Maybe people could try that, right?
- 59:53Michael Kennedy: Definitely.
- 59:53Michael Kennedy: All right, roadmap.
- 59:55Michael Kennedy: Where are things going?
- 59:56Trevor Manz: Yeah, so as I mentioned,
- 59:57Trevor Manz: we are currently building a tighter integration
- 1:00:00Trevor Manz: with our native editor inside of VS Code.
- 1:00:02Trevor Manz: So essentially our direction with Marimo Pair
- 1:00:04Trevor Manz: is to try to think of all the places
- 1:00:06Trevor Manz: in which folks are trying to drive agents
- 1:00:09Trevor Manz: that maybe we could have the ability
- 1:00:11Trevor Manz: to spin up a Marimo notebook
- 1:00:12Trevor Manz: and allow folks to collaborate
- 1:00:13Trevor Manz: on these reproducible artifacts.
- 1:00:17Trevor Manz: So right now that looks a lot like
- 1:00:19Trevor Manz: more terminal oriented workflows.
- 1:00:21Trevor Manz: We have some integration now
- 1:00:22Trevor Manz: inside the Marimo editor itself,
- 1:00:23Trevor Manz: like I mentioned,
- 1:00:24Trevor Manz: where you can open up the chat
- 1:00:25Trevor Manz: and start using Marimo pair.
- 1:00:27Trevor Manz: We'll have a further integration into VS Code.
- 1:00:30Trevor Manz: And I think down the line,
- 1:00:30Trevor Manz: we'll have eventually,
- 1:00:32Trevor Manz: you know, if you're using Cloud Desktop
- 1:00:33Trevor Manz: or Codex Desktop,
- 1:00:35Trevor Manz: that maybe you can start your little chat there.
- 1:00:37Trevor Manz: And that could also drive a Marimo notebook as well.
- 1:00:39Michael Kennedy: I feel like that's an entirely missing piece
- 1:00:41Michael Kennedy: of this whole agentic AI world,
- 1:00:44Michael Kennedy: like the Google Docs CoLab equivalent, right?
- 1:00:47Michael Kennedy: Like I've started up Claude Code
- 1:00:49Michael Kennedy: or something like that.
- 1:00:50Michael Kennedy: And now, why don't you join my session?
- 1:00:52Michael Kennedy: We'll all talk to Claude and, you know, have it go.
- 1:00:55Michael Kennedy: I don't know, maybe someday.
- 1:00:56Trevor Manz: Yeah, or maybe Maremo can serve.
- 1:00:58Trevor Manz: Like, you know, we will have,
- 1:01:00Trevor Manz: we are currently working on some real-time collaboration features
- 1:01:03Trevor Manz: inside of Maremo.
- 1:01:04Trevor Manz: And maybe there's some way that, you know,
- 1:01:05Trevor Manz: multiple people have multiple agents that are talking to the same
- 1:01:08Michael Kennedy: Maremo kernel.
- 1:01:09Michael Kennedy: Each person with their agent buddy are all in there.
- 1:01:12Michael Kennedy: That seems totally reasonable as long as it's, you know, aware.
- 1:01:16Michael Kennedy: What about remote?
- 1:01:18Michael Kennedy: So I'm running Marimo, I'm not on my machine,
- 1:01:21Michael Kennedy: but on some server or some cloud service or whatever,
- 1:01:24Michael Kennedy: but I've got my cloud local and I want to have those things work together.
- 1:01:28Trevor Manz: Yeah, so the way that behind the scenes,
- 1:01:31Trevor Manz: like how the tool call works inside of Marimo,
- 1:01:34Trevor Manz: it's a bash script that's called execute code.
- 1:01:37Trevor Manz: That allows you to swap in a URL, whether that's on local host
- 1:01:40Trevor Manz: or something remotely with some authentication.
- 1:01:42Trevor Manz: And therefore you can connect your local cloud
- 1:01:45Trevor Manz: to some remote Marimo kernel as well.
- 1:01:47Trevor Manz: And then you have a sandbox that's not running on your machine at all, but somewhere in the cloud.
- 1:01:51Trevor Manz: But you're driving that from your local machine.
- 1:01:53Michael Kennedy: Some big machine with GPUs or whatever, that's a better place to run your code.
- 1:01:58Trevor Manz: Yeah, exactly.
- 1:02:00Trevor Manz: At Marimo, we have a cloud-hosted version of Marimo Notebooks that's called Molab
- 1:02:04Trevor Manz: that we recently released on CoreWeave Infrastructure, where we have some GPUs for our community.
- 1:02:10Trevor Manz: And you can actually today go inside that UI and click pair with an agent,
- 1:02:14Trevor Manz: And you can copy a little cloud command
- 1:02:16Trevor Manz: and connect that to your Claude Code or your codex.
- 1:02:19Trevor Manz: And then you can start pair programming locally
- 1:02:22Trevor Manz: with that remote sandbox in the cloud.
- 1:02:24Michael Kennedy: I love it. That's awesome.
- 1:02:25Michael Kennedy: All right, final call to action.
- 1:02:27Michael Kennedy: People are like, Marimo pair sounds cool.
- 1:02:29Michael Kennedy: What do you tell them? How do they get started?
- 1:02:30Trevor Manz: Yeah, so I'd recommend going to marimo.io slash pair,
- 1:02:35Trevor Manz: grabbing the skill and spinning up a notebook of your own
- 1:02:38Trevor Manz: and just trying to do tasks that you do with data.
- 1:02:41Trevor Manz: Traditionally, maybe in a notebook
- 1:02:42Trevor Manz: or maybe if things haven't been going well inside that notebook.
- 1:02:46Trevor Manz: We haven't put up the site yet.
- 1:02:47Michael Kennedy: That's right, it's coming soon.
- 1:02:49Michael Kennedy: I totally forgot you said that.
- 1:02:51Michael Kennedy: By the time this episode comes out, that will be there.
- 1:02:53Trevor Manz: If you're watching the live stream, maybe give it a few days.
- 1:02:56Trevor Manz: By the time this episode comes out, check out marimo.io.
- 1:03:00Trevor Manz: Or go to our GitHub for marimo pair, install the skill,
- 1:03:03Trevor Manz: and show us what you build with Marimo,
- 1:03:06Trevor Manz: regardless of if you're driving it with agents.
- 1:03:08Trevor Manz: But we'd love to hear if you start using out agents
- 1:03:10Trevor Manz: where the skill falls short
- 1:03:13Trevor Manz: and how we can really improve that user experience.
- 1:03:16Michael Kennedy: Cool.
- 1:03:16Michael Kennedy: Well, it seems like a really neat idea.
- 1:03:18Michael Kennedy: I think you're going to have a lot of success with it.
- 1:03:20Michael Kennedy: So thanks for coming on the show
- 1:03:22Michael Kennedy: and sharing it with everyone.
- 1:03:23Trevor Manz: Yeah, thanks so much for having me, Michael.
- 1:03:24Michael Kennedy: Yeah, you bet.
- 1:03:25Michael Kennedy: Bye.
- 1:03:27Michael Kennedy: This has been another episode of Talk Python To Me.
- 1:03:30Michael Kennedy: Thank you to our sponsors.
- 1:03:30Michael Kennedy: Be sure to check out what they're offering.
- 1:03:32Michael Kennedy: It really helps support the show.
- 1:03:34Michael Kennedy: This episode is brought to you by Sentry.
- 1:03:37Michael Kennedy: You know Sentry for the air monitoring,
- 1:03:38Michael Kennedy: but they now have logs too.
- 1:03:40Michael Kennedy: And with Sentry, your logs become way more usable,
- 1:03:43Michael Kennedy: interleaving into your error reports to enhance debugging and understanding.
- 1:03:48Michael Kennedy: Get started today at talkpython.fm/sentry.
- 1:03:51Michael Kennedy: If you or your team needs to learn Python,
- 1:03:54Michael Kennedy: we have over 270 hours of beginner and advanced courses
- 1:03:57Michael Kennedy: on topics ranging from complete beginners to async code,
- 1:04:01Michael Kennedy: Flask, Django, HTML, and even LLMs.
- 1:04:04Michael Kennedy: Best of all, there's no subscription in sight.
- 1:04:07Michael Kennedy: Browse the catalog at talkpython.fm.
- 1:04:09Michael Kennedy: And if you're not already subscribed to the show on your favorite podcast player,
- 1:04:13Michael Kennedy: what are you waiting for?
- 1:04:15Michael Kennedy: Just search for Python in your podcast player.
- 1:04:16Michael Kennedy: We should be right at the top.
- 1:04:18Michael Kennedy: If you enjoy that geeky rap song, you can download the full track.
- 1:04:21Michael Kennedy: The link is actually in your podcast player show notes.
- 1:04:23Michael Kennedy: This is your host, Michael Kennedy.
- 1:04:25Michael Kennedy: Thank you so much for listening.
- 1:04:26Michael Kennedy: I really appreciate it.
- 1:04:28Michael Kennedy: I'll see you next time.
- 1:04:41Thank you.