Latest / Talk Python To Me / #343: Do Excel things, get notebook Python code with Mito
Transcript
- 0:00Here's a question. What's the most common way to explore data? Would you say Pandas and Matplotlib?
- 0:06Maybe you went a little broader and more general and said Jupyter Notebooks. How about Excel or
- 0:13Google Sheets or Numbers or some other spreadsheet app? Yeah, my bet is on Excel. And while it has
- 0:18many drawbacks, it makes exploring tabular data very accessible to many people, most of whom
- 0:24aren't even developers or data scientists. On this episode, we're talking about a tool called
- 0:30Mido. This is an add-in for Jupyter Notebooks that injects an Excel-like interface right into the
- 0:36notebook. You pass it data via a Pandas data frame or some other source, and then you can explore it
- 0:42as if you're using Excel. The cool thing is, though, just below that, in another cell, it's writing the
- 0:48Pandas code. You need to actually accomplish that outcome in code. I think this will make Pandas and
- 0:54Python data exploration way more accessible to many more people. If you've been intimidated by
- 0:59Pandas or know someone who has, this could be what you're looking for. This is Talk Python To Me,
- 1:04episode 343, recorded November 8th, 2021. Welcome to Talk Python To Me, a weekly podcast
- 1:24on Python. This is your host, Michael Kennedy. Follow me on Twitter where I'm @mkennedy,
- 1:28and keep up with the show and listen to past episodes at talkpython.fm. And follow the show
- 1:33on Twitter via at Talk Python. We've started streaming most of our episodes live on YouTube.
- 1:39Subscribe to our YouTube channel over at talkpython.fm/youtube to get notified about upcoming shows
- 1:45and be part of that episode. This episode is brought to you by Shortcut and Linode,
- 1:51and the transcripts are sponsored by Assembly AI. Aaron, Nate, and Jake, welcome to Talk Python To Me.
- 1:58Hey. Hey. Hey, y'all. Thanks, man. How's it going?
- 2:00It's going really well. I'm excited to be on the data science side of the world today with you guys.
- 2:06Cool. So are we.
- 2:07Yeah, you built some really neat tools to help people get started and get up to speed and just be
- 2:11more efficient than just solely writing Python code, but not, you know, excluding that either with your
- 2:18product Mito. So that's super fun, and we're going to talk about that. But before we do, you know,
- 2:22let's just kind of go around and how do you get interested in data science and working on this
- 2:27Python tool? Aaron, you want to go first?
- 2:29Yeah. So a little background. Jake and I, you can't tell just by the first names,
- 2:32but we are twin brothers. So we've been working on projects together for a long time. Nate has been
- 2:38our best friend since middle school. I think I didn't get invited to his eighth grade birthday.
- 2:43So I think maybe starting in high school. And then he also went to college with us.
- 2:46And I think like, yeah, we got our first like taste of data science at Penn. We all studied a mix of
- 2:53computer science and business. And in the business classes, you do a lot of Excel based,
- 2:59mostly, unfortunately, Excel based data analytics work and stat classes and finance classes and stuff
- 3:04like that. So I think that's really where we got our first taste of data analytics or data science
- 3:09work. And then we've each had some experiences through internships and jobs that we've had over
- 3:14the past few years in the data science space as well. But really, I think it all goes back to the
- 3:20beginnings of the courseworks that we did at Penn.
- 3:22That's great that you all are able to stay together. I mean, obviously brothers,
- 3:25continue to work together. And on this project, you know, business, business schools,
- 3:30a whole business program just run on Excel, don't they?
- 3:33It's kind of amazing the contrast because so Aaron and I specifically both got degrees in computer
- 3:39science and in the business school. And so it was there was this transition where you'd be hanging out
- 3:43in, you know, in class in the engineering school, and you'd be writing code. And then you would like
- 3:47walk up campus into the business school, and it'd be like returning to the dark ages in some ways,
- 3:51right? Yeah. And what's really cool, I think about Excel generally is that what we observed is that it
- 3:55let, you know, our peers in school and us as well kind of complete really some amazing projects that we
- 4:01might have not been able to do with code because our skills, you know, we were still learning at that
- 4:04point. And so it's really kind of this really beginner friendly, amazingly powerful tool for what it is.
- 4:08But then we would go back down to the engineering school and be like, Oh my God, there's all this
- 4:11tooling here. We could have superpowers, but we don't know how to use this stuff. Right? So there was this
- 4:16very direct contrast that we witnessed where there's very cool stuff happening all over the
- 4:20place. But the tooling differential is pretty dramatic between between business school and
- 4:24computer science world. And I think that's kind of what initially made us interested in this space.
- 4:27Sure. You don't want to underestimate the power of just firing up Excel, selecting a section,
- 4:32throwing up a graph or two. And that's incredible. And all of the functions and stuff. But you know,
- 4:38it's if you think of bad programming practices, one of the worst ones has got to be like,
- 4:44do these three things and then go to over here and then do a couple of things, then go over there and
- 4:48then get that thing and then go back. You know, we've banished this type of programming from regular
- 4:53programming long ago. And Excel is like that without even being able to see where the go to's point.
- 4:58You know, it's really, it's really not very predictable, right?
- 5:01Yeah. It's really amazing. And it's really, it's crazy, I think, because once you start thinking about
- 5:05spreadsheets, you quickly realize, I mean, there's a couple of crazy things about spreadsheets that
- 5:08people don't really acknowledge. We, you know, talk about them internally because we're
- 5:12spreadsheet nerds at this point. And, you know, we like, you know, hyping up spreadsheets and stuff,
- 5:15but it's like, you know, the original killer applications of computers were spreadsheets,
- 5:19right? Oh yeah. And more than that, it's spreadsheets are the most successful programming
- 5:23environment in the world. Hundreds of millions of people can program in Excel. The next leading
- 5:28programming language has 10, 20 million. You know what I mean? So it's really, there's an order of
- 5:32magnitude difference in how, you know, well adopted these things are, but you're totally right.
- 5:35The number of foot guns in Excel and the amount of like 50 megabyte insane models that we've seen
- 5:40where people are like, it's 75 tabs and they're all linked to each other in some crazy circular way.
- 5:45It's really slow. I don't know why.
- 5:46Well, I know why.
- 5:48Not sure what's happening, but yeah. And we probably have built a couple of those ourselves,
- 5:51probably even worse ones. But yeah, so, you know, we've seen that and it's definitely,
- 5:55those are some of the problems of spreadsheets that we kind of initially,
- 5:58we were like, hmm, maybe these are some things that we can, you know, try to help solve.
- 6:02Yeah, absolutely. And Aaron and Nate, as you would go from business school back to the computer science
- 6:07side, I guess specifically to the business school, did your business peers look at you like, oh,
- 6:13these are the guys that have the power to make the thing happen. They can help us build the thing
- 6:17that we can't quite automate or can't quite pull off.
- 6:20I think in some ways it was like trying to work in a group in an Excel spreadsheet is a miserable
- 6:25experience. I hope you haven't had to do it, but it's like you upload, you have a Google drive
- 6:29and then you end up uploading new versions to the Google drive. And then it's usually a Google drive
- 6:34paired with a text message group chat. And it's like, I just finished this sheet. Why don't you go up
- 6:39and, you know, do download it again or something? Yeah, exactly. Make sure you're not doing it the same
- 6:44time I'm doing it. And I think that I don't think Nate and I maybe solved, solve those collaboration
- 6:50problems while we're at Penn, but I think it was those experiences and our thinking we've had,
- 6:55our programming as a superpower made us want to start doing this. I don't know if it was
- 6:59always recognized by everybody else though.
- 7:01I think the big thing was maybe we weren't the best at attending class. So that was, it was hard to be a
- 7:05good group member in the first place, but one day, one day will be helpful.
- 7:08Yeah. Group work was always hard for me as well. Jake, how about you? How'd you get into this whole
- 7:12project here?
- 7:13Well, mostly by plug line. I'm Aaron's twin brother. So sort of like a, some sort of covenant,
- 7:18I think comes through that. But no, we, so we, we started working really in this like Excel
- 7:23collaboration space. My background, I worked at a software company during college, sort of on the
- 7:28project management side of some data science projects. So I had, you know, not quite the business
- 7:33side of it yet, but at least a little one separate from like the coding product side of it.
- 7:37Yeah. And yeah, we started working on these collaboration issues and we built a few other
- 7:41products before it had some, you know, modicums of success there, but really took a step back
- 7:45at one point. We're looking at like, what are the biggest problems with spreadsheets? It's the speed,
- 7:50it's the inability to play in the large data sizes, and it's the lack of repeatability though.
- 7:55It just allows you to do, you know, repeatable processes in an efficient way. And so the place we
- 8:01found that does all this really well is some kind of sort of very elite is, is Icon. So if the idea was to
- 8:06stick a spreadsheet interface on top of Python, and that was sort of like a sentence we had written
- 8:12down really, okay, now we need to backtrack and realize like, what does that mean? How do we do
- 8:15that? How do we deal with that? And, opened the few thousand cans of worms doing so.
- 8:20Yeah, I'm sure. But it's a super neat idea. You know, there's a lot of things that you can automate
- 8:25with Python, but with what you guys built, we'll get to it in a little bit, but what you all built
- 8:29lets you interact in this spreadsheet way, and then it writes the Python code. It doesn't
- 8:35just sort of allow you to make changes. And then you got to stay in your tool, right? You
- 8:41use the tool to write code that otherwise might be a little bit of a stretch for you.
- 8:45Yeah, I think, and I can talk more high level, they can talk about exactly why and how we did
- 8:49that. But like a lot of just from the business side, like a lot of other tools will try and
- 8:53extract Python away. So we'll give you, we'll allow you to do the types of workflows that you
- 8:57would do in Python, but in a DUI individual environment, we're much more tethered to the Python
- 9:03or try to be more tethered to the Python and the notebook. It's really important to us that you're
- 9:06staying in your Python environment, and you're not at any, now you're not at a disadvantage at
- 9:11all because you don't have the code. The code is right there. It's being generated real time.
- 9:14And that's important for yourself. If you're learning Python, if you're trying to use the code,
- 9:19or if it's a communication layer, you want that code because you want to send that to a developer
- 9:23who's working in Python as well. So really important for us to be tethered there.
- 9:27Right. Yeah. It probably brings, allows you to bring more people into the actual project than
- 9:32before.
- 9:32Yeah. You're much less siloed by being in the environment.
- 9:35Yeah, absolutely.
- 9:36That kind of like mentality of when you're building tools for beginners or people that don't know,
- 9:41like maybe the professional software, make it really point and click and kind of like hide a lot
- 9:46of the complexity. I think that's something that we've experienced with tools that we've used.
- 9:50For example, like we use Stripe and Stripe creates a bunch of dashboards for you. But the problem is
- 9:55we have no idea what those dashboards, like what, what is the nitty gritty details of how those numbers
- 10:00are calculated. And so we have all these metrics and we have really poor understanding of like,
- 10:04what is this actually telling us? And so I think something interesting that we definitely try to do
- 10:09is we give you, you know, people that are maybe less familiar with writing the syntax yourself,
- 10:14the ability to, as you said, point and click and use the spreadsheet environment and then generate the
- 10:18code. And then if you ever have questions about, oh, like what did this, what is this pivot table
- 10:22that I created? What does it really mean? Then you can look at the generated code and see exactly
- 10:27what's going on. And I think that kind of like understanding where users need help and where
- 10:31users want the as professional as possible, you know, nitty gritty details is a stratification that
- 10:37we've thought about and I think have a somewhat unique approach to when it comes to these like no code,
- 10:42low code tools.
- 10:43Yeah, absolutely. So I kind of want to set the stage by talking about some of the different
- 10:49things people are doing with notebooks because notebooks have really taken over in the data
- 10:54science space for a good reason. I think, you know, we had IPython notebooks and we had Jupyter and we
- 10:59had JupyterLab, which is doing a little bit more than just Jupyter and people really love them,
- 11:05I think. And while JupyterLab is great, I think there's even, there's a bunch of creative things
- 11:12going on, trying to extend it and use it in different ways. And I feel like Mito falls in there. So I
- 11:17wanted to throw out a couple and just see if you all have heard of these and if so, get your thoughts
- 11:20on them. One of them is this thing called JUT, J-U-T, J-U-T, maybe something like that. And what it allows you
- 11:29to do is it allows you to actually view notebooks in the browser. So have you guys, or not the
- 11:35browser, in the terminal, have you guys seen this?
- 11:36I haven't seen it, but I do have a lot of sympathy for the unknown pronunciation of JUT or JUT because
- 11:42we get Mito and Mito a lot. So my heart goes out to the JUT for sure.
- 11:46Yeah, I'm sure, I'm sure I'm messing it up, but yeah. Yeah. So here's a way to say like, well,
- 11:51these notebooks are so popular. Let's see if we can show them in the terminal. Like if I'm SSH'd into a
- 11:57remote machine and it has, you know, IPYNB files and I just want to see them, how do I look at them?
- 12:03And so you just say JUT, I'm going to go with JUT. You just say JUT and then the file name and then
- 12:08boom, it shows it right there using Rich, I think. Super cool. Yeah, I think that this is, and I'm sure
- 12:13this comment will expand out on as we see more of these, but I think it really demonstrates something
- 12:18that we've really observed, which is that notebooks are not like, they're just like Excel in many ways.
- 12:22They're not a tool that's used by one person for one specific thing, right? So we use a tool called
- 12:27Mixpanel, for example. It helps us tracks and metrics, for example. It's a product analytics
- 12:32tool. Yeah. I've used it before. Yeah. It gives you insane amount of analytics of like, where did
- 12:36these people come from? How did they find my product and stuff like that, right? Exactly. And you can
- 12:40kind of imagine though, it's really in some ways, it's just for product analytics, right? In some ways.
- 12:44And the really interesting thing about a lot of our users is that we, you know, one thing as we're
- 12:49trying to learn about our users and work with them to improve the tool, one thing we really realized is
- 12:52there's people from all over the place and they're interested in notebooks for 472 different
- 12:57reasons, right? And so some people using notebooks are people who've never written any Python code
- 13:01before in their life. Some people have two weeks under of experience and some people are 75 year old
- 13:06developers who only use the terminal. And if you show them anything else, they'll try and fight you,
- 13:09right? So it's, you know, it's really, I think this demonstrates that there's really an appetite for a
- 13:13wide range of kind of ways of consuming these things and presenting these things and editing these things
- 13:18on these notebooks specifically. Yeah. That's a great, yeah. Yeah. Great analysis.
- 13:22I totally agree. That's another cool thing about a tool like this or tools like this more generally
- 13:26is that I think what they sort of have to do for a product perspective is condense down. What are the
- 13:30really powerful things about notebooks? Cause they're taking a notebook and bringing it out of a notebook
- 13:34environment. And I think kind of what we're trying to do with a spreadsheet is like, what are the values
- 13:38of a spreadsheet? How can we bring a spreadsheet into other environments? So I think a tool like Jude is,
- 13:42is just trying to do that. I think it's a, it's an interesting way to think about product. It's like,
- 13:47sort of like, what is the essence? What is it? What are the essential parts of a notebook? What
- 13:51are the essential parts of a spreadsheet? How do we translate those and bring that value to other
- 13:55environments? So I always, I'm interested in tools like that. Yeah, for sure. This is an interesting
- 13:58one. Another one is they just came out with JupyterLab desktop version. And I suspect that you guys
- 14:06could even integrate with the JupyterLab desktop app, right? I hope so. Most likely. Yes. The answer is
- 14:12probably yes. But, you know, I'll be honest with you, like candidly, if I spend one more minute
- 14:17on installation problems, I might, you know, chop my arms off or something. I don't know,
- 14:20but it's, it's really, I mean, I'm sure I don't have to preach to you. I'm sure you've heard this a
- 14:24million times, but the Python installation ecosystem environment issues is a, it's a massive
- 14:30blocker. I knew it was a massive blocker from like an individual level. Oh, I bet if you're trying to
- 14:35reach people who are going through it, like I would just want to use Excel and like have a little bit of
- 14:39code. Yeah. Conduit virtual environments, hip versions of Python. Yeah. You probably get a
- 14:46couple of questions about that every now and then. Yeah. Yeah, exactly. I think that this is a really
- 14:54cool example of, I guess, you know, the Jupyter devs realizing that distribution is one of the primary
- 14:59problems here. And certainly with us, it's, it's like the primary bottleneck and users trying our product
- 15:04is not, they can't figure out how to use it. It's that they can't even get the thing installed in the
- 15:07first place. Yeah. You know, making that as easy as possible. I'm, you know, I'm sure there's still
- 15:11work to do here, but, you know, really hats off to them and definitely something that we're
- 15:14interested in and working with them in the future. If we don't already, there's probably some hack to do
- 15:18it currently, but I have not, I've not done anything in earnest with Jupyter and lab desktop,
- 15:23but I have installed it and run it. And I think it comes pre assembled with Python and Conda.
- 15:28You don't have to have, it basically comes all set and it, then it just hosts Jupyter
- 15:33lab locally inside of an electron app. So it might even be better for you guys.
- 15:38Yeah. I'm not totally sure, but if you can make it work at all, I bet it's better.
- 15:41I think what Nate is talking about is it's a trade-off that any tool or product building
- 15:45as an extension to Python is going to face, especially if it's one that's trying to make
- 15:49parts of data science more accessible to a newer audience. If you're building it in a
- 15:53Jupyter environment, there's a lot of freebies you get. There's a lot of great nuggets,
- 15:56valuable things to the user you get, but, you know, installation can be such a nightmare that you might
- 16:01be casting away at certain part top of the funnel just by doing it.
- 16:05One of the benefits, I guess, that you all will receive is people can go Google for help setting
- 16:11up notebooks and getting the notebook started and all that. And you don't have to be part of that,
- 16:14right? Like there's a whole ecosystem of, of people running notebooks, people writing articles
- 16:19about using notebooks for beginners. And so you can just sort of level up on top of that and say,
- 16:24once you go through all what they show you over here, here's how you go. Right. I mean,
- 16:28obviously you want to help people succeed because if they can't get Jupyter going,
- 16:31they can't use Mito. Yeah. I was creating documentation for getting set up with Mito and
- 16:35I went to the JupyterLab documentation and first things like creating a new sheet,
- 16:39I just grabbed the JupyterLab YouTube video and put it in our documentation free.
- 16:44Well, that's one of the things I like about your documentation and your site is it's sprinkled
- 16:49with screencasts, like little examples of how to do stuff or how to demonstrate stuff. And
- 16:54I think more places should do that, right? There's so many places or so many projects that I just
- 17:00don't understand though. It'll be a UI framework and there won't be a single picture of anything.
- 17:05Like what it's about picture. The whole purpose is pictures. Give us a picture, at least it's like a
- 17:10gallery or something. And similarly with how do you use things and just, yeah, you know, hats off to you
- 17:16guys for putting those in there. Cause I think it makes a big difference.
- 17:19Yeah. One of the reasons I think we've done that and had some, some good videos is just in terms of
- 17:23just growing the tool, we've partnered with a lot of people in the YouTube data science community,
- 17:27and they're all really good at making demos. I think we've learned a lot from them. People like
- 17:31the data professor, Chris Nick, or two we work with a lot, but they've sort of, I think, I think at least
- 17:37myself learned a lot from how to present a tool in a video. And that's obviously really valuable for,
- 17:42for going to teach.
- 17:43Yeah. I prefer to just fire up a two or three minute video and watch it instead of reading
- 17:47through and see what I really got to pay attention to.
- 17:51This portion of talk Python to me is brought to you by shortcut, formerly known as clubhouse.io.
- 17:56Happy with your project management tool. Most tools are either too simple for a growing engineering team
- 18:01to manage everything or way too complex for anyone to want to use them without constant prodding.
- 18:06Shortcut is different though, because it's worse. No, wait, no, I mean, it's better.
- 18:10Shortcut is project management built specifically for software teams. It's fast, intuitive, flexible,
- 18:16powerful, and many other nice positive adjectives. Key features include team-based workflows.
- 18:22Individual teams can use default workflows or customize them to match the way they work.
- 18:27Org-wide goals and roadmaps. The work in these workflows is automatically tied into larger company
- 18:32goals. It takes one click to move from a roadmap to a team's work to individual updates and back.
- 18:38Type version control integration. Whether you use GitHub, GitLab, or Bitbucket,
- 18:43Clubhouse ties directly into them so you can update progress from the command line.
- 18:47Keyboard-friendly interface. The rest of Shortcut is just as friendly as their power bar,
- 18:52allowing you to do virtually anything without touching your mouse. Throw that thing in the trash.
- 18:57Iteration planning. Set weekly priorities and let Shortcut run the schedule for you with
- 19:03accompanying burndown charts and other reporting. Give it a try over at talkpython.fm
- 19:08slash shortcut. Again, that's talkpython.fm/shortcut. Choose shortcut because you shouldn't
- 19:16have to project manage your project management.
- 19:18JupyterLab Desktop is one of these sort of interesting things. Another one is JupyterLite,
- 19:25which is Jupyter written in WebAssembly that runs just in the front end of the browser.
- 19:29You guys check this thing out?
- 19:31No, but this sounds amazing. I don't know if I saw the WebAssembly version, but I saw a Python
- 19:35compiled to JS version of this, etc. But I mean, it would be very cool if everything could happen
- 19:41in the browser because I feel like installation problems would evaporate, which is the goal.
- 19:46It's the goal at the end of the day. So this is super interesting. We'll definitely check this out.
- 19:49Yeah, this might also be relevant to you guys because it's basically Jupyter running and then they run
- 19:55in-browser WebAssembly language kernels. So a limited set of CPython in WebAssembly in the browser and
- 20:03probably also Julia and R and all those things.
- 20:04Maybe partially non-technical audience like myself. What is the benefit here?
- 20:09I'll take a shot. Yeah. So how I would describe this is that normally the way JupyterLab works is
- 20:14that it's a client server model, right? So your client is effectively the thing that you as a user
- 20:19interact with. You have a notebook that you see, you write code in the notebook, you press shift enter
- 20:23to run a notebook cell. What actually happens when you press shift enter is that code gets sent to
- 20:28the server. The server in this case is a Python kernel and the Python kernel actually runs that
- 20:33code and then sends you back the results. So there's what you see on your web browser and then
- 20:37there's a server running usually on your command line or something and you send code to it. It executes
- 20:42the code and sends you the results. The benefit of this thing is that you can get rid of that backend.
- 20:45So there's no more installation and instead you only need this kind of notebook that lives on the front
- 20:50end, WebAssembly is a tool that allows us to run the code on the front end. And so instead of taking
- 20:56code, sending it to the backend and getting it back, we can do that all in one location.
- 20:59Right. And the challenges you've already been talking about are the challenge of setting up
- 21:02that backend to get Python to run on your machine with the environments and the dependencies. And this
- 21:07would theoretically in principle, at least avoid all that. It's just loaded up and it goes.
- 21:11Yeah. It's super cool. No, we'll definitely, we'll definitely look into it because this is a,
- 21:14I mean, this is an area of continual research for us is how to improve our installation process.
- 21:18Yeah. Very cool. All right. What else have I pulled up here? A paper mill. So paper mill lets
- 21:22you treat notebooks like almost like functions that you can execute a notebook and then get a value out
- 21:28for all sorts of things. This is probably the least relevant to you guys, the things that I pulled up
- 21:33here, because it's exactly about making it not interactive and, you know, kind of skipping that,
- 21:38but just another interesting thing that people are doing to kind of add more or do more with these
- 21:43notebooks. Yeah. It seems super cool. Now I was just going to say, I've seen people,
- 21:48we've seen people who have notebooks where they like call functions in other notebooks and all of that
- 21:52syntax, you know, the Panda syntax is confusing, but then like linking notebooks and all of that is
- 21:57confusing as well. So I think it's all interesting. It's all interesting to see, you know, I think just
- 22:01like spreadsheets have so many different use cases and Nate touched on this earlier. Notebooks have
- 22:05an incredibly large number of different use cases with people from like top level data scientists to
- 22:10people just getting started. So the tooling ecosystem that's being created and it already
- 22:15existed really quite diverse and really powerful. Absolutely. All right. I think I've got one more
- 22:20for you here. This might be the one that you heard of Nate called notebook JS. No, this one renders,
- 22:26parses them and then renders it down to HTML, which is, I guess I don't have one to open, but that's
- 22:34all right. So yeah, that's, that's pretty neat that it'll basically allow you to turn notebooks into
- 22:38HTML. And I think just to kind of draw a categorization model over what we've kind of seen
- 22:43before, I think there's, there's a couple areas of focus and these are things that we focus on
- 22:47internally. And we, I think we'll deems that will come up throughout the rest of the conversation.
- 22:50So there's things that we'll call, let's say presentation, right? And presentation is this
- 22:55looking at the outputs here in the terminal or looking at the outputs easily on a webpage without
- 22:59running a server, right? And presentation is something that we encounter. How do we present data?
- 23:03how do we present conclusions from analysis, et cetera. Then there's another thing, which I think
- 23:07this paper mill thing that we looked at last is super relevant on, which is this idea of repeatability,
- 23:13right? As anyone who's worked in notebooks knows, there are really great areas for being a scratch pad.
- 23:18It can get pretty confusing sometimes when you've got like all these cells flying around,
- 23:22you're executing things out of order.
- 23:23That's the thing, you know, we have sort of solved the Excel, this cell refers to that cell.
- 23:29And then, but you have this human aspect of notebooks, right? I can go, I want to try this,
- 23:33try this, try this, go back and change this and then run this and the stuff below it, you know,
- 23:38you can run them in different orders and even change them and then have some of the invisible
- 23:42changes stuck in another unrun cell. Yeah. That's yeah. That can be a problem.
- 23:47I mean, Aaron and I spend all day in notebooks and the amount of times where I'll go up to Aaron and be
- 23:51like, Aaron, dude, look at this, this code makes no sense. What is this bug? I don't understand it.
- 23:54And Aaron's like, you fool. You've been one, three, four, not one, two, three. What were you thinking?
- 23:58You know, like just the amount of times that even we as people use notebooks all day,
- 24:01that is really, you know, it's dramatic. And so I think that, it's, you know, that area of
- 24:06reproducibility and repeatability is something that we spend a lot of time thinking about mostly
- 24:10because a lot of our users are really interested in it and it's problems that they struggle with.
- 24:13And, it's something I think we'll definitely get into, you know, as we kind of, you know,
- 24:17what we actually ended up building. Yeah. Awesome. So speaking, get into it. Let's,
- 24:20let's talk about Mido. So I think Mido lives in this realm of these interesting ways to do more
- 24:27with notebooks. And as we've already hinted at, you basically take an Excel user interface,
- 24:32stick it into a notebook, and then allow people to interact with the data within the notebook
- 24:37in Excel style way. Right. But what's your elevator pitch?
- 24:42Oh, I can do elevator pitch. Elevator pitch. Essentially, it's a spreadsheet interface for Python.
- 24:47So everything you do in the spreadsheet is going to generate the equivalent code for you in the code.
- 24:51So below, if you're watching the video right now, you're seeing a little demo happen, but we have
- 24:55features for exploratory data analysis. We have features for data wrangling, data munching. I've
- 25:00heard lots of different words for that type of process. So yeah, there, and then graphing as well.
- 25:06And also we have the ability to save and replay analysis sort of like a macro. And in terms of
- 25:11users, you know, we have people who are newer to Python using it to sort of introduce themselves to
- 25:15the Python world. They're learning as they go. But the nice thing is that they're not held back by the
- 25:19syntax at any point. So you're not Googling syntax, not going to stack row of flow. You're in your
- 25:23notebook the entire time, sort of staying in a state of flow. And then we also have more advanced Python
- 25:28users and people intermediate in the middle using it just to get their analysis done more quickly.
- 25:32It's really fast to do something usually, especially like the code for graphing or pivot tables or
- 25:37merging. Take a lot of time to type it out and get the syntax right. So in our tool, you just do it
- 25:41in an Excel interface that you're used to and it spits out the correct code for you.
- 25:45Yeah, it's cool. People definitely need to see the little video. So if you haven't checked it out,
- 25:49you know, obviously I'll put a couple of videos in the show notes, but yeah, that's the idea is you
- 25:54come in and you just basically inside the notebook as part of the cell, you know, you might be familiar
- 26:00with having an interactive widget for like some kind of graph, right? Where it's got like some
- 26:04sliders and stuff. It's like that, but it's Excel ish. Right? Yeah, exactly. Was this your first idea or
- 26:10where did this whole idea start? We've worked on a lot of different like spreadsheet related tools
- 26:15over, I guess, a year and a half ago or two years, a long time ago at this point, we started building
- 26:22like a GitHub for Excel. We're building essentially like, you know, difference detection,
- 26:27allowing you to merge, going back to those original problems that we talked about that we experienced
- 26:32at school. So we were building kind of this GitHub for Excel platform. We were primarily talking to
- 26:38investment bankers and people in private equity and these like really Excel power users. We built the
- 26:44tool. We've interacted with a lot of them, eventually realized that wasn't maybe the most
- 26:48helpful space that we could be working in and ended up finding our way to this where it was more
- 26:54Python based Jupyter notebooks and just making them more accessible. And as Jake said, you know,
- 26:58helping people across the spectrum from beginners to more advanced data analysts, get their analysis
- 27:04done faster. Sure. I think there's two angles here. One is just, you could be really fast, right?
- 27:08You could say, okay, I want to do, I see the data. I want to sort by this. Now I want to drop these
- 27:13three columns and then I want to, you know, compute a, do a computer column of sort of thing,
- 27:18or maybe join two pieces of data, like two data frames and create like a larger one out of that
- 27:25and so on. You could be really quick with that. But I think maybe even more important to that is
- 27:30helping people who are just stepping into the data science side of the world, right? They've,
- 27:35they've been working in some other tools or no tools whatsoever, really. And then they just,
- 27:39they hear, oh, I should go do Python and I should do notebooks. And then they're confronted
- 27:43with pandas, which pandas is great and it's not that hard to use, but there's a zillion things
- 27:48you can do with pandas and it's not super discoverable. What it is you should choose.
- 27:53And also the notebooks don't really help as much as they could. I think it presenting
- 27:57the features of an API, right? Like if I'm working in PyCharm or VS Code and I say dot,
- 28:04like, boom, there's a bunch of descriptions. And if I get the mouse near it, it'll give me like
- 28:07examples and documentation. And here it just lets you type unless you hit, you know, dot tab,
- 28:12and you explicitly asked for it. And a lot of people don't, I suspect if they're coming from
- 28:16economics, they don't know that, oh, like tab has this magic to show me what I can do and stuff like
- 28:21that. Right.
- 28:21Those people making the transition to the notebook environment are doing so at a, along a spectrum
- 28:27of willingness as well. Some people are doing it because they're really excited about, you know,
- 28:31up-leveling their skills, learning Python, making their analysis faster. And then some people are doing
- 28:37it because, you know, upper level management wants me to do that. And I think those people are,
- 28:42really grateful for having a tool that will help them, you know, meet the workflow requirements that
- 28:46they're working in, but not necessarily having to, you know, I'm sure you've read at some point the
- 28:52Pandas documentation. And it's, it's one of those that it has lots of great examples in fairness,
- 28:56but no pictures. Yeah. It's not the most intuitive.
- 28:59Probably not a lot of tutorial videos in there.
- 29:01Yeah. So, I would add a sort of a third category to what Aaron was saying, which is like, it's, it's people not
- 29:07forced by management, but it's not sort of out of their own interest in Python. It's more so they're just sort of
- 29:12forced to, based on what they're trying to accomplish. If they have a certain data set of a certain size, you simply can't do it
- 29:18in Excel or Google sheets. So there, I need a medium that's going to allow me to facilitate data analysis on this scale.
- 29:23And it'd be really frustrating if you're thrown into pandas to do that and you have to spend all your time.
- 29:28So it's kind of doing simple things that you're so used to doing in Excel, like adding columns, doing pivot tables,
- 29:32whatever it is, using formulas. And now you're spending a new set of your time going through syntax and making sure that you're
- 29:37typing out and capitalizing the right letters in a, in a, in a white code. That can be really frustrating. So our tools really
- 29:42trying to allow you to stay focused on the actual analysis the entire time and less about getting your code.
- 29:48And many people are Excel literate. Right. And so it kind of leverage that a little bit.
- 29:52Yeah. And then for, you know, people who aren't even coming from Excel, but are just data scientists, they're a word. It's not, not Excel
- 29:58literate, but they're sort of like visual literate. That's a horrible phrase, but what it means essentially is that they
- 30:03understand how to do this. They understand, okay, these are the things I need to do it. Here are the butts. Do it here.
- 30:07The options I could use. So it's still a really valuable environment for everyone, Excel or Python.
- 30:12Nice. So question from the audience out there's phone says, hello, what are the limitations of Mito?
- 30:18That's a great question. I think the honest answer is that Mito is certainly a work in progress and
- 30:23there's a large portion of pandas functionality that we don't currently support. So kind of, I think a
- 30:29helpful context here is how we're actually developing this tool. So Mito is very much, I would say a
- 30:34collaboration with our users. And what that practically means is that join our discord,
- 30:37there's a feature request channel and anyone has the ability to show up and essentially say, Hey,
- 30:41this is missing from my workflow. And we'll say, Oh, that's on a roadmap or, Oh, that wasn't on a
- 30:46roadmap. We'll add that or help us engage with your workflow and understand where that's coming from.
- 30:49But essentially what's happening is over the past six to eight to nine months or so, we've been working
- 30:54really heavily with our users to kind of build out the core pieces of pandas functionality that most of
- 30:58our users work with one by one and kind of investing their workflows back into the tool.
- 31:03Yeah. Which way do you take it? Do you go and say, all right, these are the things people need
- 31:07to do in Pandas. How do we surface that in our interface? Or do you say, these are the Excel type
- 31:12things people are happy with? How do I make that happen? And it's like, which direction do you find
- 31:17yourself going?
- 31:18It's a really great question. And Aaron, you can definitely speak to this more because this is
- 31:21kind of part of our process internally that's been evolving, but really kind of what we try and do
- 31:26at this point is we try and, we try and work very heavily with our users to understand, you know,
- 31:30at the highest of levels, what are they trying to accomplish? Right? Someone really isn't usually
- 31:34trying to make a pivot table. Usually what they're trying to do is conclude, should I tell a salesperson
- 31:40to do X or Y?
- 31:40What state are we spending, getting the most sales in? And all I have is zip codes or something
- 31:45like that.
- 31:45Exactly. Exactly. Right. There's really a lot of people that we work with and this isn't the only
- 31:49thing, but one of the things, for example, is they're operating the level of, I'm looking to
- 31:52predict this feature or understand what affects this, this piece of my data. And so what we do is we kind
- 31:57of work with them to understand their workflow. And then we use that to internally figure out,
- 32:01you know, what features drive this, what does Pandas support and how can we provide an interface
- 32:06on that that really lets people, you know, get this done as quickly as possible in a way that gives
- 32:09them as much flexibility at the end of the day, if they need to take this from Mito and
- 32:13and go run with the code somewhere else.
- 32:14Yeah.
- 32:14Yeah.
- 32:14And Eric, go for it.
- 32:16Eric, go for it.
- 32:17I was going to say, I feel like in the beginning, kind of when they were saying, we were very focused
- 32:22on let's put Excel into Python. And it was like more about the Excel functionality. But I think over
- 32:27time we've come to think more about the questions more, what is the best visual interface for Python,
- 32:33for data science? And it's less so. And so some of those things are from Excel. Some of those things are
- 32:37our own creations. It's still a spreadsheet interface, but the goal is certainly not to take
- 32:43Microsoft Excel and give you all of that Python.
- 32:45Interesting. Yeah. Cool. All right. I think maybe a good way to understand this, how this workflow
- 32:51works and get a peek inside of the features is over here somewhere, I think in the documentation side of
- 32:59things you've got, yeah, right at the beginning here, quick tutorial here, you've got this sort of,
- 33:04I don't know, I'm not bouncing around, I'm not finding it quite where it was to tell you, but
- 33:08there's this example where you go and load up a couple of CSV files and then like join them to
- 33:13create a pivot table and stuff on that, like that. Maybe give us a talk through what working with that
- 33:18data flow kind of looks like. You know, I talked about this idea of like turning zip codes into states
- 33:23and that kind of stuff. What does work with Mito feel like? Give us a sense.
- 33:27I can talk a little about that. So I think working with Mito feels hopefully very fast and very
- 33:32intuitive, or I think two of the things and maybe robust or maybe like the three kind of things we
- 33:37strive for. I think in terms of workflows that we see people doing, a lot of people kind of fit this
- 33:43like feature creator and automator use case that we think about. So it's people that have some business
- 33:50sort of question like where are all my sales coming from when I just have these zip codes.
- 33:54And they're probably trying to do that in Python because they've been doing it in Excel over and
- 34:00over again each month and they're looking for a more robust and more automatic way of doing that.
- 34:05So I think a lot of, a lot of how, a lot of the ways that we see these workflows play out is people
- 34:11either have a CSV file or they have like a snowflake connection to get some data. And then they start by
- 34:18doing some simple EDA and trying to get a better sense of what their data actually looks like.
- 34:23Right. Without Mito, it might be something like df.head or df.sample and just like kind of get a
- 34:29visual look of a grid of data, right?
- 34:30Exactly. Or even some people are, they want the more visual interface. So they're downloading it to
- 34:36Excel initially and doing some manipulations or something like that there. But then that workflow is
- 34:42very separate from their more automatic script that they're creating. And then they have to kind of
- 34:47reconcile any changes that they've made back into the Python workflow. But yeah, so Mito has a bunch of
- 34:53features. There's some here, you know, if you scroll down in the documentation on this left-hand side,
- 34:57you might see some stuff that might be helpful. So there's things like summary stats right there,
- 35:02which will show you like a graph, a distribution of the data in each column, a lot of those dot
- 35:08describe functions and has a really intuitive filtering. So things like filter by value. So you
- 35:12can see all the, all the unique values in your column, and then you can toggle them in and out of your data
- 35:18set, or you can add more, you know, customized filters, whichever you would like. But then once you
- 35:23move past this kind of like initial data cleaning, some people do write spreadsheet formulas. So we
- 35:28have a bunch of Excel's most popular formulas, things like date manipulation and date parsing.
- 35:34Here's a bunch of, here's a few of them. Once you kind of get a sense of what your data looks like,
- 35:39you can do some of these transformations. And then ultimately you'll end up with this script that you can
- 35:44use to run over and over again and never have to go back into the Excel world to and fight through the
- 35:49manual process again. This portion of Talk Python To Me is sponsored by Linode. Cut your cloud bills in
- 35:57half with Linode's Linux virtual machines. Develop, deploy, and scale your modern applications faster
- 36:03and easier. Whether you're developing a personal project or managing larger workloads, you deserve
- 36:08simple, affordable, and accessible cloud computing solutions. Get started on Linode today with $100 in
- 36:14free credit for listeners of Talk Python. You can find all the details over at talkpython.fm,
- 36:19slash Linode. Linode has data centers around the world with the same simple and consistent pricing,
- 36:26regardless of location. Choose the data center that's nearest to you. You also receive 24/7/365
- 36:34human support with no tiers or handoffs, regardless of your plan size. Imagine that real human support
- 36:39for everyone. You can choose shared or dedicated compute instances, or you can use your $100 in credit on
- 36:46S3 compatible object storage, managed Kubernetes clusters, and more. If it runs on Linux, it runs
- 36:52on Linode. Visit talkpython.fm and click the create free account button to get started. You can also
- 36:58find the link right in your podcast player show notes. Thank you to Linode for supporting Talk Python.
- 37:04"The DataFrame" to get data into this spreadsheet-like front-end that is Mido.
- 37:10You basically just have to have a data frame. If you have a data frame, there's a ton of flexibility for
- 37:16doing that. You could load a file, you could get it from the internet, you could do even read HTML off of
- 37:24a URL and then go grab a table and then there's your data frame, work with that. There are simplifications,
- 37:31things like when you're in Mido, you can hit file load equivalent and browse to the files and then it'll
- 37:37write the pandas code, say like pd.readcsv, whatever you selected, right?
- 37:42Yeah, exactly. One of the things I think would be really interesting to talk with you about is
- 37:47generally in your survey of the Python ecosystem, it's interesting because Python is code, right?
- 37:53And so in some ways we're on this boundary, this flexible border between pure code and low-code,
- 38:01no-code tool. And there's been a hundred million low-code, no-code tools that have existed over the
- 38:05past 25, 30 years, whatever. And some of them are around and some of them aren't. And really the
- 38:09question for us that we kind of ask ourselves is, what unique do we bring to the table here? And as a
- 38:14local tool, how do we differentiate ourselves? And it's that exact idea that you can also just pass a
- 38:19data frame. We're not necessarily interested in, we don't want to stop you from writing Python code,
- 38:23we want to enable you to write Python code as easily as you possibly can. And really that's
- 38:26how we see ourselves, you know, manning that spectrum.
- 38:29I think it's a really good place to be because my hesitation with all these low-code, no-code tools
- 38:35is they usually, one, lock you into their thing, which is often a SaaS thing, right? So you're locked
- 38:42into having your data there and continuing to subscribe to a thing, which don't get me started
- 38:47on subscribing to so many things. I was suggested that I subscribe to my internet speed checker,
- 38:53app, not pay for it.
- 38:55You need to know, but like...
- 38:56Once an hour, you need to check, right?
- 38:57Yeah, yearly, I can subscribe to it. If I pay yearly for my speed checker, like,
- 39:02what are you doing? Too many things that are subscribed to. Anyway, not that subscriptions
- 39:07don't make sense for a lot of tools. But what I like about this is, like you said, you bring the
- 39:12data from wherever and you could do this out of a Postgres database and you build up a data frame,
- 39:17and then you could throw into this visual place that speeds you up. And then what comes out the
- 39:21other end are more data frames, right? So you could even do multiple, I mean, maybe tell me this is
- 39:26true. It seems like you could. You could do some regular Python code, some Mito that generates a
- 39:32really interesting transformation, some more Python code, and then maybe another Mito block that takes
- 39:37another bit of output and then brings in more data, does other stuff, right? You can kind of mix and match
- 39:41throughout these, right? Throughout the notebook? Yeah, exactly. And actually, the other day, we
- 39:45went into GitHub and we searched Mito sheet to see how people are using it. And you see people using
- 39:50it in that exact way where they're importing data, they then generate some code using Mito. And then
- 39:55they'll, you know, one of the things, admittedly, that the tool is maybe not the best that right now
- 39:59is graphing. We have, you know, we support creating basic graphs, but not changing the colors,
- 40:05changing the titles, all of that. What UI frameworks do you support? Map, Plotlib?
- 40:10We use Plotlib. We use Plotlib. Okay. Yeah. We generate Plotlib code,
- 40:14which has great documentation. It's really, you know, you can go in there, we give you a link,
- 40:18and you can go in and make your edits. But this is one of those places where generating Python code,
- 40:22and you know, in this case, Plotlib code is super helpful for everybody involved. For us,
- 40:27it's helpful because, you know, we didn't have to recreate the Plotlib library, which is massive.
- 40:31But for everybody else, it's also helpful because, you know, because we didn't generate the Plotlib,
- 40:36we didn't recreate the Plotlib library. You are able to use, you know, the entire Plotlib ecosystem,
- 40:41and you're not locked in at all. So for something like Alteryx, you know, where you can use their
- 40:47graphing features, and if, you know, they don't have the graphs that you want to create, then you're kind
- 40:51of out of luck because you're locked in, and there's not really an easy customizability path.
- 40:56But you own your Python code that Mito generates. So it's up to you to do whatever you want.
- 41:00Yeah, I suspect you guys don't recommend this. But you technically could delete out,
- 41:05in a lot of cases, the Mito bits after you generate your Python code and keep going like,
- 41:10okay, this was really helpful, but we actually don't need this anymore. There are cases where some of the
- 41:15Excel-like functions really come from you guys, right? But a lot of it is what it's writing is pandas,
- 41:20and NumPy and Plotly code, right? Just speaking to the lock-in or not the lock-in side of the story,
- 41:27right? Yeah, I think we definitely support that. In Mito, actually, we have a button clear.
- 41:32Data analysis is all about, it's very iterative, building your understanding of what is useful and
- 41:38where you want to go. So one of the, actually, the most kindly done things in the tool is actually
- 41:43clearing all of the edits that you've made to your analysis. And getting rid of Mito now that you have
- 41:47that understanding and wanting to take it in another direction, I think we're huge supporters,
- 41:51well, we're big supporters in our own development process of cleaning your workspace. Nate is proud
- 41:56of how clean our code is. And, you know, if Mito isn't helpful for you right now, definitely get rid
- 42:01of it so you have an easy notebook to clean up and debug. Yeah, I think that's a big contrast going to
- 42:07some other no-code SaaS system. There is no, I don't want to use this exactly anymore, just let me carry
- 42:13on with my analysis. There's none of that in most of these tools. And with yours, I think it's there to
- 42:18support you and I can see it being incredibly valuable. But at the same time, it's not the
- 42:22essence of what you're doing. It's the UI on top of Python, as Jake likes to say. Yeah, I was just going to
- 42:27say to the point of deleting out the Mito sheets, we have a society of secret Mito users who are trying to
- 42:33convince their bosses that they're really good at Python to get pay raises. So we support that workflow very,
- 42:39very well. Exactly. So one of the challenges that you can have when you have a machine write code
- 42:44is that it writes bad code that's hard to understand. And Nate, it sounds like you might have had some
- 42:50input on this, that when you interact with Mito, you do certain operations. Like I do a filter,
- 42:57I create a pivot table, or I filter out certain things. It'll actually write step one, you did this,
- 43:02step two, you did that. And it writes what looks like pretty well formatted Python code with little
- 43:07bits of documentation, like pivot the table, reset the column name and indexes and stuff like it'll
- 43:11even comment your code that it writes. You want to speak to that a little?
- 43:14Yeah, absolutely. I mean, this is a really interesting area that we've put a bunch of
- 43:19research time in, if you can call it that. So there's a couple things that I want to,
- 43:22I think, highlight here. And I'd love to also hear your thoughts on as well. So you're totally right.
- 43:26Machines writing code, it's all the rage these days, in some ways, with these fancy,
- 43:30you know, machine learning systems where you can, you know, write a little prompt and everything will get
- 43:34written for you. Mito takes a little bit of a different approach where exactly as you say,
- 43:37when you, for example, add a filter, it'll generate the line of code that corresponds to that filter.
- 43:41Of course, immediately, the question becomes, this is not exactly how I want the code to be.
- 43:46I didn't mean to do that. I meant to do something else. And so really, the way we think about it is
- 43:51giving the user that code in the cleanest way that we possibly can. So just as an example of this,
- 43:56if the user adds a column, and then immediately after renames that column, a feature that we're actually
- 44:00releasing this week is that is going to get collapsed into just the adding of the column with the new name.
- 44:03Right? Nice. Yeah.
- 44:04That's ultimately what the user was intending to do. There's other more fancy things that you can do.
- 44:08You can start getting into kind of code optimization, where it's like, you made a pivot table, then you
- 44:13overwrote the pivot table. And those are all things that we're definitely interested in, and kind of are
- 44:17on the roadmap for improving. But generally, you're totally right. If we want users to be able to learn
- 44:22from this code, to be able to use this code, we need to generate clean semantic Python that really
- 44:27works in the wild and is actually editable by the users. Otherwise, it's just a blob,
- 44:31a mass that you can actually interact with.
- 44:33Yeah, well, you get it, but at least from the examples I've seen, I would be happy to take that
- 44:37and then start writing directly on that. Even though you don't see it on the screen,
- 44:41it's like right above, I scrolled it right a little bit off there. But it says, don't edit this section.
- 44:45This is Mido code. I guess that's if you still want to be able to use Mido on it.
- 44:49Right. You know, exactly. Don't mess it up, right?
- 44:51We're actually, that's a feature we're working on this week is improving that communication. You can
- 44:56take Mido code and edit it and change it however you want. The only problem is Mido might have
- 45:00trouble reinterpreting that if you try and then later replay an analysis. But that's also a work
- 45:04in progress. And ideally, you know, the kind of perfect version of what we, you know, envision
- 45:09long term, and maybe we'll get there. Maybe this is impossible. But one really cool thing that
- 45:13we're kind of thinking about is edit a spreadsheet to generate Python.
- 45:17Yeah, I was thinking if this could be a bi directional, that'd be fantastic.
- 45:21Yeah, really cool. So really, it's this world where you're you're really fluidly writing code
- 45:25and editing a spreadsheet. And if something's easier in code, go write the code. If something's easier
- 45:29in the spreadsheet, go write the spreadsheet. And that's definitely a vision that we've seen
- 45:31ourselves kind of realizing over time currently. And something that, as you mentioned, you can go
- 45:35Mido Python, Mido Python and do that currently. But making that easier for our users to really use the
- 45:41code in a dynamic and real way, as you would any other Python code that you write is definitely
- 45:45something that we're actively investing in right now and really trying to improve.
- 45:48Nice. Yeah, I like the idea of being able to have it do some optimizations rather than create a
- 45:53variable and then overwrite the variable with some other thing and just do it all at once. I'm sure
- 45:58there's a ton of stuff in pandas that could be done better rather than like a really naive,
- 46:03straightforward, like multi step stage.
- 46:05Yeah. And yet the other thing I will say is the one benefit actually to generating this code is that
- 46:11and not to insult anyone because I'm the biggest offender of this, but most data science scripts you
- 46:15see in the wild are not the like pinnacle of clean, well-kept code. It's usually out of order notebooks
- 46:21where, you know, because it's such a dynamic process, it's just very hard in practice to keep
- 46:25these things well organized. And so actually what we can do in practice is generate some documentation
- 46:30for what's happening and help users save and manage these scripts in a more linear and organized way,
- 46:35et cetera, and help users kind of adopt these best practices. And that's sort of the stuff that we've,
- 46:39you know, we've been exploring recently and Aaron was actually working on some of this today,
- 46:43improving some of this code generation stuff, but it's not the highest of bars to meet. And we
- 46:47definitely think that we can, you know, continue to improve and surpass that and make sure that the
- 46:50code we're generating is really great, great stuff and stuff you'd be happy to edit.
- 46:53One thing that while I'm looking at this, I'll just throw this out of here as a piece of feedback with very
- 46:57little actual experience. So take it with a grain of salt is you've got like step one,
- 47:02step two, step three. It'd be cool if those were actually separate cells.
- 47:05So like at the end of say step three, I could do like a pivot table dot head or something just to
- 47:09like sort of touch on it and explore it a little bit along there.
- 47:13Yeah, no, definitely. And a similar thing that we've also certainly thought of that that
- 47:17multi-cell approach would enable is, you know, changing the order of steps, switching things
- 47:21around and saying, oh, I actually want to filter first and then pivot versus pivoting and then
- 47:24filtering. Yeah, certainly on the roadmap, but definitely, definitely something we
- 47:27want to do, giving users more options on how they actually export this code and what they
- 47:31do with it at the end.
- 47:32Yeah, super neat. I've got a question out here that kind of leads into where I was going to
- 47:35go with this anyway, and I'm going to switch the order so I don't cover your head, Jake.
- 47:39Spawn also asked, does Mito support switching or you switching from or to or using Dask?
- 47:47So, gotcha.
- 47:48Yeah, not currently. No. So the one really cool thing is because of the Mito, the way Mito works
- 47:53internally, which is something we can definitely get into depending on, you know, if you're,
- 47:56you think your audience would be interested in it, what the appetite is. But we really have the
- 47:59ability to kind of switch out, let's say, what the backends is of Mito, the kind of what code
- 48:06do we actually end up generating is something that can we can leave up in the air. And really,
- 48:09our interface can be a more general thing than just Python code or just pandas in Python code.
- 48:14Yeah, especially for these frameworks that are near compatible, API compatible with pandas,
- 48:19like Dask.
- 48:20Like I think Dask is almost exactly, and many, for most of the basic operations,
- 48:24it's, they've aligned on the pandas UI just, or the pandas, the pandas API just for, you know,
- 48:29how to kind of handle things. So it's definitely something that in the future we could, you know,
- 48:33we could support. And if we have users who are working with huge data sets and need Dask,
- 48:37that it's definitely something we'd be interested in learning about and exploring.
- 48:40You know, Dask, when I first think of Dask, I think large clusters, massively scaled out data.
- 48:46But then at the same time, right over here, I have my MacBook Pro Max, which has, you know,
- 48:5210 cores on it. And when I run Python code, I get 10% of that CPU, right? And Dask will allow you to
- 48:59scale across your CPUs, even on your local machine, right, or scale larger than your memory and stuff.
- 49:04And so I feel like it's Dask, even for just making your local work go better, is actually
- 49:09probably under realized or under utilized. That's super cool. It's interesting that the range of
- 49:14data set sizes that we actually see in practice, it's very, I would say, at least from my observations,
- 49:19and Aaron, Jake, feel free to hop on this, but it's like very bimodal and that there's a lot of people
- 49:22hanging out with 100,000 rows. And then there's some people are like, hey, I have, you know,
- 49:26a hundred million records I'm looking to analyze. And we're like, well, you know,
- 49:29good luck on your 2000 fall MacBook. You know what I got? It's going to take a bit.
- 49:34Get a coffee.
- 49:36Chill out, go to sleep, wake up tomorrow, hope it hasn't crashed, I think is the general strategy.
- 49:40Yeah. So that does lead me towards my final two little areas I want to speak about before
- 49:45we run out of time here. Now, on one hand, this is just writing Python code. So its performance and
- 49:51its limitations are what effectively pandas can deal with. On the other, it is showing that stuff and
- 49:57allowing you to sort it visually. So there might be some constraints on like amount of data you can
- 50:01work with. What's the data size story?
- 50:04It's a great question. We have a release coming out within the next two weeks. Generally,
- 50:09but here's our, here's our motto. We obviously we're providing a visual interface. There's going
- 50:13to be a little bit of overhead, but the way we like to think about what we do is that it's a tiny
- 50:18little bit of flat overhead, no matter how big your data is.
- 50:21Okay. For example, you won't try to show the entire hundred million rows in a grid or like
- 50:25you'll do some sort of like virtual lazy load list or something like that.
- 50:29Exactly. A lazy load list. And we actually have a lazy load of the entire data set. That's a
- 50:33feature coming out within the next two weeks or so. It's all written. We just got to test it a bit
- 50:37better in the wild. But yeah, effectively, it's, we're a very thin wrapper on top of pandas
- 50:42functionality. And in practice, what that means, what that means is anything you can do in pandas,
- 50:46you should be able to do in Mito from a data set size perspective. It's something that was
- 50:50very important to us, especially because a lot of our users are in Python because of data set
- 50:53size limitations in the first place. As I think Jake mentioned. Yeah. Yeah. Yeah. That's a good
- 50:57point. This is something that we'd spent a lot of time. We were previously using AG grid as our
- 51:01actual display unit. And it just wasn't made in combination of probably us not implementing it 100%
- 51:08how they might implement it. And you know, them not optimizing for these ginormous data sense,
- 51:13data sets. Nate in particular just spent a huge amount of time recreating the entire grid from
- 51:19scratch. So we could have complete customizability over it and show as much as much data as possible.
- 51:24Nice. I mean, sometimes you got to do that, right? You're like this, this control is amazing,
- 51:28but we've outgrown it and bite the bullet and just do it right. Exactly. Yeah. Now,
- 51:33interesting question from Samir out there. Hey Samir, can I use Mito and VS Code and I'll sort of
- 51:39expand to that just a little bit. Can I use it in, in some of these other tools that are not exactly
- 51:44notebooks. So we've got VS Code has its kind of own way of presenting and showing notebooks. We've got
- 51:50PyCharm and we've got data spell, which is JetBrains new data science IDE thing. What's the story with
- 51:57these environments? So unfortunately right now, Mito only works in future lab, but this question is
- 52:04something that comes up all the time. We, I think the places we hear the most interest are VS Code and
- 52:08Google Colab. And we're definitely excited and really going to support those environments as well. And I
- 52:14think we've, we've done a lot of work internally on how we design, how we design Mito to make it
- 52:18extendable. It's now, you know, we have a lot of these like functionality that we're trying to pack
- 52:23into the tool and then handling these new environments as, you know, a decent amount of development work as
- 52:28well. So it's all a prioritization game at this point. Yeah, of course. Yeah. So short answer is we
- 52:33don't support them now, but in the future we definitely will. Cool. All right. Two other areas quickly I want to
- 52:38touch on. One, tell us a little bit about how this is implemented internally. I think it, I don't know
- 52:43how it's implemented, but I'm, I'm guessing that it's somewhat like a lot of Jupyter stuff. Like I
- 52:48want to do Jupyter things for Python, but I got to write them in JavaScript. Is that the story here as
- 52:52well? You know, actually your earlier comment of, I imagine it's just like a slidey widget that you can
- 52:58use in a graph in JupyterLab was spot on. The IPy interactive widget or whatever it's called?
- 53:02We are actually just a very fancy IPy interactive widget. Okay. And practice how that actually works
- 53:07for your audience. If they're interested is there's kind of two pieces to your code base. There's a
- 53:11JavaScript front end and there's a Python backend. The JavaScript front end is the sheet that you see.
- 53:16It's the buttons that you click. And what that actually does is it just, it's a very thin wrapper
- 53:20that just then sends a message to this Mito sheet Python package in the back and says, Hey, I just
- 53:25clicked this add column button. You should add a column, excuse me, to this data frame. And then that
- 53:30Python processes that message and then responds to the front end and says, okay, great. Display the new data
- 53:34frame and also write this code to the cell below. And that's kind of the high level of what happens
- 53:39there. It gets, you know, as you can say, more complex than the nitty gritty. We're in practice.
- 53:43We're a react code base. We use TypeScript because we like strong typing and we kind of hate Python's
- 53:47weak typing. But do you use type annotations on your Python side? We are gradually adding them to our
- 53:53code base. We don't currently type check. Actually, we mostly use them as like IDE support to make
- 53:57things easier. That's the main thing I use them for as well, because a lot of times the
- 54:00IDEs will show you the errors if you make them anyway, right?
- 54:04Yeah. Yeah. No, you definitely, you get some support, but pandas, I'll say pandas typing
- 54:08support. Obviously pandas is the main library we interact with. It's not perfect in all cases. It's
- 54:12a very complex library, so for sure. But effectively in those cases, things kind of break down and the
- 54:17errors that you get are maybe sometimes false positives, sometimes false negatives, and you can
- 54:21shoot yourself in the foot sometimes. Yeah. Interesting. Okay. So it's a blend. It's
- 54:24it's the JavaScript, React, TypeScript, front end, and then Python back end. Yep. Yeah, exactly.
- 54:29That question of that, let's say that stratification in that architecture is that's exactly what's going
- 54:34to have to evolve as we kind of move into other places like Google Colab, VS Code, etc. They all
- 54:39have slightly different extension architectures. And so architecting our code bases, so these things are
- 54:43separatable and reconfigurable and in the ways that other data science environments expect is something
- 54:50that we've kind of been trying to do. But you know, a plea to everyone who's developing data
- 54:54science IDEs, settle on one extension environment, please. I know it's never going to happen, but it'd
- 54:59be really nice for us extension developers. We'd love it for sure. Right. Or making it an adapter.
- 55:03Yeah. Right. If somebody created things that if you have a Jupyter UI and you want to put in
- 55:08Google Colab, you just insert this thing and talk to it and then magic happens. Yeah. Shims when they work
- 55:14are great. So if someone's done that, let us know. Please reach out and we'd really appreciate it.
- 55:17Yeah. Yeah. Super cool. All right. Another thing I do want to make sure that we touch on a little bit
- 55:22is up here at the top, I see plans. And so this is not for every possible use case of free tool,
- 55:30right? You have a free version and you have a higher order paid version for teams, if I'm
- 55:35understanding that correctly. Right. So we have, my tool is a free 3D tool. We have free users,
- 55:4090 whatever percent of our users are for free to an end user. Please download it. You know,
- 55:44you can, you can pivot solve and it's free. We work with some larger organizations in sort of more
- 55:50of a scope manner doing cost of development, cost integration. And those are the payment happening
- 55:56there. Sometimes it's some of those larger enterprises. What we're building out now is
- 55:59sort of that middle piece where we, you know, we want to have sort of a plan for teams, maybe with better
- 56:03security, some free development hours, things like that. And that business model is evolving, but we'll
- 56:09probably be, what we want is a SaaS model there where you're paying, you know, 10 bucks a month
- 56:13or something. It does seem like some kind of online system. I mean, you go to Jupyter through a browser
- 56:20anyway, some kind of system that's like really already configured because you're helping people come into
- 56:24Python who probably don't totally want to pip install and manage their path and activate virtual
- 56:30environments and all those kinds of things. Yeah. Yeah. It's kind of like really helped them there.
- 56:34Right? Totally. And that's one of the things we do when we work with some of these larger enterprises is
- 56:37help them with the setup of their Drupal Hub environment, help them get the package they
- 56:40need, help them get my to install, obviously. But I was going to say to your viewers, you know,
- 56:44we're definitely looking to partner with more organizations or teams. If anyone wants to reach
- 56:47out and make my email or something, we'll be in a link somewhere. Yeah. Yeah. We'll put your
- 56:52contact information in the show notes. Sounds good. But yeah, we're definitely, you know,
- 56:55we're looking to work with teams right now as we have a really good, really strong user base.
- 56:58Yeah. Cool. Cool. So I'm glad that you guys have some kind of business model because a lot of
- 57:02these things, they come and then people kind of lose interest and then they go. And there's a
- 57:07real big difference of this is my job and my investment. So I'm really going to work on it
- 57:11versus this is a thing I'm kind of excited about for a few months. So it's cool. You got a free plan
- 57:16for people to use that. That's awesome. It's also cool that there's a path to support to just make it
- 57:21better. Yeah. Yeah. We're here for the long haul and works out. The other thing I'll add here is it's,
- 57:25and I know I mean this on a knock on the like hundreds of amazing data tools that are out there, but
- 57:30there's, I think like this level of polish that we really feel a desire to reach with our tool.
- 57:36It's like that, that kind of when you're delivering a tool to a paying customer, there's often a
- 57:40different expectation that comes from the paying customer. And we do our very best to hold ourselves
- 57:44to the highest standard possible. But when someone who's paying you reaches out and says, Hey, this
- 57:48button doesn't look the way it should. That extra level of polish really kind of kicks the tool over
- 57:52the edge. And all of those, all of that feature development ends up getting, you know,
- 57:55pushbacks to the individual users. And so really the free users I'll say, and you know, most of the
- 58:00people who use our tool. And so really, you know, we're trying to build the best tool that we can here
- 58:03and making sure that we can do that sustainably long-term and really invest in, you know, what
- 58:08we're doing and build a team around it is something that, you know, really is necessary if we're going to
- 58:11deliver on what we think we can and the promise. Yeah. Cool. Another nice thing about the paying users
- 58:17is just that we get to, we need to work in a much more close relationship with them. So there's a lot,
- 58:21that's where we get to zone in on like specific use cases around financial services or around
- 58:27bio research. So we've come to work on specific features and specific workloads that we definitely
- 58:31wouldn't otherwise that I think made inspire going to really benefit everyone uses the tool.
- 58:35Yeah. Yeah. Very cool. I'm fascinated with the different ways people are working and operating in
- 58:40open source space or building on top of open source tools to create businesses. You know,
- 58:44we've got the Anacondas, we've got the MongoDBs and stuff out there. So yeah, good,
- 58:49good luck to you guys. I'd like to see you succeed here.
- 58:51Yeah. Thanks so much. And then the last thing I'll say is, you know, we do our best to give back to
- 58:56open source tools as well, especially the ones that we work on. So you'll see me sometimes being
- 59:01annoying opening issues on GitHub. And I think that's another big piece of this is as we build
- 59:04on open source tools, making sure we contribute back to them in ways that are meaningful and actually
- 59:08helpful is, you know, certainly really important as well. And definitely something to say something.
- 59:12Yeah. Fantastic.
- 59:13All right. Well, I think that's about it for the time that we have to talk about extending notebooks and
- 59:19Mido and all this really cool stuff that you all built. Before I let you out of here,
- 59:22there's the final two questions, however many in what order and whatnot, you want to take this,
- 59:26just jump on in notable PI PI package out there, something you've come across like,
- 59:30oh, this library is awesome. It doesn't get enough attention. Anything come to mind?
- 59:34Mido and Mido: Yes. Honestly, something that a lot of our users use and Jake,
- 59:37actually feel free to hop in after me, but I would say a pandas profiling. It's a tool that does somewhat
- 59:41similar stuff to us, but it's a super great tool for many of our users. And I don't think a ton of
- 59:45people know about it. And it works right in JupyterLab as well. So it's called Lux, which is cool. I don't
- 59:49even know if it's actually still being supported and developed at all, but I really love it.
- 59:53LogTrestles. You look up Lux Python. It's cool. It does like automatic graph suggestions. So you
- 1:00:00can pass in a data frame and it'll suggest sort of give you options of visualization to just click
- 1:00:04on and use, which I think is a really quick thing. It's not the most like, why fully fledged package,
- 1:00:09but for what it does, I think it's really good.
- 1:00:10Mido and Mido: Now these little things that people don't know about, they're like,
- 1:00:12oh, that's cool. I'm going to go check this out. It might help.
- 1:00:14Mido and Mido: Yeah.
- 1:00:15Mido and Mido: A Python API for intelligent visual discovery.
- 1:00:17Mido and Mido: I may not could be exact more, but we're really close and we love the DeepNote
- 1:00:22product. It's like, it's pushing notebooks forward. So trying to add collaboration,
- 1:00:28like collaboration, like Google sheets and Google docs, it has a lot more, potentially a more friendly
- 1:00:33interface than sending out the rest Jupyter notebooks that are a little bit bare gains at times.
- 1:00:38Mido and Mido: Okay.
- 1:00:38Mido and Mido: There's also another notebook.
- 1:00:40Mido and Mido: Yeah, really cool. I've spoken to the DeepNote people just a little bit and
- 1:00:43they're doing cool stuff for sure. Mido and Mido: Yeah, he's cool. Obviously,
- 1:00:45there's another notebook called Hex. We had to talk to their founders recently
- 1:00:47about some potential collaboration, but they're doing cool stuff as well.
- 1:00:51Mido and Mido: Okay, fantastic. All right. And then if you're going to write some Python code,
- 1:00:55on notebooks, obviously, if anything else, what editor do you use?
- 1:00:59Mido and Mido: We're big VS Code users.
- 1:01:00Mido and Mido: Okay. All three of you guys?
- 1:01:01Mido and Mido: Jake when he dabbles. Mido and Mido: Yeah.
- 1:01:03Mido and Mido: Yeah. Mido and Mido: Yeah.
- 1:01:04Mido and Mido: Yeah. No, VS Code.
- 1:01:05Mido and Mido: I'm in notebooks.
- 1:01:06Mido and Mido: I was thinking about this yesterday recently. It's like,
- 1:01:09I wish at school someone taught a class called actually doing software development in the real
- 1:01:12world because I feel like I lived my whole school life writing Java code in Eclipse and
- 1:01:17Mido and Mido and Mido and Mido and Mido and Mido and Mido and Mido and Mido and Mido and Mido. And I'm in the real world. And then I started using VS Code and it was like this transcendent moment of bliss where I was like, oh, programming can actually be fun. And it turns out the tools I was using just made my computer heat up to a thousand degrees and burn my lap.
- 1:01:29Mido and Mido: Yeah, I really agree with that statement that that there's a bit of a mismatch of what is taught in sort of computer science and then what is expected of people when they get out in the real world. And it might not be as academically highly valued, but really good, like working with tools like VS Code and and PyCharm and these other tools that help you write code better quicker. And some of the software engineering science, I think that's really could be valuable.
- 1:01:54Mido and Mido: No, totally. And also the other thing I'll say is for developers like us, maybe who came out of school and moved into a startup and, and, you know, didn't have a ton of experience, let's say writing Python in production in the wild. The other thing I would highly recommend is continuous integration. You can set it up through GitHub or GitLab. I'm sure if you use that as well, testing your code automatically on a server, huge productivity gains for us and really is increased our confidence that we're able to deliver like the best possible product and not something ever anyone ever told us about, you know, when we're in school. So.
- 1:02:23Mido and Mido: No, go implement a database in Lisp. Okay. All right. And it's John out in the audience has a quick funny comment about the editors, Neo Vim, of course, that's starting to get some attention lately as well. Very cool.
- 1:02:36Mido and Mido: I'm scared of anything with the word Vim and it scares me, but I'm sure you're a superhuman for using it. But,
- 1:02:41Mido and Mido: You know how you generate a proper random number or character set is you get a first year computer science student into Vim and then you ask them to quit.
- 1:02:51Mido and Mido: Yeah. I mean, you've seen the most, the most like Stack Overflow questions like I'm trapped in Vim. How the hell do I get out of here?
- 1:02:57Mido and Mido: Yes, exactly. Mido: It's so funny. It's like half of what Stack Overflow does is answering just that question specifically.
- 1:03:01Mido and Mido: Exactly. For sure. That's great.
- 1:03:04Mido and Mido: All right. So final call to action. You guys, people are excited about this. How do they get started? Where do they go from here?
- 1:03:09Mido and Mido: Dot Trimido.io, which is our documentation website. And if you're an organization enterprise,
- 1:03:14just reach out to me at my email, cheek@sagacollab.com, which will have all links here. Or here, the planes page is a link there. But yeah, the documentation,
- 1:03:22Mido and Mido: Yeah. Right on. Also, I'll throw out there while you're on the docs, watch the videos. That's a quick and easy way to really see what it's about. And before we wrap it up here, Mr. Hypermagnetic has a little comment like that Vim is the eighth. It's like deadly sins.
- 1:03:38Mido and Mido: It's weird though, because it's not just the eighth of the deadly sins. It's the eighth of the deadly sins that also like 10% of the population swears is the greatest thing since sliced bread. And so it's like half the population, like me, I'm terrified of the damn thing. But my father is like, son, like my dad's dad from the eighties is like, son, have you heard of this? I'm like that, please. I can't take this right now.
- 1:03:56Mido and Mido: Yeah, it's amazing. Yeah. My co-host in Python bites, Brian, he's all about Vim. Everything's Vim. It's great. But I did some Emacs and then I kind of did some other more UI oriented things. Awesome. All right. Well,
- 1:04:08Jake, Aaron, Nate, it's been fun to have you here. Congratulations on this project. I think it's going to help a lot of people get into Python and data science quicker, more easy.
- 1:04:16Mido and Mido: Awesome. Yeah. Thanks for having us. Great chatting.
- 1:04:18Mido and Mido: Talk soon. Bye bye. Mido and Mido: Yep. Bye.
- 1:04:20Mido and Mido: This has been another episode of Talk Python To Me. Thank you to our sponsors. Be sure to check out what they're offering. It really helps support the show. Choose Shortcut, formerly Clubhouse.io, for tracking all of your projects work, because you shouldn't have to project manage your project management.
- 1:04:37Visit talkpython.fm/shortcut. Simplify your infrastructure and cut your cloud bills in half with Linode's Linux virtual machines. Develop, deploy and scale your modern applications faster and easier. Visit talkpython.fm/linode and click the create free account button to get started.
- 1:04:53Do you need a great automatic speech to text API? Get human level accuracy in just a few lines of code. Visit talkpython.fm/assemblyai.
- 1:05:03Want to level up your Python? We have one of the largest catalogs of Python video courses over at Talk Python. Our content ranges from true beginners to deeply advanced topics like memory and async. And best of all, there's not a subscription in sight. Check it out for yourself at training.talkpython.fm. Be sure to subscribe to the show. Open your favorite podcast app. And start with your podcast.
- 1:05:15a subscription in sight, check it out for yourself at training.talkpython.fm. Be sure to subscribe to
- 1:05:21the show, open your favorite podcast app, and search for Python. We should be right at the top.
- 1:05:25You can also find the iTunes feed at /itunes, the Google Play feed at /play,
- 1:05:31and the direct RSS feed at /rss on talkpython.fm. We're live streaming most of our
- 1:05:37recordings these days. If you want to be part of the show and have your comments featured on the air,
- 1:05:42be sure to subscribe to our YouTube channel at talkpython.fm/youtube. This is your host,
- 1:05:47Michael Kennedy. Thanks so much for listening. I really appreciate it. Now get out there and write
- 1:05:51some Python code.
- 1:05:52Bye.
- 1:05:53Bye.
- 1:05:54Bye.
- 1:05:55Bye.
- 1:05:56Bye.
- 1:05:57Bye.
- 1:05:58Bye.
- 1:05:59Bye.
- 1:06:00Bye.
- 1:06:01Bye.
- 1:06:02Bye.
- 1:06:03Bye.
- 1:06:04Bye.
- 1:06:04Bye.
- 1:06:04Bye.
- 1:06:04Bye.
- 1:06:04Bye.
- 1:06:04Bye.
- 1:06:04Bye.
- 1:06:05Bye.
- 1:06:06Bye.
- 1:06:06Bye.
- 1:06:06Bye.
- 1:06:06Bye.
- 1:06:07Bye.
- 1:06:08Bye.
- 1:06:08Bye.
- 1:06:09you
- 1:06:09you
- 1:06:10Thank you.
- 1:06:12Thank you.