Latest / Talk Python To Me / #438: Celebrating JupyterLab 4 and Jupyter 7 Releases
Transcript
- 0:00Jupyter Notebooks and JupyterLab have to be one of the most important parts of Python
- 0:04when it comes to bringing new users into the Python ecosystem.
- 0:07And certainly for the day-to-day work of data scientists and scientists in general
- 0:12who have made some of the biggest discoveries of recent times.
- 0:15The Jupyter platform has recently gotten a major upgrade with JupyterLab 4 released
- 0:20and Jupyter Notebook 7 being significantly reworked
- 0:24to be based on the changes from JupyterLab as well.
- 0:27We have an excellent panel of guests.
- 0:29Sylvain Corley, Frederick Collinval, Jeremy Tolup, and Afshindarian
- 0:33here to tell us about what's new with these and other parts of the Jupyter ecosystem.
- 0:38This is Talk Python To Me, episode 438, recorded October 16th, 2023.
- 0:57Welcome to Talk Python To Me, a weekly podcast on Python.
- 1:00This is your host, Michael Kennedy.
- 1:02Follow me on Mastodon, where I'm @mkennedy, and follow the podcast using @talkpython,
- 1:07both on fosstodon.org.
- 1:10Keep up with the show and listen to over seven years of past episodes at talkpython.fm.
- 1:15We've started streaming most of our episodes live on YouTube.
- 1:18Subscribe to our YouTube channel over at talkpython.fm/youtube
- 1:22to get notified about upcoming shows and be part of that episode.
- 1:26This episode is brought to you by Phylum.
- 1:29Developers and data scientists are the new high-value targets.
- 1:32That's you.
- 1:33And yet this group remains severely underprotected.
- 1:36Phylum detects, reports, and blocks malicious packages.
- 1:39Get their research and join their community at talkpython.fm/Phylum-research.
- 1:44And it's brought to you by Python Tutor.
- 1:47Visualize your Python code step-by-step to understand just what's happening with your code.
- 1:52Try it for free and anonymously at talkpython.fm/Python-Tutor.
- 1:59Hey, Darian, Jeremy, Sylvan, and Frederick.
- 2:01Welcome to all of you to Talk Python To Me.
- 2:04It's a great time to be here.
- 2:05Thanks for having me.
- 2:06Yeah, thanks.
- 2:06Thanks, Michael.
- 2:07Yeah, you bet.
- 2:08I'm honored to have so many Jupyter team members, people around here, and all the work you've
- 2:14done on the different parts of Jupyter Notebook, Jupyter Lab, JupyterLite, all the things is
- 2:19really fantastic.
- 2:20So I'm looking forward to celebrating the new releases.
- 2:23They're not quite as new as when we first started talking about this.
- 2:27It took us a while to put this many people together on for an hour, but yeah, it's still,
- 2:31it's going to be great, right?
- 2:32Sounds good.
- 2:32Yeah, for sure.
- 2:33So before we get into the topics, maybe just a quick introduction for each of you here, and
- 2:39we'll go around the Brady Bunch circles in the video.
- 2:42Darian, we'll start with you.
- 2:43Sure.
- 2:44Hi.
- 2:44So I'm Darian.
- 2:46I work at Quantstack, along with everyone else on this call.
- 2:52And I have been working on the Jupyter stack for about eight years now.
- 3:00And I originally started working on what became Jupyter Lab.
- 3:07And nowadays, in addition to that aspect of things, I'm also part of the Jupyter Executive
- 3:14Council, which is one of the governing bodies of the project.
- 3:17As of this year, we actually changed our governance structure.
- 3:21And so each year there are elections and we have this new set of governing institutions
- 3:27that I've been a part of.
- 3:28That's really fantastic.
- 3:29You know, there's a lot of projects where there's one maintainer who is primarily the
- 3:34maintainer.
- 3:35Then there's projects that get put under an organization, you know, like Flask with pallets.
- 3:40But there's not very many open source projects like this that have governing bodies.
- 3:44You know, Python itself comes to mind.
- 3:47Django.
- 3:48That's awesome.
- 3:49I think, you know, Jupyter is such a vibrant ecosystem.
- 3:52It's an exciting space, for sure.
- 3:54Yeah, absolutely.
- 3:54All right, Jeremy, quick background on you.
- 3:56Yeah, I'm Jeremy.
- 3:57And I've also been working on the Jupyter stack for a couple of years.
- 4:02I think something around five or six years.
- 4:04I started a bit like on my own first, like a spare time thing, you know, contributing to
- 4:10projects on GitHub before joining Quantstack.
- 4:13And currently, I'm mostly involved in the Jupyter project.
- 4:18So, the Jupyter notebook 7, wallet dashboards.
- 4:21Also, a bit of iPad widgets.
- 4:23And most recently on the Jupyterite.
- 4:26Nice.
- 4:27Hi, everyone.
- 4:28Hi, everyone.
- 4:28So, yes, I'm Silva.
- 4:29I'm the CEO of Quantstack, which I founded in 2016.
- 4:33I've been working on the Jupyter stack for about 10 years now.
- 4:37So, yeah, it's been a while.
- 4:38I think it's almost the anniversary right now.
- 4:41And in the Jupyter ecosystem, I mostly worked on kernels, widgets, the Jupyter server, and a
- 4:48tiny bit on the front-end pieces as well.
- 4:51Excellent.
- 4:52So, it's a Jupyter space over there at Quantstack.
- 4:55Top to bottom, right?
- 4:56That's right.
- 4:57Awesome.
- 4:59Hey, Frederick.
- 5:00Welcome.
- 5:00Hey, everybody.
- 5:01So, I'm Frederick.
- 5:02I'm working at Quantstack, as everybody else.
- 5:05And I'm working mainly on JupyterLab.
- 5:09I'm actually the representative to the Software Steering Council of Jupyter for that subproject,
- 5:15mainly.
- 5:15And I started contributing, like a bit like Jeremy, five to six years ago, trying to
- 5:21convince colleagues in my aeronautic company back then to use Python and Jupyter instead
- 5:27of Excel.
- 5:28You're fighting the good fight.
- 5:31That's awesome.
- 5:31Maybe I could ask you all a quick question, since it might give people an interesting view
- 5:36into the world of Jupyter.
- 5:37It's just, you know, there's a lot of reasons people get into programming.
- 5:41But what attracted you all individually to the Jupyter ecosystem itself?
- 5:46Darian, how about you?
- 5:48So, I got lucky.
- 5:49I liked the idea of working on open source software.
- 5:53And I'd worked at a few startups that released open source software.
- 5:58But they were startup projects that were driven primarily by one company.
- 6:03And some of them had community in the sense that there were lots of users and there'd be a
- 6:07lot of traffic, say, on forums and stuff.
- 6:09But not community in the sense of a public-minded group runs this thing and makes decisions.
- 6:15It was the decision was at my employers.
- 6:18And nonetheless, I liked it.
- 6:20And I just sort of accidentally happened on working with the team that was building a new
- 6:29front end for Jupyter because I liked JavaScript and other people in the Jupyter community did
- 6:34not.
- 6:35So, they had to bring from outside the Jupyter community in because Python people at the time
- 6:41tended to sort of hate JavaScript.
- 6:42Now, I think that's still the same.
- 6:44So, I got into Jupyter because I like JavaScript.
- 6:48But I stayed in Jupyter because I liked a community open source project that was doing something
- 6:55that I didn't really know you could do, which is to mix your research and your results and
- 7:03the pros that you write and the output of the analysis that you do all in one document and
- 7:09share it with people and they can reproduce it and they can run your code and they can tweak it and
- 7:12they can do all those things without ever going through what I thought were the necessary
- 7:18prerequisites to writing code.
- 7:19It turns out none of those were necessary.
- 7:21You could make it way easier for people.
- 7:23So, I liked working on that.
- 7:24I like the community.
- 7:25I like the people.
- 7:26And that's why I'm still here.
- 7:28Yeah, excellent.
- 7:29It is pretty unique of an idea to say we're going to have kind of a document, we're going
- 7:34to have results, and we're going to have code, and it's going to be live.
- 7:36And that's very special.
- 7:38Jeremy, how did you get into Jupyter land?
- 7:41Yeah, I started as a user.
- 7:44I think back in the days when it was still the IPython notebook, like all together, just
- 7:50Python programming language.
- 7:53I think that was really this idea of being able to write normal text alongside code and
- 8:00have this kind of narrative with charts, interactive graphs, and so on, and share that to people.
- 8:06So, I used it on my own for personal projects, but also at different companies to share reports,
- 8:12then communicate results more easily.
- 8:15And after a while, you know, when you start using a tool, you want to make fixes to it
- 8:20or improve it.
- 8:20So, that's why, that's how you can go to the side of a contributor side, start submitting
- 8:26a pull request and getting in touch with the community.
- 8:29Excellent.
- 8:30Sylvan, I'm going to come back to you.
- 8:31Frederick, let's have your story.
- 8:33So, that's a bit like Jeremy.
- 8:35As I said, I try to convince people that something better than Excel exists out there.
- 8:40And that's when I discovered Jupyter.
- 8:43And what was really interesting was the ability to, like, as Ashton said, like, mixing very
- 8:49nice and advanced visualization with text and being able to do that interactively so that
- 8:55in a meeting, you don't, like, have to remember which tab in your Excel is the right result.
- 9:02It's like, yeah, you just type two lines of Python code and you get a nice graph to display,
- 9:07like, the points you tried to make from the data.
- 9:10And that was it.
- 9:11And as Jeremy then, at some point, she said, hey, I can do some stuff better and I can contribute
- 9:17because it's open source.
- 9:18So, I put my finger in that and now all my body is in it.
- 9:22Awesome.
- 9:24I think one of the ironies is, and, you know, Darian touched on this actually, that to use
- 9:29Jupyter often is to write Python, but to contribute Jupyter is often to write JavaScript, TypeScript.
- 9:35Like, it's, you're kind of taking one for the team, doing the JavaScript that no one else
- 9:40has to do, right?
- 9:41And that's a little bit different, isn't it?
- 9:43I think nowadays with the maturity of TypeScript as something that serious, large projects can
- 9:53use, it's a little bit better.
- 9:55But, you know, it wasn't obvious to us as a foregone conclusion that we should use TypeScript
- 10:01back in 2015.
- 10:02So, I think over time, that problem has somewhat attenuated, but it's not, we're not in the
- 10:11clear.
- 10:11We do definitely have a lot more people who would like to hack Python than would want to
- 10:19contribute to a gigantic TypeScript plugin-based, you know, front-end application.
- 10:25Yeah, exactly.
- 10:26They come to Jupyter because they're like doing Python, they get really excited.
- 10:29Like, I want to be part of this, I want to help.
- 10:30Oh, wait, hold on.
- 10:32It's a bit of an irony.
- 10:33Or maybe even WebAssembly, as we'll talk about, Jeremy.
- 10:35All right, Zilvan, back to you.
- 10:37So, I wanted to change the question a little bit for you and just maybe have you talk about,
- 10:41like, what are the benefits of having QuantSight, like the whole company, being so in on Jupyter?
- 10:46Like, how's that affected you all?
- 10:48Is that for your business?
- 10:49This is really how it started, actually.
- 10:50So, I was a Jupyter contributor back in a previous job before I founded QuantStack.
- 10:56And I really, QuantStack is almost an accidental startup in that I started the company as a means
- 11:05to continue working on the project being paid by, as I was a core contributor already, being
- 11:10paid by clients on consulting contracts and whatnot to continue working on this.
- 11:16And very quickly, we had enough business that I could hire one other person and then another
- 11:23and then another.
- 11:24So, we bootstrapped from day one.
- 11:26So, our success, I would say, is really bound to the success of the project.
- 11:32And I think it's been a positive feedback loop since the very beginning.
- 11:35Excellent.
- 11:36Yeah.
- 11:36I'm sure it brings a real advantage when people come to you to look and sort of see like,
- 11:42yeah, this is the company to help me with, you know, Jupyter type of change, maybe adopting
- 11:46Jupyter or some advanced deployment problem solving.
- 11:50Yeah.
- 11:50This, I mean, we're not trying to be the Jupyter company.
- 11:53There are other groups and we really have a consulting business model and that people can really come
- 12:00to us for our skills and expertise.
- 12:03And it turns out that so far, we've been able to contribute back everything that we've done or nearly everything.
- 12:10In some occasions, we have to do something that's very ad hoc to a client and, you know, custom development that requires using some of their internal APIs or whatever.
- 12:18But like, I would say that 99% of our work is out there.
- 12:21So, yeah.
- 12:23Excellent.
- 12:23Awesome.
- 12:23Let's start talking about just a recent event here.
- 12:26A couple months ago, it was JupyterCon.
- 12:29I think the videos, no, the videos have been up for two months.
- 12:32So a little, it's been around for a little while, but multiple of you, I don't know if all of you, I haven't gone through all of the videos here,
- 12:38but, you know, there's 86 sessions posted for JupyterCon 2023.
- 12:42There's a ton of good stuff.
- 12:44Maybe you all could just speak to the talks that you gave there or some of the real interesting things that you want to, people should maybe check out.
- 12:52Because if you just get into Jupyter, you can learn a lot by watching some of these talks, I think.
- 12:57Our recommendation, Jupyter Notebook 7 was talk where Jeremy and a few other contributors to the project introduced the new version of Jupyter Notebook.
- 13:09And usually when you go from version 6 to 7 of a software package, it's, you know, an iteration.
- 13:15But in this particular case, it's a whole new application with a whole new architecture that has the same experience of the Jupyter Notebook as version 6,
- 13:26but has all new architecture and can use the same plugins as Lab.
- 13:30And it's pretty exciting.
- 13:31So I would recommend checking out that talk.
- 13:35That was a good one.
- 13:36That's also something that's main topic of the show is sort of this interplay between JupyterLab and Jupyter Notebook and both of the big new releases,
- 13:45which is, yeah, it's a big change, isn't it?
- 13:47Bigger than just the 6 to 7 would indicate.
- 13:50Yeah.
- 13:50There are also plenty of other videos.
- 13:52So there are quite a few, let's say, technical videos or more like product updates, as we call them.
- 13:58Like each sub-project has a talk where they discuss and present their new features or what they've been to the past few months.
- 14:08But there are also quite a lot of interesting talks on use cases so that we can learn how people use Jupyter in a while,
- 14:17like at companies, also in education.
- 14:20And those are very inspiring because they also give people ideas on what they could do with Jupyter in general.
- 14:28Well, yeah.
- 14:28Well, I certainly recommend people check this out.
- 14:30And then there was a talk that you, Darian, and Martha gave introducing JupyterLab 4, right?
- 14:36Yes, that's right.
- 14:37JupyterLab 4 is also the first time we did one of our keynote product launch talks with the desktop version of the application,
- 14:49just kind of to expose people to this new way to use JupyterLab, which isn't super new, but I think is new to most people.
- 14:59So we thought that would be a good opportunity, not just to show the new JupyterLab 4 UI and its new features,
- 15:04but also to show you can download it onto your desktop, double click a notebook, and open it up in JupyterLab.
- 15:10Yeah.
- 15:10This portion of Talk Python To Me is brought to you by Phylum, your Python developer security partner.
- 15:16Developers and data scientists are the new high-value targets.
- 15:20That's you.
- 15:20Yet this group remains severely underprotected.
- 15:24Attackers know that developers control the keys to the kingdom, SSH, GPG, and signing keys,
- 15:30API tokens, infrastructure secrets, and proprietary source code.
- 15:34Do you use open-source dependencies in your code?
- 15:37Of course you do.
- 15:38We all do.
- 15:39Vulnerability exploits in open-source code are rare.
- 15:42But software supply chain attacks via malicious dependencies are unfortunately kind of common now,
- 15:47and these attacks can compromise developers and organizations.
- 15:52Phylum detects, reports, and blocks malicious packages,
- 15:55while other solutions you may have heard of merely look for known vulnerabilities.
- 15:58Of course, Phylum also reports on vulnerabilities, as well as author engineering and license risks.
- 16:04But critically, Phylum doesn't wait for a CVE to be published before alerting on bad packages.
- 16:10Phylum provides integrations to protect developers where they live,
- 16:13guarding PRs and CI environments,
- 16:15and with CLI and pre-commit hooks for local development work.
- 16:20Help you and your organization's Python security game with Phylum.
- 16:23Get started today.
- 16:24Subscribe to their newsletter to get Phylum's research sent directly to you,
- 16:28or even sign up for their service for free.
- 16:30Visit talkpython.fm/phylum-research,
- 16:34and enter your email in the subscribe to our research field in the middle of the page,
- 16:38or create your free account by clicking the sign up button in the nav bar.
- 16:42Stay safe out there.
- 16:44Visit talkpython.fm/phylum-research.
- 16:47That's P-H-Y-L-U-M dash research.
- 16:51Thank you to Phylum for supporting the show.
- 16:55Let's set the stage about just what, you know, people, maybe they've heard the word Jupyter,
- 17:00they've heard the word notebooks, plural, you know,
- 17:03but they might not know the difference between JupyterLab, Jupyter Notebook.
- 17:08Maybe you all could like sort of position those two side by side.
- 17:11What are these two different things?
- 17:13Are they the same?
- 17:13Are they different?
- 17:14Are they synonyms?
- 17:15Okay.
- 17:15There is a file format that you will see with the extension .ipynb,
- 17:24because historically it was the IPython notebook file format, and we've kept that.
- 17:28And those are called Jupyter Notebooks, commonly.
- 17:31It's a generic term for that kind of file.
- 17:33And then there is a browser-based application that millions of people use for rendering those
- 17:41notebooks and writing them and authoring them.
- 17:43And that application is called Jupyter Notebook.
- 17:46And we just released version seven of that.
- 17:48And there is a data environment that features notebooks, but also has lots of other functionality
- 17:57that we call the other front end, and that's JupyterLab, right?
- 18:02And JupyterLab has a notebook renderer in it, among other things, for Jupyter Notebooks.
- 18:08And that same notebook renderer is what powers the application called Jupyter Notebook.
- 18:16I think if I keep saying these words, you'll get more confused, so I'm stopping here.
- 18:20In my mind, I sort of think of Jupyter Notebook as, you know, which is the single file view type
- 18:29of thing, a little bit, not quite the right analogy, but a little bit like the Vim or the
- 18:33Emacs user who likes just to have like a single file totally open and just focused on that.
- 18:38Whereas JupyterLab is more like the IDE style.
- 18:41I want all the tools and the extras.
- 18:42I want to be able to get to my, browse my file system, go to the terminal, do all the different
- 18:46things and have like multiple files open and work between them.
- 18:51Is that a good mental model or am I not quite there yet?
- 18:54No, I think that's right.
- 18:55The Jupyter Notebook is a single document interface.
- 19:00It is, I mean, even like Vim, it has a command mode and, you know, an edit mode and all those.
- 19:05So it's not a bad analogy at all.
- 19:06JupyterLab is just a really flexible environment to do a lot of different activities in your analysis
- 19:16of any particular data.
- 19:17It is a much more sort of multi-tool for that.
- 19:21Okay.
- 19:22Excellent.
- 19:23Anyone else want to add more to that, those comparisons or the daring?
- 19:26Yeah.
- 19:27I mean, for the genesis of this, of JupyterLab, I mean, the first tool that everybody saw and
- 19:32the whole world saw in the beginning in 2014 was the notebook, right?
- 19:37And got a lot of people excited, but there was a, like a very recurrent request for bringing
- 19:43together in the same page, the text editor, the terminals, the having a console as well,
- 19:49a regular Python console alongside the notebook in the same, at the same page.
- 19:54And so this is what we delivered with JupyterLab.
- 19:56And even though it was a very popular, like common demand from the community, a lot of people
- 20:03really loved this more rigid full page notebook UI and, you know, kept using the notebook.
- 20:11So this is where we were about two years ago when we started the discussion about notebook 7 and
- 20:21modernizing, you know, the classic notebook user interface.
- 20:24Was there ever a time where people were thinking to have JupyterLab be the next version of Jupyter
- 20:30notebook and kind of replace it?
- 20:32And then the people are like, you know what, maybe please don't take that away.
- 20:35No, it was definitely at some point, our strategy to deprecate the notebook eventually.
- 20:43And we had a large public conversation about this.
- 20:48And it just, I think is clear that people like having that choice.
- 20:53People like having what is just a simple editor for notebooks.
- 20:58And people also like having the Swiss army knife.
- 21:02And they're not always the same people, but we want everyone who is using these things
- 21:07to be able to get both the benefit of the modern architecture and the updates and also the user
- 21:15experience they want, right?
- 21:16So if most of the plugins that come out lately are for JupyterLab and you're feeling more and
- 21:22more left behind, that's not a great experience.
- 21:24And so deprecating that tool you're using and saying you must use this other one, it just
- 21:29isn't what our community needed.
- 21:32So now we, I think, have an architecture that we can sustainably maintain because it's
- 21:38effectively the same code base.
- 21:39But we also can give users what they want because there are different contexts.
- 21:45And it is the case that we would have left some people behind and it's better not to.
- 21:50You can imagine in different scenarios, different user bases, it might make a lot of sense to
- 21:55have one or the other, right?
- 21:56If I'm a data scientist working on complicated projects, maybe JupyterLab is the right place.
- 22:02But if I'm trying to teach a little bit of computation for a psychology class and I just want them to do
- 22:09three plots and pull in some data, you don't want to drop non-developers into something that looks kind of
- 22:15complicated.
- 22:15like, where do I go?
- 22:16Here's your page.
- 22:18You type in these cells, you see the picture, you get the graph for the study we're talking about or something.
- 22:23Right?
- 22:23Yeah, that's exactly the idea.
- 22:24Yeah.
- 22:25Mm-hmm.
- 22:26Interesting.
- 22:27You touched on something interesting there that Jupyter Notebook, the single page or the single view version,
- 22:33is now based on JupyterLab.
- 22:36And there's a lot of overlap of these things, right?
- 22:38Yeah.
- 22:38I don't know if it was the right time to go more into the details.
- 22:42Yeah.
- 22:43Give us a little, it's a bit of a jump ahead, but just give us a sense that people who,
- 22:47maybe people are listening, go, ah, I'm not going to use JupyterLab.
- 22:50I'm kind of the notebook type of person, right?
- 22:52There's a lot of what we're talking about that still directly applies because there's a bunch of similarity or actually reused, right?
- 22:59So one thing we didn't mention yet about JupyterLab is that, so for end users, it is indeed a more advanced environment, a bit more like an ID, even though it's not really an ID.
- 23:09But for developers, it's also a framework.
- 23:13So JupyterLab itself is just a set of plugins and extensions.
- 23:18They were designed from the very beginning to be reused in, you know, in different ways.
- 23:23So like, if you actually, if you go to the JupyterLab repo, there is an examples folder.
- 23:29And in there, there are a few different apps that you can build yourself.
- 23:34And they are not JupyterLab.
- 23:36They are like just a single cell on the page or maybe just, yeah, this one, maybe just a console, maybe just a notebook.
- 23:44And this is made possible because JupyterLab is indeed just a set of extensions.
- 23:49These examples, they just reuse some of them and they just put them together in a different way.
- 23:54So we sometimes call them remixes.
- 23:56And in the end, Notebook 7 is a JupyterLab remix.
- 24:01It's just a different JupyterLab interface, but focused on a document-centric experience that, you know, users have been liking for many years already.
- 24:13So, yeah, that's a bit of the second side of JupyterLab.
- 24:18Excellent.
- 24:18Yeah.
- 24:19And there's a bunch of features that we're going to talk about here that come to Jupyter Notebooks in 7.
- 24:24Yeah, 7 can get the right version for the right product.
- 24:28Because of what you all have done here, like interactive debugging and real-time collaboration and things like that, yes?
- 24:35Yeah, all of that was really a byproduct of moving over to the JupyterLab architecture.
- 24:40And one other key aspect of Notebook 7 over Notebook 6 is that since we use the text editor from JupyterLab 4, which is a newer version of CodeMirror, we also get a lot of benefits in terms of accessibility.
- 24:56Most of the work on accessibility has been going into the JupyterLab codebase and not into the classic Notebook, which was really based on older versions of, you know, older libraries and, you know, JavaScript from 2010s.
- 25:09And so we're in a much better shape on this regard with JupyterLab 4 and Notebook 7.
- 25:14It's a different world with JavaScript these days than it was in 2010.
- 25:18That's right.
- 25:18Quite a bit.
- 25:20Let's start by talking about some of the new features for JupyterLab.
- 25:24One of the ones is for very large notebooks.
- 25:26JupyterLab is quite a bit faster, right?
- 25:29That's excellent.
- 25:30Who wants to take that one?
- 25:32I nominate for it.
- 25:33Yeah, I can go ahead with that one.
- 25:34Go ahead.
- 25:36So, yeah, that's one of the complaints of the user is that when you get lots of notebook open or when you get some notebook that are very lengthy, the UI responsiveness can be low.
- 25:50And so we decided to focus quite some time on that aspect.
- 25:55And that was made possible by fully upgrading the text editor to the latest version.
- 26:01So we are using CodeMirror.
- 26:03It's a awesome third-party library for dealing with text editor.
- 26:08And we upgraded to the latest one that brings up a very important speedup.
- 26:13And also we have worked on the styling to try to optimize it because styling can hit your browser pretty hard.
- 26:21And lately, we have also introduced a new way of rendering notebook, like only rendering what the user is seeing, basically.
- 26:31That one is still experimental.
- 26:32So by default, it's off and user can try it.
- 26:35And we are still working on that one to get it on by default for the next minor version, so for 4.1.
- 26:44And hopefully, when we reach that milestone, we'll get like a very smooth experience for 99% for a user.
- 26:53That's the goal.
- 26:55Yeah, it's tricky because web browsers typically want to just have the whole document, the DOM loaded.
- 27:00They want you to just work with it.
- 27:02But if you've got 100 virtual pages, right, that you would go through, you don't want to style all those and do all the widgets and all that if they're not on the screen, right?
- 27:11So there's this tension.
- 27:12Yeah, exactly.
- 27:13And sometimes it can come from tricky part, like just displaying for education, for example, the use, and that's very nice, a lot of equation, nice rendering.
- 27:23And those are creating so many elements in the web page that sometimes just having not so long notebook with lots of math expression can crush your browser, basically.
- 27:35That's surprising at first.
- 27:37All right.
- 27:39Right.
- 27:40Okay.
- 27:40So here's what I'm hearing is like complex math, like calculus, differential equations, those kind of things.
- 27:45Not just hard for people, but also hard for web browsers.
- 27:48Math is hard for web browsers.
- 27:51Got it.
- 27:52That's pretty interesting.
- 27:53Darren, you showed in your talk, you showed this off in a video, a side-by-side, JupyterLab 3 versus 4 with a large notebook, and it was much faster.
- 28:02Did that video have the virtual paging, like the render, the scene culling thing?
- 28:09Where it doesn't show, it doesn't render the stuff it doesn't see, or is that just the first default version right now?
- 28:14This is where I come clean to your audience and say, Fred is the person who produced and recorded those videos.
- 28:20And Fred was originally going to give that talk.
- 28:24I can tell you that, yes, that's exactly what's going on, but Fred can give you the actual details because he's the one who hit the record button.
- 28:31Yeah.
- 28:31Yeah.
- 28:31Tell us, Fred.
- 28:32I have a very happy event that prevented me to go to the JupyterCon.
- 28:35So I was, normally, I was the one that had to do the talk with Marta, but we had to switch last minute and thank again, Afin, for doing that.
- 28:45But definitely, the video that was displayed was that it's a comparison between the latest 3.6 version and the 4 version with that feature that's off for now by default.
- 28:57That will bring the best performance for the end user.
- 29:01Yeah, it was a massive speed up.
- 29:02So, you know, on one hand, you're like, ah, you're just waiting 10 seconds.
- 29:06But those kinds of little delays, they just kind of break your thought and your flow.
- 29:10And you just feel like the tools are getting in the way.
- 29:12And if it's really, really quick, then the tools kind of vanish to the background and you don't think about them, right?
- 29:18That's how it should be.
- 29:18Even when rendering all of the notebook and without enabling the virtual scrolling, we get already a nice speed up already, thanks to the adoption of CodeMirror 6, which is much faster to render and a bunch of other optimizations that we were able to do.
- 29:35But yeah, I mean, it was the easiest clap in the entire talk was just playing that video and seeing the fast one render and the slow one keep going.
- 29:44It's a really different user experience, even though, as you say, it's only a few seconds.
- 29:50It turns out a few seconds is enough to cause the kind of interruption that leaves a negative overall impression in the user's experience.
- 30:00Absolutely.
- 30:00This portion of Talk Python To Me is brought to you by Python Tutor.
- 30:06Are you learning Python or another language like JavaScript, Java, C, or C++?
- 30:10If so, check out Python Tutor.
- 30:13This free website lets you write code, run it, and visualize what happens line by line as your code executes.
- 30:19No more messy print statements or fighting with the debugger to understand what code is doing.
- 30:24Python Tutor automatically shows you exactly what's going on step by step in an intuitive visual way.
- 30:30You'll see all the objects as they are represented in Python memory and how they are connected and potentially shared across variables over time.
- 30:39It's a great free tool to complement what you're learning from books, YouTube videos, and even online courses like the ones right here at Talk Python Training.
- 30:47In fact, I even used Python Tutor when creating our Python Memory Management and Tips course.
- 30:52It was excellent for showing just what's happening with references and containers in memory.
- 30:57Python Tutor is super easy to check out.
- 30:59Just visit talkpython.fm/python dash tutor and click visualize code.
- 31:05It comes preloaded with an example and you don't even need an account to use it.
- 31:09Again, that's talkpython.fm/python dash tutor to visualize your code for free.
- 31:13The link is in your podcast player show notes.
- 31:15Thank you to Python Tutor for sponsoring this episode.
- 31:20This is not a JupyterLab feature exactly, but while we're on this code editor topic, I wanted to ask you all just your thoughts about this.
- 31:29Now, keep in mind, before I ask this question, my perspective.
- 31:32I've come from doing a lot of traditional software development with editors like PyCharm and Visual Studio Code and others.
- 31:38So when I work in Jupyter, Notebook or Lab, it doesn't really matter.
- 31:43And I'll say some variable dot, it doesn't give me any help unless I press tab to see the autocomplete.
- 31:51Like, is there an option or discussion around having like more aggressive autocomplete that kind of automatically shows up as you work with it?
- 32:00Or is the community just like, we don't really want that stuff popping up around.
- 32:04We want it.
- 32:04We just want to type.
- 32:05So the reason it's currently this way is primarily due to the behavior of Jupyter Notebook a long time ago and not subverting user expectations.
- 32:19But we can often keep that as the default and have some setting to facilitate a different kind of behavior.
- 32:29With this one, I think there's probably actual appetite for it.
- 32:35But no one's shown up to do it.
- 32:36I don't think we would turn down a feature like this hidden behind the setting.
- 32:40I just don't think anyone has both been bothered enough and also been in the time and place with the resources and wherewithal necessary to do it.
- 32:50But it doesn't sound, yeah, it sounds totally doable and compatible with both keeping the user expectations intact and offering you the feature you're talking about.
- 33:00Because, yeah, people have different styles of completion that they're into.
- 33:03And new things are appearing all the time and creating new expectations like LSP, which changes the language server protocol.
- 33:10Yeah.
- 33:11Yeah.
- 33:11Anyone else have thoughts on that?
- 33:12I would say that in 4.1, there are things coming to at least give you the ability to more quickly restore history.
- 33:21Like you type and then it's going to propose you to copy-paste the code that was written previously in some previous cells and stuff like that.
- 33:30And the same infrastructure will be available for plugins.
- 33:38And I know some people are working on AI integration in Jupyter and some of them are already working.
- 33:44And, okay, let's try to do a request when the user is typing to help him complete the code or giving me the hint on how to improve things.
- 33:54And, yeah, there are a couple of people working on that.
- 33:58So stay tuned for more.
- 34:00Yeah, okay.
- 34:00I really like JupyterLab and working it now.
- 34:02But if you could just go and these are all the things you can do just as I would, you know, I would make me even more happy.
- 34:08Darn, you mentioned settings.
- 34:10And that's actually one of the new features as well as like a UI for settings.
- 34:15Is that right?
- 34:16Yeah.
- 34:16So this is basically a front end that's capable of taking any extensions defined settings and rendering a UI for it.
- 34:27Because we don't know what the preferences an extension author is going to want are going to look like.
- 34:35We can't create like a custom UI for it.
- 34:38Instead, we have to read a schema file that defines such like the extension author who wrote an extension that does Git, right, also has a whole bunch of Booleans that are by default set to true.
- 34:53So this UI is like, oh, okay, cool.
- 34:55I'll bring a bunch of checkboxes and check them.
- 34:57And so it's very flexible.
- 34:59It can take any extension settings.
- 35:01And as long as they're described properly according to the API, they will render inside that UI.
- 35:07And it really beats what we used to have there, which is just a JSON blob editor.
- 35:12Here you go.
- 35:13Here's your JSON.
- 35:14Good luck.
- 35:14And we tried to make it slightly nicer.
- 35:17I think we tried to make it support a version of JSON that has inline comments as well.
- 35:24But like, it's still not that nice.
- 35:26So I'm very happy to see this as the way you go playing around with all the choices you have.
- 35:32Because JupyterLap has a lot of settings, but it's really difficult to explore them without something like this.
- 35:39Especially with all the extensions.
- 35:40Yeah.
- 35:41Kind of unbounded set, right?
- 35:42Exactly.
- 35:43Yeah.
- 35:43The settings UI has a search that searches through all the different areas for settings.
- 35:48It's one of my favorite things on complex apps.
- 35:50And you're like, I don't know what is in here, but I bet if I start typing, it'll reveal itself if it's in there somewhere, right?
- 35:56Yeah.
- 35:56Yeah.
- 35:57JupyterLap has two places like that.
- 35:59One is the command palette also lets you search the entire menu system, basically.
- 36:05And that's become, you know, in other ideas too.
- 36:08I mean, I think there's a certain point as a user of these tools where you discover something like that.
- 36:15And then after that point, you don't want to go back.
- 36:18So I think you're right.
- 36:20Like I didn't used to always need search in my applications, but now I do, just like you say.
- 36:24Yeah, exactly.
- 36:25This really goes into the thing we were mentioning earlier about JupyterLab remixes.
- 36:29So as you know, JupyterLab is basically only a collection of extensions, right?
- 36:34And the notebook itself, the command palette, all of these things are extensions to the core app, right?
- 36:41So remixes are a way to cherry pick some of these core extensions, potentially include third-party extensions into a new thing.
- 36:51I think that there are not many equivalents to JupyterLab in that regard.
- 36:56If you try to make a new complex application in the web, like a photo editor, a CAD engine, anything that falls into the category of having to display a lot of information on the screen, doing something that, you know, you spend hours doing every day.
- 37:12You will want a framework that allows extensibility, theming, a command palette, unified keyboard shortcuts, you know, across the application, a settings editor for your main app and all of your extensions, configurable keyboard shortcuts.
- 37:27I mentioned that earlier, potentially real-time collaboration.
- 37:30And these are lots of checkboxes to check if you are starting from scratch.
- 37:35And so the JupyterLab, basically, application framework allowed us to reuse all of that work for other things that have nothing to do with the notebook, for example.
- 37:47So earlier this year, we released JupyterCAD, which is a web-based CAD modeler, which is a JupyterLab Remix, really.
- 37:55It can be used both at the JupyterLab extension where you find everything that you're used to or in a standalone fashion.
- 38:00And this JupyterCAD is really interesting.
- 38:02It's a 3D CAD curated design editor that has, that's built on top of the JupyterLab framework, but it's not itself exactly about Jupyter, like programming and so on, right?
- 38:16And it has really interesting things, like it has real-time collaboration between multiple people.
- 38:21And all of that stuff comes from just building on top of this, like you said.
- 38:24That's a good example of something really different, but still possible.
- 38:28Yeah, so in the way we enable real-time collaboration in JupyterLab, we have to specialize a few things depending on the type of document that you're editing, but really the framework is generic.
- 38:39And you can start making, enabling real-time collaboration and other types of content than just textual content or whatnot.
- 38:47And we all got used to real-time collaboration and collaborative editing on text, you know, on the sort of software suite that we use for basic productivity.
- 38:56But very convinced that this will be the case for more technical computing, not just code, but everything where you have to put together a really complex system.
- 39:06Like, especially if you are building something that requires a lot of people to coordinate.
- 39:11Like, you're making a new plane or football stadium, and you have this unified model where everything percolates across many, you know, domain-specific applications from CAD to, you know, electrical systems or whatnot.
- 39:24And for people to effectively collaborate in these kinds of environments, I think collaborative editing is going to bring a lot if we can implement this vision.
- 39:34So, really, JupyterCAD is a demonstrator that you can do collaborative editing on other things than just notebooks.
- 39:40Yeah, JupyterLab may become the foundation for things that we would never expect to be part of programming, like you're talking about.
- 39:46It's interesting.
- 39:47Yeah, it's more technical computing than just, you know, interactive computing, I would say.
- 39:51Yeah.
- 39:51Yeah.
- 39:52I was thinking about this book here.
- 39:54Like, oh, man.
- 39:55This book is thrown around as, like, by Fred Brooks, basically saying, like, there's no project.
- 40:01We're adding more and more people.
- 40:03It's going to speed it up and get it done more on time, right?
- 40:06It was all about sort of the follies of, like, well, as you add more people,
- 40:10the complexity of the communication and the overhead of syncing and all of that is kind of going to break everything.
- 40:16And so, you know, you can't make a baby in, like, one month by having nine women work on it sort of story.
- 40:23You know, like, but the stuff that you're talking about here and all of these communication tools and all of this interesting async stuff that we're doing these days,
- 40:31I kind of feel like people should rethink these ideas.
- 40:34And I think kind of what you're touching on here is, like, it is possible to get deeper, important work done as groups than maybe the mythology that people think about in the software world traditionally has been.
- 40:46It's a different world than 2023 and on.
- 40:49I mean, it's kind of a sidebar of it.
- 40:51It's also important to what this collaborative editing.
- 40:53Yeah, I like this book.
- 40:55So for a long time, we have been trying to introduce real-time collaboration into Jupyter.
- 41:00We've had at least three significant technical attempts at it, right?
- 41:06It's a hard problem.
- 41:07It's one we've worked on a long time.
- 41:09And it's given me a unique opportunity that most people don't have, which is trying to justify to myself over the course of six years why anyone should want real-time collaboration inside a programming environment.
- 41:23And what I can say is, over that time period, I have spent, I don't know, hundreds of hours inside documents with other people that are Markdown files, because that's how we conduct our meetings, or inside Google Docs, because that's how we wrote our governance, or asynchronously back and forth on GitHub, which is not exactly the same thing, but truly is collaboration.
- 41:49And so I don't think there's a tension between there's a group of us working on something in a room, and we want technical tools so that we don't all have to be in that room, but we can have that seamlessness and the myth of the mythical, you know, the man month, right?
- 42:06I actually think those problems are, like on the surface, they look pretty similar, but I actually think they're not the same thing.
- 42:14It's more like, back when that book was written, groups of people would get inside one room and work collaboratively.
- 42:21Today, every one of us on this call is in a different location, and some of us are pretty far apart.
- 42:28We're in different countries, and it's all working out fine.
- 42:30And Jupyter is bringing tools like that to people, and less tools like, let's add 5,000 people.
- 42:37Now, what Sylvan was talking about, still, you know, you're not going to have one person opening up the grand document that describes like the whole Coliseum, right?
- 42:46But there's going to be tons of groups that are working on systems where there's like seven people who need to work on this thing together.
- 42:53And Google Docs for wiring documents doesn't exist yet, you know, but it could exist.
- 42:59Yeah, and it could be built on Jupyter Lab.
- 43:00That's right.
- 43:01One of the big features is this real-time collaboration.
- 43:04Let's, you know, let's talk about that for a moment.
- 43:06I think that's, I think it's a big deal, as I've been hinting that with my sidebar and so on.
- 43:11Well, in the beginning, I think we need to start small.
- 43:14Even with, you know, Google Docs, when it came out, I think in 2006, a lot of, many people didn't see the point.
- 43:20Like, why would I want someone else's cursor in my document?
- 43:24Like, it sounds dangerous, right?
- 43:26So if you were to make a survey of what people wanted at the time, nobody would have said that, right?
- 43:34Yet everybody does that now, right?
- 43:37And it's probably, people probably have the same feeling when it comes to writing code or doing any sort of technical work.
- 43:44And I think we'll get past this point where people will get it.
- 43:49And in the very beginning, this can start being useful for peer programming, doing something together while we're reviewing code over a Zoom meeting.
- 43:59That sort of thing where, you know, there is a, you know, real-time interaction between people over some kind of medium.
- 44:07If you look at more technical objects, like, for example, you have two different teams.
- 44:13Like, someone's making a plane.
- 44:15There is a team of people that's doing some simulation and see how, you know, the plane goes through the air.
- 44:22And another person is making physical prototypes of parts of the plane.
- 44:28And you have this interaction.
- 44:29You know, normally these two groups would be in two different branches of the company.
- 44:33And in order to change any kind of spec, you would need to go up and down in the hierarchy by a few, you know, degrees.
- 44:41Right.
- 44:41Schedule a meeting for next week, that sort of thing, yeah.
- 44:44Yeah.
- 44:44And you change the specs and now everybody has to change or make, you know, changes to their, you know, boundaries.
- 44:52And if you enable more real-time, you know, feedback on suggestions and whatnot, you may be become a lot more efficient.
- 45:01So, it's pretty similar to Google Docs, excuse me.
- 45:06You have to install the Jupyter Collaboration extension for the server, right, in order for this to work?
- 45:13It's not just pip install Jupyter Lab and you're good to go?
- 45:17Well, you can pip install Jupyter Lab and pip install Jupyter Collaboration if you need the one-liner.
- 45:23But the idea was lots of people install for personal use on their own laptops.
- 45:29And anyone who's going to create an environment where collaboration is happening is doing more than running just one command to install Jupyter anyway.
- 45:37Yeah, yeah.
- 45:37Of course.
- 45:37You know, so, like, as a toy, if the five of us are in the same network, we can launch it that way just to play around with.
- 45:44But really, any sophisticated user is going to tie in the user system and do a whole bunch of config and all those things.
- 45:50And so, we're not shipping the code that does that inside core Jupyter Lab for two reasons.
- 45:58One is that, you know, the main sort of install base doesn't do real-time collaboration.
- 46:06The other is that we're working on that package much faster than we're working on Jupyter Lab core.
- 46:11And having them in separate packages allows us to bump versions if we need without carrying that much and to add new features and to just, you know,
- 46:19it's a smaller subset, it can move way faster.
- 46:21Yeah, that's a great design philosophy process because there was a conversation like this in core Python and request.
- 46:29They're like, we have a URL library in Python, but request seems to be the default.
- 46:34We should move it in and be like, whoa, whoa, whoa, you're going to make us ship request once a year.
- 46:37We don't want to do that.
- 46:38This is not, like, this is changing fast and it needs to be more adaptive.
- 46:41And that sounds like a similar deal here.
- 46:43Excellent.
- 46:43Let's hit on some more of the new things.
- 46:45So we've got one of the things that's new is cell toolbars.
- 46:50There's like when I'm editing a cell within the little cell, there's a toolbar with some new features.
- 46:55Anyone want to talk about that?
- 46:56It's exactly what you said.
- 46:58One question often asked by extension authors is, okay, I want to do a certain thing to a specific kind of cell, right?
- 47:07Like I want to somehow pull out this cell and do something extra with it.
- 47:11Where do I put that button?
- 47:12Or, you know, it's the answer to that question.
- 47:14Yeah.
- 47:14All of the things that you can do were there before.
- 47:17It's just meant to give users a discoverable way to learn maybe some capabilities they didn't know.
- 47:23Or maybe even hover over the button and learn a new keyboard shortcut or something.
- 47:27It's one of those quality of life features.
- 47:29It's not like revolutionary.
- 47:31It's more like just making this thing slightly more ergonomic.
- 47:35Yeah, I was thinking when I saw that, I was thinking of, you know, the biologist who is doing their first semester of a class where they had to use Jupyter notebooks for their work.
- 47:46And they're like, how do I just seeing those buttons there for the first month of working with it is helpful.
- 47:52Then, as you point out, you learn the hotkeys.
- 47:54Like I press B, I don't go over here with the mouse and those kind of things.
- 47:57But still, I think it's a nice one.
- 47:59Let's see.
- 48:00What else did I want to give a shout out to that we haven't done yet?
- 48:04Oh, collapsing.
- 48:05Based on markdown headers.
- 48:07That's kind of interesting that you can organize your document in a way to kind of expose parts or make it more of a report or more of a coding environment and these kind of things.
- 48:17Who wants to introduce that feature?
- 48:18The idea was to, especially when you have some document that can be long, like from education that has lots of text and stuff like that.
- 48:27It helps the student, for example, to be able to focus or to scroll artificially, let's say, to the right place faster.
- 48:37So that's one of those nice features.
- 48:40And I think it's something also now we are used to because lots of classical Office text editor have that kind of ability.
- 48:48So it was a nice feature to add to in JupyterLab.
- 48:52Yeah, kind of related.
- 48:53And it's probably going to sound really boring, but it actually is pretty awesome, I think, is the table of contents where it looks like it's showing the table of contents.
- 49:02But if you say run all cells, it'll actually show you as you go.
- 49:06It'll sort of like go down the table of contents showing where in like some big doc, if the running cell is off the screen, what it's working on currently, which is actually pretty excellent, I think.
- 49:15And even soon, you would also report that one cell crashed and you should look at it.
- 49:20That's coming up in the next version.
- 49:25Okay, excellent.
- 49:27What else?
- 49:28Running kernels in the side panel sounds kind of interesting, like different kernels.
- 49:32You can go create notebooks based on them and see all of what is at play.
- 49:36I think that's probably worthwhile as well.
- 49:39Yeah, so this is more something you would care about if you're running JupyterLab than notebooks.
- 49:45So it's a sidebar in JupyterLab that just says, in the environment where you're running, here are all the kernels that you as a user can see.
- 49:54And so you can even have kernels that might not be coming from your Jupyter server at some future date, right?
- 50:03The idea being, why shouldn't JupyterLab be the place you interact with lots of different resources, wherever they might be?
- 50:12And for the longest time, we thought of a running kernel session, for want of a better word, as intricately tied to a file, right?
- 50:24The notebook that it's the kernel for.
- 50:26But, you know, we've been moving away from that.
- 50:28I mean, the same way IPython hits a kernel, but isn't really transient.
- 50:32We have code consoles inside of JupyterLab that aren't really transient.
- 50:35But you can take a notebooks kernel and open a code console on it so that you could do some scratch work, but like not modify your document.
- 50:43So there's just having more insight into what's available in your environment is what that's about.
- 50:48And again, it's not a revolutionary change.
- 50:50It's just one of these sort of ergonomic features to make it a better multi-tool for being in an environment that gives you lots of different kernels to play with.
- 50:59Like the sort of use case that we'd like to tackle with this is, for example, there are lots of desktop applications that embed a Python interpreter, like FreeCAD or Blender.
- 51:09And eventually, if these desktop applications advertise a way to connect to these running interpreters with a Jupyter or kernel API, then they would be listed there.
- 51:20So the JupyterLab could almost become a scripting front end to like a running Blender project or something like that?
- 51:28Exactly.
- 51:28So this has already been done, actually, in Kitware's Slicer 3D project.
- 51:34So they run a kernel as part of their desktop application.
- 51:38And so we want to streamline the use case and make it more easier to do.
- 51:44Yeah, I'm sure the UI for a lot of people's hosted integrated Python is really poor.
- 51:49You know, there's probably maybe you'll get auto indentation if you're lucky, right?
- 51:54You know, like it's just there's not a there's not a great story.
- 51:57So they could just like the other examples we talked about build upon what JupyterLab is already doing.
- 52:01Just add their part.
- 52:03Yeah, exactly.
- 52:04Rather than them having to reinvent everything, they can just reuse Jupyter.
- 52:07Yeah.
- 52:07Yeah.
- 52:08And because of the extensions, you could theoretically have like a Blender extension for JupyterLab, potentially.
- 52:15Actually, someone has made one.
- 52:16So for the specific use case, I think it's Jan Hendrick Muller has a Blender extension to render Blender model in line in the notebook.
- 52:25So, yeah, check it out.
- 52:26Excellent.
- 52:27All right, y'all.
- 52:28We are getting very short on time here.
- 52:29There's two things I want to touch on really quick before we put a wrap on it.
- 52:33These are not exactly like brand new things, but they're very exciting.
- 52:37And one is JupyterLite.
- 52:39And Jeremy, I know you've done a lot with JupyterLite.
- 52:41You want to tell us quick about JupyterLite?
- 52:44Yeah, sure.
- 52:45The idea behind JupyterLite is to have a full Jupyter distribution that runs in a web browser.
- 52:52So normally when you use Jupyter, you need to install JupyterLab package, Python package, or the notebook Python package on your machine or on a server.
- 53:01But with JupyterLite, you don't need to do this.
- 53:04So in the end, what you get is just a set of static files.
- 53:09So it's just a bunch of files sitting on disk.
- 53:12You just have HTML, CSS, JavaScript, and WebAssembly.
- 53:16So the main difference compared to a traditional Jupyter installation is the fact that the execution, the environment runs in a browser as well.
- 53:27So, for example, Python.
- 53:29But it could also be other languages that are compiled to WebAssembly.
- 53:33All of this is, again, built on the shoulder of giants.
- 53:37Yeah, this is awesome.
- 53:38This is so awesome.
- 53:39The Jupyter stack is just another way of kind of remixing the whole stack.
- 53:44So, you know, you take a bit of JupyterLab, a little bit of the Jupyter protocol to interact with the kernels.
- 53:52And then even the kernels can be reused in some way.
- 53:56And then you put that together and make something new.
- 53:59So that's the idea behind JupyterLite.
- 54:01It was also made possible by the work on the Pyodide.
- 54:07So this is Python compared to WebAssembly.
- 54:10Since Python is still the most heavily used language in Jupyter, this is kind of what people expect when they use Jupyter and JupyterLite to have a Python kernel.
- 54:21So if I wanted to, say, host some interactive code exploration, I want to have something that people can play with.
- 54:28Maybe I'm an educator and I've got a thousand students, but I don't want to set up a server and worry about what people might do to it.
- 54:35But I want to give them flexibility, right?
- 54:37Like, this is really nice.
- 54:38You could just put this on a static file server like Netlify.
- 54:41Yeah, that's definitely a use case.
- 54:43So GitHub Pages, Arita Docs.
- 54:45It's very simple.
- 54:46It's much simpler than having to do sysadmin work to install packages.
- 54:51And also for the end user, it's also simpler because you don't have to install anything.
- 54:56Everything is already prepackaged.
- 54:57It's crazy.
- 54:58It looks just like JupyterLab, you know, but it's...
- 55:01Because it is, in the end, just JupyterLab.
- 55:03Yeah.
- 55:04And there is also Notebook 7 running as well.
- 55:06So again, like we were talking about earlier, if some users prefer to have this document-centric interface, then they can also use Notebook 7 instead.
- 55:15It's excellent.
- 55:17If you want to give access to some notebook but not run a server, I think there's kind of two options here.
- 55:23This is one of them.
- 55:24The other is if I'm going to give a notebook file to somebody and say, here, run this on your computer, there's a lot of assumptions about what happens at that point.
- 55:34Do you have Python?
- 55:35Do you have the right Python?
- 55:35Do you have permissions to install Jupyter and all the other dependencies?
- 55:39Can you run a server?
- 55:41Do you know what a terminal is?
- 55:42Like, that's a long conversation.
- 55:44And so I think the other thing that's really interesting, I don't know where I pulled it up, but yeah, Jupyter Desktop is also quite interesting as a quick start to getting a Jupyter Python environment on your system, right?
- 55:56Yeah, that's some work done by Mehmet.
- 55:58And basically, it bundled an Electron.
- 56:03So it's a web browser that's packaged with Jupyter Lab.
- 56:06And it's very powerful because now it can come with its own Python, but you can also use the Python that you have on your computer.
- 56:15And yeah, that's really a nice way for distributing and easing the installation for the end user, especially on non-friendly operating systems.
- 56:26Sure.
- 56:27Sure.
- 56:28Or people who are not familiar with it.
- 56:31Yeah.
- 56:31That's true.
- 56:32Like, yeah.
- 56:33I mean, you've got a Mac.
- 56:35Well, there is a macOS ARM and 64 version.
- 56:39There's a Debut and a Fedora.
- 56:40There's a Windows EXE.
- 56:42Like, that's...
- 56:43No, it really solves the problem of I've never used the command line, but I know lots of math, right?
- 56:50So...
- 56:51Yes, exactly.
- 56:51But when I run MATLAB, I just click the MATLAB icon and then I get that shell.
- 56:55What is...
- 56:56Why can't I have permissions to install Jupyter?
- 56:59It says I don't have...
- 57:01No, I get it.
- 57:01Like, that whole frustration side could go away, I think.
- 57:04This is interesting.
- 57:05But, I mean, this is a harder problem than one might imagine just because of how many packages there are on the ecosystem, what things you might be using.
- 57:14So, JupyterLab Desktop is pretty clever.
- 57:17It can also detect if you have Conda or Mamba installed and use those environments.
- 57:23It can use a running server.
- 57:27So, it shifts with the newest version of JupyterLab, right?
- 57:30But it could also connect to a server that's serving a different version of JupyterLab and give you that.
- 57:35It can be a client to different JupyterLabs is what I mean.
- 57:38One time, just to see if it would work, I ran Jupyter Notebook and Lab and Desktop with real-time collaboration.
- 57:45And it turns out you could do that.
- 57:46So, it really is like first-class JupyterLab and it's very flexible and it tries to integrate with what you've got.
- 57:52If you've got nothing, it brings what it needs.
- 57:55If you've got Conda set up, it finds stuff there.
- 57:58If you've got Mamba set up, it finds stuff there.
- 57:59So, it basically tries to be exactly what that first user experience you would want is.
- 58:06You go, you download, you double-click a file.
- 58:08The only thing that's missing is you have to go to GitHub to get this.
- 58:12We should probably put it in an easier place for you to find.
- 58:15Yeah, possibly.
- 58:16Like, maybe in the various stores.
- 58:18I don't know.
- 58:19That's such a hassle.
- 58:20Well, no, I just mean go to jupyter.org slash download.
- 58:23I just set a URL.
- 58:24Sadly, it's not going to work for you.
- 58:26But maybe we should do that.
- 58:27Yes, exactly.
- 58:28That would be a pretty easy thing to do, actually.
- 58:30Just detect the OS and highlight that or have that little drop down and choose another OS, right?
- 58:35See all downloads.
- 58:35I think these two options are going to really make it possible to reach the next 10 million users of Jupyter.
- 58:42Especially JupyterLite in terms of JupyterLite in terms of scalability is unmatched at the moment.
- 58:47There is a deployment of an in-browser Jupyter flavor in use at the moment by the French high school system.
- 58:55They started with the Paris area and now they enabled all the school districts.
- 58:59There is over half a million users on this deployment.
- 59:04200,000 sessions per week.
- 59:06And it's also one single virtual machine.
- 59:08And if they were trying to do this with a one Docker image per user session, it wouldn't fly.
- 59:16They'd need a massive IT team to pull that off.
- 59:19Exactly.
- 59:19And France is not home to hyperscaler cloud providers.
- 59:24So we'd need to host that Azure or Alibaba or Google.
- 59:29And that would be an enormous cost, right?
- 59:32And this is incredibly cheap.
- 59:34There are some limitations to WebAssembly.
- 59:37And I mean, for the sort of use cases, what a high schooler is going to do in a notebook,
- 59:43like learning how to write four loops or computing your greatest command in the administrator.
- 59:47This is more than enough.
- 59:49Like the complexity of it is lesser than rendering the UI.
- 59:52So, yeah.
- 59:53I think you're absolutely right.
- 59:55That's why I put them both side by side, the JupyterLite and the Jupyter Desktop app.
- 59:58I think they kind of address similar audience, but in a different way.
- 1:00:02Check this out, by the way.
- 1:00:03This probably won't come through very well.
- 1:00:05But this is my iPad.
- 1:00:07And I've got JupyterLite working just the same on my browser there as I did.
- 1:00:12Or it'd be a Chromebook or whatever, right?
- 1:00:14Like it really reaches a big audience.
- 1:00:16Yeah.
- 1:00:16I mean, modern browsers now can all handle it.
- 1:00:18It's not the bad old days, at least on that front.
- 1:00:21There will be a lot of really exciting things that happen inside browsers that will surprise
- 1:00:26anyone who was using this era of the Web.
- 1:00:29Like we're about to see crazy things.
- 1:00:31We are about to see crazy things.
- 1:00:33Well, we already see crazy things.
- 1:00:34We'll see more of them.
- 1:00:35That's for sure.
- 1:00:36That's for sure.
- 1:00:36All right, y'all.
- 1:00:37I think we are out of time, but we are certainly not out of topics.
- 1:00:41We could keep talking for a long time, but we'll close it here.
- 1:00:43I guess final thoughts, call to action.
- 1:00:45People want to check this stuff out.
- 1:00:47Maybe they want to upgrade from an older version, either JupyterLab 4 or Jupyter Notebook 7.
- 1:00:53What do you say?
- 1:00:53Pip install notebook.
- 1:00:55Pip install JupyterLab and have fun.
- 1:00:58Dash, dash upgrade.
- 1:00:59Yes.
- 1:01:00Good point.
- 1:01:00Okay, so you already got it.
- 1:01:02Poor request, welcome.
- 1:01:03Poor request, welcome.
- 1:01:06Awesome.
- 1:01:06Yeah.
- 1:01:07So it's a huge project with lots of people involved.
- 1:01:10Frederick, final thoughts?
- 1:01:11That's a very fun project to work on too.
- 1:01:15So if people are willing to contribute, just come and contribute to it.
- 1:01:20There is plenty of spaces as we have just touched some of them here.
- 1:01:24And we are very happy to have new contributors and help people learn the ecosystem to try to contribute.
- 1:01:31And there is no small contribution.
- 1:01:33Like there is no small contribution.
- 1:01:35Everybody is welcome.
- 1:01:36Yeah.
- 1:01:36Yeah.
- 1:01:37Yeah.
- 1:01:38Somebody could set up the download page for Jupyter Desktop.
- 1:01:40Exactly.
- 1:01:41Absolutely.
- 1:01:42Jeremy, you get the final, final word.
- 1:01:46Yeah.
- 1:01:46That was what I was going to say a little bit as well.
- 1:01:49It's the Jupyter community is very welcoming.
- 1:01:51So you can contribute in many different ways.
- 1:01:54It doesn't have to be about technical details or code only.
- 1:01:59Even just putting a talk out there.
- 1:02:02First of all, going to Jupyter Cloud and sharing your use cases is already very valuable to the community and also to the developers because they can learn about how people use the tools, get a very valuable feedback.
- 1:02:14And that would be one call to action.
- 1:02:17Don't hesitate to get involved.
- 1:02:19And if you think there is room to improve, for sure.
- 1:02:22As you were saying before, PRs welcome, as we say often.
- 1:02:27And yeah, check out the latest update on JupyterLite because there is going to be exciting new updates to JupyterLab 4 and Notebook 7 coming in a couple of days.
- 1:02:39So I think maybe by the time this podcast is released, it will probably be out already.
- 1:02:43And also exciting developments when it comes to real-time collaboration in JupyterLite, JupyterLab Desktop, JupyterLab together.
- 1:02:52Yeah.
- 1:02:52Very exciting.
- 1:02:53A lot of things are already great here that we talked about.
- 1:02:56These are some big changes.
- 1:02:57So thank you all for being on the show and sharing what you and everyone else has been up to.
- 1:03:01Thank you.
- 1:03:01Thanks very much.
- 1:03:02Thank you.
- 1:03:03Yep.
- 1:03:03Thank you.
- 1:03:03Bye.
- 1:03:04This has been another episode of Talk Python To Me.
- 1:03:07Thank you to our sponsors.
- 1:03:09Be sure to check out what they're offering.
- 1:03:11It really helps support the show.
- 1:03:12Developers and data scientists are the new high-value targets.
- 1:03:18That's you.
- 1:03:18And yet this group remains severely underprotected.
- 1:03:21Phylum detects, reports, and blocks malicious packages.
- 1:03:24Get their research and join their community at Talk Python.
- 1:03:27Talk Python.fm slash phylum dash research.
- 1:03:29Python Tutor.
- 1:03:32Visualize your Python code step-by-step to understand just what's happening with your code.
- 1:03:38Try it for free and anonymously at talkpython.fm/Python dash tutor.
- 1:03:45Want to level up your Python?
- 1:03:46We have one of the largest catalogs of Python video courses over at Talk Python.
- 1:03:50Our content ranges from true beginners to deeply advanced topics like memory and async.
- 1:03:56And best of all, there's not a subscription in sight.
- 1:03:58Check it out for yourself at training.talkpython.fm.
- 1:04:01Be sure to subscribe to the show.
- 1:04:03Open your favorite podcast app and search for Python.
- 1:04:06We should be right at the top.
- 1:04:07You can also find the iTunes feed at /itunes, the Google Play feed at /play,
- 1:04:12and the direct RSS feed at /rss on talkpython.fm.
- 1:04:17We're live streaming most of our recordings these days.
- 1:04:19If you want to be part of the show and have your comments featured on the air,
- 1:04:23be sure to subscribe to our YouTube channel at talkpython.fm/youtube.
- 1:04:27This is your host, Michael Kennedy.
- 1:04:29Thanks so much for listening.
- 1:04:30I really appreciate it.
- 1:04:32Now get out there and write some Python code.
- 1:04:34I'll see you next time.