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