Latest / Talk Python To Me / #101: Adding a full featured Python environment to Visual Studio Code
Transcript
- 0:00You know the two questions I ask at the end of each episode?
- 0:02What's your favorite editor for writing Python code?
- 0:05And what less well-known PyPI package do you recommend?
- 0:08Well, this time, we're going to make an entire episode out of
- 0:12what's your favorite editor.
- 0:13You'll meet Don Jayamane, who created the wildly popular
- 0:16and open-source Python add-in for Visual Studio Code.
- 0:19That's not the Windows-only Visual Studio,
- 0:21but Microsoft's free cross-platform editor.
- 0:25This is Talk Python To Me, episode 101, recorded January 23, 2017.
- 0:31Welcome to Talk Python To Me, a weekly podcast on Python,
- 0:59the language, the libraries, the ecosystem, and the personalities.
- 1:02This is your host, Michael Kennedy.
- 1:04Follow me on Twitter, where I'm @mkennedy.
- 1:06Keep up with the show and listen to past episodes at talkpython.fm
- 1:10and follow the show on Twitter via at Talk Python.
- 1:12This episode is brought to you by Talk Python Training and Hired.
- 1:17Be sure to check out what we both have to offer during our segments.
- 1:20It helps support the show.
- 1:21Don, welcome to Talk Python.
- 1:24Hi, Michael. It's a pleasure to be here.
- 1:25It's great to have you here.
- 1:26You know, we're going to talk about Visual Studio Code.
- 1:29And I know Visual Studio and Python,
- 1:32while they do have the Python tools for Visual Studio,
- 1:35that's not what we're talking about.
- 1:36Typically, people think of Visual Studio as this thing being a Windows thing,
- 1:40and mostly for like .NET and Windows C developers and so on.
- 1:45But what we're going to talk about is a really amazing plug-in or extension
- 1:50that you've created for Visual Studio Code,
- 1:52which is actually a cross-platform editor based on JavaScript,
- 1:56that Microsoft has released.
- 1:57So we're going to talk about a pretty excellent Python editor
- 2:01that you've had a lot of influence in creating.
- 2:04Yes.
- 2:04This is a little project that I've worked on.
- 2:08And as you mentioned, Visual Studio Code is not Visual Studio IDE
- 2:13that's been developed for Windows.
- 2:15Most people think it is, but it's more of a cross-platform editor.
- 2:19Yeah, it's really, really nice.
- 2:20And it's gaining so much traction.
- 2:22And the Python tools you built were really cool.
- 2:24So I want to talk about those.
- 2:25But let's do first things first.
- 2:26Let's hear about your background.
- 2:27How did you get into programming in the first place?
- 2:29Back in 2000, that's when I started a course in computer science.
- 2:33And I was looking for a permanent role in permanent part-time role
- 2:37in information technology.
- 2:38And that's when I joined a company named EDMS.
- 2:42It's basically a branch of a company in Australia named QA Software.
- 2:47The way they hired people was they just took kids just after year 12.
- 2:52And you were given an IQ test.
- 2:54If you did well, you were hired.
- 2:56So they hired me.
- 2:58That's a really interesting way to get a job.
- 3:00They're just like, look, we know you're smart.
- 3:02You're driven.
- 3:03And we think we could teach you programming.
- 3:05Yes.
- 3:06So it was a really great place.
- 3:08And as the name says, QA Software, it stands for Quality Assured Software.
- 3:15So they were really keen on ensuring the programmers were thought the very basics on programming.
- 3:22That was writing unit tests, writing technical specifications, and writing quality-issued code.
- 3:29So it was really great.
- 3:31It had a very great foundation.
- 3:33And I started learning.
- 3:34I started programming with Visual Fox Pro.
- 3:37Again, I don't know if many people know about that language.
- 3:41It was...
- 3:41Yeah.
- 3:41You know, actually, I don't know if they do.
- 3:43So it's kind of like an access sort of language for databases, right?
- 3:47Can you maybe tell people what that is?
- 3:48Yes, that's exactly right.
- 3:49It started out as Fox Pro.
- 3:51And then, if I'm not mistaken, Microsoft bought it over and turned it into Visual Fox Pro.
- 3:57So initially, they had Visual...
- 4:00I think it was Visual Studio 5.
- 4:03And then they added Fox Pro onto it.
- 4:05And then it became Visual Studio 6 because it became one of the six little components to Visual Studio.
- 4:11Eventually, they killed it off.
- 4:12Yeah, it's not a thing anymore.
- 4:16But yeah, it was a big language.
- 4:18Oh, yes.
- 4:18For sort of rapid development, right?
- 4:20Oh, yes.
- 4:21Personally, I thought it was better than Visual Basic.
- 4:23So...
- 4:24Okay.
- 4:24Yeah, yeah.
- 4:25Very interesting.
- 4:26So where'd you go from there?
- 4:28From there?
- 4:29So I stayed there for a couple of years.
- 4:31And eventually migrated to Australia in 2004.
- 4:36And so while I was at that place that we were using .NET as well.
- 4:41So once I migrated to Australia, then I was just using .NET primarily.
- 4:47And .NET and SQL.
- 4:50Yeah.
- 4:51All right.
- 4:51Interesting.
- 4:51Those are a long ways away from Python.
- 4:54So what got you into Python?
- 4:56Simple.
- 4:57It was the Raspberry Pi microcontroller.
- 4:59Or I don't know what it's called exactly.
- 5:01Or microcomputer.
- 5:04Once I heard about the Raspberry Pi, I just wanted to get my hands on one of those.
- 5:09And I learned that the best language to work on Raspberry Pi was Python.
- 5:16And I figured that was a really great excuse or great reason to learn another programming language.
- 5:23And yes, that's how I learned it.
- 5:24Yeah, that's really nice.
- 5:25Did you end up building anything interesting or just sort of play around with Raspberry Pis?
- 5:29Initially, I just started playing around with it.
- 5:32But my first project was building a little timer slash remote for my pool motor.
- 5:39Because I had just moved in.
- 5:40And the pool pump wasn't...
- 5:44It had to be turned on manually.
- 5:45The timer wasn't working.
- 5:46So I had to hook in the Raspberry Pi with a timer.
- 5:51And that would turn the pump on and off late in the night.
- 5:55Nice.
- 5:56Did you internet enable it so you could see the status of it or anything?
- 5:59Oh, no, no, no.
- 6:00It was just a timer and then just turned the pump on and off.
- 6:03And I was just happy with that.
- 6:05That's really cool.
- 6:06I love how you used it to solve a real world problem.
- 6:09You're like, you know what?
- 6:10I can program this silly pump.
- 6:14And so there were times when it would...
- 6:16There's a little thing called a creepy crawly as well.
- 6:20It would get stuck or tangled up at night.
- 6:23So this was just the early days.
- 6:24I didn't know how to look after a pool or maintain a pool.
- 6:27So I'd even hooked up a camera to this so I could see in the middle of the night whether it's functional or whether it's stuck somewhere.
- 6:34And yes, that's what I did.
- 6:37I don't have any of those things anymore, but it was just in the first couple of months.
- 6:42Oh, that sounds really cool.
- 6:43How did you find learning Python to be?
- 6:45Did you pick it up pretty easily?
- 6:47Yes.
- 6:47Amazingly really simple language.
- 6:50Initially, the only thing that I found annoying was the indentation.
- 6:55So blocks of code had to be intended.
- 6:58So coming from other languages, I just felt that was a little weird and took me, I guess, a week or two to get used to that.
- 7:05I just felt it was...
- 7:08Initially, I thought it was a poor language having to do that.
- 7:10But over time, I realized it was a really very powerful and very, I would say, a very cool language.
- 7:16Yeah, that's really cool.
- 7:17I had a similar experience.
- 7:19I think a lot of people who come from C-based languages where blocks are curly braces and parentheses and things like that.
- 7:26I just...
- 7:27You're so used to white space not mattering.
- 7:29That it's really...
- 7:30It catches you off guard and you're like, wait, that's crazy.
- 7:33But once you realize that editors really, really help you, they kind of make that almost transparent or invisible and they manage it and you don't have to.
- 7:41Well, then all of a sudden, it's pretty sweet once you get your mind around it.
- 7:45I absolutely prefer that kind of programming now.
- 7:49But I remember it being a bit of a mind shift the first time I saw it, too.
- 7:52Interesting.
- 7:53Okay, cool.
- 7:55So let's talk about Visual Studio Code and your plugin.
- 7:59We mentioned a little bit about Visual Studio Code.
- 8:03It's built on something that I actually am a fan of.
- 8:06It's this thing called Electron.
- 8:07So can you maybe give us the history of Electron and its maybe weird intersection with Microsoft?
- 8:12Electron started out as a project that...
- 8:15What's this GitHub word called?
- 8:17Yeah, GitHub, I think, yeah.
- 8:18They started out...
- 8:19It didn't start out as a standalone project.
- 8:21Initially, they built...
- 8:22To my knowledge, they built Atom.
- 8:24And then they realized, hey, wait a minute.
- 8:25We've got this really cool framework that can build desktop applications.
- 8:29And from there, they took out parts of Atom and built Electron.
- 8:33So basically, if you would look at it, Atom is built on top of Electron.
- 8:40And so for some time, people had been using Atom to build extensions.
- 8:44And basically, that turned into an editor.
- 8:46Microsoft came along and they realized, oh, we could do the same thing because we need to provide an editor for C# and a couple of other languages as well.
- 8:57So they came in and took Electron as the basis for Visual Studio Code.
- 9:02Yeah, that's interesting.
- 9:03I mean, it used to be called even Atom Shell, right?
- 9:05Before they were like, okay, it needs its own name, right?
- 9:08Which is really interesting.
- 9:11You know, I guess the origins...
- 9:13It just seemed really weird to me that Microsoft, the company, is coming along and shipping one of their major new projects on Chrome and Node.js.
- 9:23It does not think like where...
- 9:27It's not where I thought they would be focusing, but it's a cool thing.
- 9:30Yes.
- 9:31It's interesting that you mentioned Chrome and Node.js.
- 9:33For people who don't really know what Electron is, the best way to describe it is it's a desktop application built using Chrome and Node.js.
- 9:42So again, if people don't know what Node.js is, it's just JavaScript.
- 9:46That's pretty much it.
- 9:47Yeah, it's interesting.
- 9:49And it packages it up and you just get like a .app on your Mac or whatever and you could care less or you don't really know that it is unless like you actually know the internals.
- 9:59And one of the things you said was interesting was how it makes like heavy use of extensions to give it any functionality.
- 10:07Yes, that's Atom.
- 10:09Atom uses a lot of extensions.
- 10:11Basically, there's not much built or baked into the extension apart from the editors.
- 10:18This is where Visual Studio Code differs significantly.
- 10:21Microsoft came in and they had the benefit of hindsight.
- 10:25So they could see where Atom and Sublime had their drawbacks and they built Visual Studio Code to resolve those issues.
- 10:33For instance, Atom had some serious problems with editing or loading of large files and Visual Studio Code did not.
- 10:40One of the major reasons for people adopting Visual Studio Code was because of its efficiency in dealing with large files.
- 10:46Yeah, and if you had to categorize it in sort of its size on one hand and sort of the, I just run it in the terminal, very lightweight.
- 10:54We've got things like Vim.
- 10:56We've got sort of middle-sized, I guess, tooling like Sublime Text.
- 11:01I guess maybe throw Atom in there.
- 11:04And we've got heavier weight things that do many, many things but are quite large applications like PyCharm or Wing IDE or Visual Studio even itself.
- 11:15Where do you think Visual Studio Code falls in this category?
- 11:19Somewhere halfway there.
- 11:21I would say in the middle because of its debugging capabilities and integration with the Git and a couple of other capabilities.
- 11:30So it's a very mature and very capable editor.
- 11:34So I would have to say it's definitely halfway there.
- 11:37Sure.
- 11:37Okay.
- 11:38Yeah, I mean, it seems like Sublime Text but a little bit larger in terms of size but not a full-blown IDE and maybe in like how it feels when you work with it.
- 11:46That's correct.
- 11:47Yes.
- 11:47Okay.
- 11:48So people may be wondering, what's all this about on this Python show?
- 11:53But let's talk about your Python plugin for Visual Studio.
- 11:56And it's just called Python for Visual Studio Code, right?
- 11:59Yes, it is.
- 12:00Yeah.
- 12:00And when I first saw that, oh, cool.
- 12:02Because, you know, when I first started playing Visual Studio Code, it didn't support Python.
- 12:06And so, like, the white space indentation was not working right.
- 12:09And I'm like, oh, this is not going to work.
- 12:10Put that away.
- 12:11And then I checked back.
- 12:12I talked to some of the guys that mentioned it.
- 12:16And I'm like, oh, let me have a look at this.
- 12:17And then I found your plugin.
- 12:19I'm like, wow, this thing is actually really rich and nice.
- 12:22So, first of all, let's start by how many downloads does it currently have?
- 12:26Before that, how old is it?
- 12:28It's a little over a year old.
- 12:29If I remember correctly, I started work on this sometime in late 2015, somewhere around November or December 2015, late night to early mornings of December 2015.
- 12:42So, it's just over a year old now.
- 12:47Okay, cool.
- 12:48So, now, with that in mind, how many downloads does it have?
- 12:50It's got over a million downloads.
- 12:52So, if I were to be a bit more accurate, maybe 1,150,000 downloads.
- 12:58So, yeah.
- 12:59Yeah.
- 13:00That probably, that number is climbing.
- 13:01And that's just, you know, that really got my attention because I'm like, wow, you know, how many people really use Python and Visual Studio Code?
- 13:07Come on.
- 13:07And then I realized this is like the second most popular extension or something.
- 13:12And it's really, really used.
- 13:14And as I looked into it, there's a lot of features there.
- 13:17Yes.
- 13:18As you mentioned, it is really surprising.
- 13:20Surprising because, one, it's, this is a Microsoft product, Visual Studio Code.
- 13:26And the most popular extension is the C# extension.
- 13:31So, one would have expected the next most popular one to be something to do with, I don't know, maybe TypeScript or something else.
- 13:38However, it's Python.
- 13:40So, it just shows that Python is really up there in terms of popularity with language.
- 13:45To me, it was something very new.
- 13:48That's not what I was expecting at all.
- 13:50Yeah.
- 13:50That's really surprising.
- 13:51Yeah.
- 13:52Yeah.
- 13:52And there were others in the community, too, who were really surprised to see, hey, Python's really doing very well.
- 13:57It's really interesting.
- 13:59Yeah.
- 13:59That's, it must have felt really good to put out something that got over a million downloads.
- 14:04And you have over a million people using it.
- 14:06That's amazing.
- 14:07Yes, indeed.
- 14:08So, what got you, you said back in late 2005, you started working evenings and, you know, skipping sleep and stuff.
- 14:15What got you started?
- 14:17Like, why are you like, ah, this thing must exist.
- 14:19I have to create it.
- 14:20Were you like me?
- 14:21You're like, I wish this would, like, indent my code correctly.
- 14:23But you actually took some action and made something happen?
- 14:25This is, I would say, I was primarily looking for a really cross-platform editor.
- 14:31Where is it?
- 14:32Cross-platform.
- 14:33I was working, I was using a Mac at that time.
- 14:35I was learning to do some development on a Mac.
- 14:37And Windows as well.
- 14:39So, I was still working on Raspberry Pi.
- 14:42As I was jumping between the two platforms, I wanted a consistent look and feel for the editor.
- 14:49So, PyCharm was the only one that fit the box.
- 14:51However, as a Visual Studio developer, someone who's been using Visual Studio all my life, I just preferred that look and feel.
- 15:00So, though PyCharm was great.
- 15:02I still preferred something else.
- 15:04I guess, in the back of my mind, I was still hoping for something from Microsoft.
- 15:08And when Microsoft released Visual Studio Code, I was using that as a replacement for Notepad++.
- 15:16When they released that, I was really looking forward to them providing the API for developers to build extensions.
- 15:24As soon as they did that, I thought to myself, oh, this is a great opportunity.
- 15:29Let's just provide an extension for developers, at least myself, who can use it to edit Python files on both a Mac and Windows.
- 15:38And I was also looking for a really simple project to work on while I was at home using Node.js because I wanted to play around with Node.js.
- 15:48So, I was looking for a project to work on.
- 15:52Right.
- 15:52So, obviously, the tooling is for Python developers, but what type of code did you write to create this thing?
- 15:59I'd say primarily Node.js.
- 16:01So, it was really like writing almost like an Electron app, right?
- 16:07Yes.
- 16:07Yeah, okay.
- 16:08That is correct.
- 16:08So, if you want to write any extensions for Visual Studio Code, you've got to do it in Node.js.
- 16:16So, Node.js is the framework.
- 16:18The language is TypeScript.
- 16:21So, TypeScript is a language that Microsoft have developed.
- 16:25It's basically a superset of JavaScript.
- 16:28So, those who don't know what TypeScript is.
- 16:30Right, like adding static typing to JavaScript in a sense.
- 16:33A little bit more, too.
- 16:34Precisely.
- 16:34Yeah.
- 16:35Yes.
- 16:35That's right.
- 16:36Okay.
- 16:36Yeah, interesting.
- 16:37Interesting.
- 16:37So, you talked about PyCharm.
- 16:40You said there was Sublime.
- 16:41Like, what...
- 16:42Why didn't you pick and just go like, oh, let's use Sublime over here.
- 16:45Like, that works on both platforms as well.
- 16:47For some reason, I never did like Sublime.
- 16:49I don't know.
- 16:50I guess it's just the font and the way the IntelliSense was displayed.
- 16:54I don't know.
- 16:55As I mentioned, as a Visual Studio developer, the look and feel was completely different.
- 17:00So, I preferred the way Visual Studio laid things out.
- 17:04Whereas Sublime, I was still getting used to using editors.
- 17:08PyCharm was an IDE.
- 17:10Sublime was an editor and it just didn't feel rich and powerful enough to me.
- 17:15So, it was just preference.
- 17:17All right.
- 17:17Sounds good.
- 17:18So, your project, when I first talked to you, it had over 600 stars on GitHub.
- 17:23That's a pretty serious project.
- 17:26Yeah.
- 17:26635.
- 17:27So, what's it been like to...
- 17:30And all the code for this is on GitHub, right?
- 17:32Yes, it is.
- 17:33Yeah.
- 17:33Okay.
- 17:33Cool.
- 17:34What's it been like to run a project with that much popularity?
- 17:38Have you been getting a lot of feedback from the community or people helping out?
- 17:42Oh, yes.
- 17:43I've been getting quite a lot of feedback.
- 17:44And, like, for instance, plenty of people provide the feedback while submitting issues on GitHub or maybe on the extensions page.
- 17:54And it's very humbling to know that this little pet project of mine has made a big difference in the development experience of people in the professional workspace.
- 18:03So, for instance, when people say that they've switched over from Sublime or some other IDE because of Feature X, Y, Z, it feels really great.
- 18:13And there are others who talk about the efficiency of the extension or they say that they love Visual Studio Code.
- 18:19And for me, it's a person who just loves Microsoft products.
- 18:22I'm like, oh, wow, this is really good.
- 18:24Something Microsoft has done really well and is finally doing well.
- 18:28Yeah, it's definitely interesting in that they seem to have given up on the idea of, like, the answer is always a Windows.
- 18:36Now, what's the question?
- 18:37You know?
- 18:38And just trying to be more part of the community.
- 18:41And I think this is one of the places where we're starting to see some cool things out of that.
- 18:48This portion of Talk Python is brought to you by us.
- 18:50As many of you know, I have a growing set of courses to help you go from Python beginner to novice to Python expert.
- 18:56And there are many more courses in the works.
- 18:58So please consider Talk Python training for you and your team's training needs.
- 19:03If you're just getting started, I've built a course to teach you Python the way professional developers learn by building applications.
- 19:09Check out my Python jumpstart by building 10 apps at talkpython.fm/course.
- 19:14Are you looking to start adding services to your app?
- 19:17Try my brand new consuming HTTP services in Python.
- 19:20You'll learn to work with RESTful HTTP services as well as SOAP, JSON, and XML data formats.
- 19:26Do you want to launch an online business?
- 19:28Well, Matt Makai and I built an entrepreneur's playbook with Python for Entrepreneurs.
- 19:32This 16-hour course will teach you everything you need to launch your web-based business with Python.
- 19:37And finally, there's a couple of new course announcements coming really soon.
- 19:41So if you don't already have an account, be sure to create one at training.talkpython.fm to get notified.
- 19:46And for all of you who have bought my courses, thank you so much.
- 19:50It really, really helps support the show.
- 19:52So how many contributors are working on the project?
- 19:55If you were to look at the total number of contributors, I believe there are around 200, sorry, 29 contributors.
- 20:01Okay, cool.
- 20:01And do you have the concept of a core development team?
- 20:06Or are you just managing it yourself among all these people?
- 20:08Or how does it work?
- 20:09Unfortunately, it's just myself.
- 20:11So the other contributors just contribute maybe some of them just fixes or typos here and there.
- 20:17And I would say the major contribution has been something like adding a new linter, for instance, adding prospector to the extension.
- 20:27So it's just here and there.
- 20:30But I have to acknowledge the fact that they are significant contributions.
- 20:33Yeah, I'm sure it's great to have all the help.
- 20:35So, yeah, you brought up some of the features.
- 20:38Let's go ahead and talk about them.
- 20:39Like one of the things that you have in there is linting.
- 20:42And you said like somebody added just prospector.
- 20:45So what's the story?
- 20:46And maybe just for people who don't know, like what is linting?
- 20:48And then tell people about some of the options there.
- 20:51Yes.
- 20:51Linting is basically just the ability to see what all of the error messages are, the errors that you could have in your program.
- 21:00For instance, if you've written a Python code, block of code, if something isn't indented properly, or if you've got some typos, some keywords are misspelled.
- 21:09So this is where the linters would come in and tell you before the program is run, hey, these are potential issues.
- 21:16Here are some warnings or these are some definite errors.
- 21:20So you've got different sorts of categories.
- 21:22So basically a linter is kind of like a pre-compiled time error checker.
- 21:28There's a number of tools in the Python space.
- 21:31Which ones are built in or do you have support for?
- 21:33In the Python space, there are plenty of packages that provide linting capabilities.
- 21:37So for instance, if I'm not mistaken, the most popular ones are PyLint, Prospector, PyDocStyle, Flake8, and so on and so forth.
- 21:46So if I were to look at these linters, there are two categories.
- 21:49One is that checks for formatting.
- 21:51And the other one is that looks at your code itself to check whether there are errors within the code.
- 21:56Yeah.
- 21:57So on one hand, you might have like PEP 8 checks, right?
- 22:00For like there should be no space after this comma.
- 22:03There should be no extra parentheses or whatever.
- 22:05And the others might be like, here's an unused variable.
- 22:08Is that a problem, right?
- 22:10Those are maybe the two categories if you put some examples on it, right?
- 22:13That's correct.
- 22:14So what's really great is I don't really have to write much code because people or communities out there have built these tools.
- 22:22All I'm doing is utilizing those and displaying those results through Visual Studio Code, just surfacing it through Visual Studio Code in a consistent manner.
- 22:32So this is where, again, Visual Studio Code really excels because it provides a consistent look and feel across all languages.
- 22:39So whether you're using C#, TypeScript, or any other language, the error messages would be displayed in the same way.
- 22:46I see.
- 22:46And you just, your extension plugs into that error message notification system or whatever, right?
- 22:51Yes.
- 22:52Yes, it does.
- 22:53Nice.
- 22:54Okay.
- 22:54So linting, built-in, that's pretty awesome.
- 22:56And lots of support for different linters.
- 22:58Cool.
- 22:58And then we have IntelliSense or autocompletion, including support for type-ins, right?
- 23:04Yes.
- 23:04So, yeah, let's talk about that a bit.
- 23:06This one's supported, again, through a Python package that's been developed by David Halter.
- 23:12Is it David Halter?
- 23:13Sorry if I'm not pronouncing his name correctly.
- 23:16But, yes, it's a great little package because all of the hard work has been done by this particular package.
- 23:24Oh, nice.
- 23:25And it's called JEDI, right?
- 23:26Yes, it's called JEDI.
- 23:27Okay.
- 23:27So it was developed by this individual.
- 23:30And this particular package is used today in a couple of other editors as well.
- 23:36I know Atom uses it.
- 23:37Sublime uses it.
- 23:38Including, if I'm not mistaken, PyCharm 2 uses it to provide IntelliSense when you're debugging Python code.
- 23:46It's a serious package that's used by some major players out there.
- 23:50So, and I've made use of it as well to provide the IntelliSense capabilities for the extension.
- 23:57It's not just IntelliSense.
- 23:58It gives you the ability to inspect your code and understand the structure of your code as well.
- 24:04Yeah, I was pretty impressed, like, how much of the structure of, like, if I'm working on a package, it understands my code, not just the standard library and things like that.
- 24:12Yes.
- 24:13So as mentioned, it's a really great, great little package.
- 24:16So kudos to David.
- 24:19Yeah, and that's awesome that you're not necessarily starting from scratch, but you're able to build on this really mature thing.
- 24:24And benefits to or improvements to Jedi are improvements to your tooling as well, right?
- 24:30Yes.
- 24:30I think it was sometime mid to late last year that's when he added support for PEP 484 in a new version.
- 24:39And yes, so I got the benefit of supporting PEP 484 in the extension.
- 24:46So people don't really realize that the support comes through another Python package.
- 24:51They just assume, oh, wow, the extension now supports this.
- 24:54Well, in fact, yes, it does.
- 24:56But again, thanks to the Jedi plugin.
- 24:58Yeah, that's really, really cool.
- 25:00You can look good just building on the shoulders of giants, as they say, right?
- 25:04Yes, yes.
- 25:05Cool.
- 25:05And then you have support for PySpark and things like Jupyter and IPython notebooks, too.
- 25:10Yes.
- 25:11What's that look like?
- 25:12Support for PySpark and Jupyter is really very basic at this stage.
- 25:17So what we do is we can execute certain code against one of these engines and the results,
- 25:25whether they are just raw output or whether you've got graphical output can be displayed.
- 25:29So you could have two forms of graphical output.
- 25:32One is just a static graph or the other one is a graph that you can interact with or interactive graphs.
- 25:39So those are supported as well.
- 25:41And the reason this was added is because sometime around mid to late last year, I noticed,
- 25:46oh, we, when I say we, it's back then I was working at Microsoft.
- 25:50We noticed that there was quite a lot of interest in the data science community for Python developers.
- 25:57And that's when we felt, okay, we need to add some tooling around that space so that we could draw the data science community into the Visual Studio editor.
- 26:08And also the Azure team, the Azure data science team does a lot of stuff with Python as well, right?
- 26:14That's correct.
- 26:14They use the PySpark.
- 26:16They use PySpark for some of their work.
- 26:18In fact, they had made some contributions to the extension to resolve some issues to ensure it worked properly with PySpark.
- 26:25All right.
- 26:25So another thing you have, obviously, is auto-indenting.
- 26:28Like how much work was that?
- 26:30How did you pull that off?
- 26:31That's the one thing where I'm like, oh, I can't use Visual Studio Code for Python,
- 26:35even though I thought it was cool because it just didn't understand how to work with the structure, right?
- 26:40It's interesting that you ask how much work went into that.
- 26:42In fact, very little work went in there.
- 26:44But if I'm not mistaken, maybe half a page of code or even less.
- 26:48Again, this is where Visual Studio Code excels.
- 26:51It just provides the capability for me to give it the rules for indentation with the use of regular expressions.
- 26:59And that's exactly what I did.
- 27:01And Visual Studio Code just handles the rest.
- 27:04So it was a really simple bit of a simple block of code.
- 27:09And Visual Studio Code does everything.
- 27:11Okay.
- 27:11Yeah.
- 27:12Very, very cool.
- 27:13It's nice that that's built in, right?
- 27:15That makes adding these extensions to be cool.
- 27:17Oh, yes.
- 27:18It made my life easy as well.
- 27:19So I wouldn't have to just tab, tab.
- 27:21And it was just awesome.
- 27:22Cool.
- 27:23And you also have like code formatting, like code cleanup, kind of almost like linting.
- 27:28Yes.
- 27:28Code formatting, just like linting, as you mentioned.
- 27:31We've got two popular linters out there, Autopef8 and YapF.
- 27:35So once again, I'm not doing much of the work, if at all any.
- 27:39I'm just making use of some pre-built packages.
- 27:42So take the packages that someone out there has built and provide the capabilities in Visual Studio Code.
- 27:51So the developer using Visual Studio Code can choose the format of choice, either Autopef8 or YapF.
- 27:57And they could configure it as well.
- 27:59They could configure Autopef8 or YapF by using the corresponding configuration files and adding it into the project directory.
- 28:06Oh, great.
- 28:07Yeah.
- 28:07I just put like a config file right there and it just works.
- 28:09It just works.
- 28:10That's correct.
- 28:10That is the intention.
- 28:11Yes.
- 28:12That's nice.
- 28:12And it integrates with the command line that way as well.
- 28:14So like if you do it in Visual Studio Code, it'll pick up the config files, but also like automated builds or something, huh?
- 28:21Yes.
- 28:21So when developing this extension, one of the main requirements was people should be able to use either PyCharm or Sublime or whatever editor they prefer.
- 28:33We're not trying to restrict users to keep using Visual Studio Code.
- 28:38There are a few places where you'd have to add custom settings into Visual Studio Code, but as much as possible, you're not tied to Visual Studio Code.
- 28:47Yeah, that's a really great goal or thing to keep in mind.
- 28:50Nice.
- 28:51And you have pretty decent refactoring support as well.
- 28:55Not all the refactorings maybe, but the most popular ones, right?
- 28:58Yes.
- 28:58What does it support?
- 28:59The most popular ones that we felt was necessary was renaming a method name or function or variable.
- 29:08So it's rename and extracting variables and extracting methods.
- 29:11So those are the three main or two main refactoring capabilities that we wanted to add.
- 29:16And once again, I didn't have to do much in there.
- 29:21I just made use of a popular package named Rope.
- 29:25So this is Rope for Python.
- 29:26And that provides all of the refactoring capabilities.
- 29:30Apart from the rename and extract refactoring capabilities, there's also the sorting of imports.
- 29:39So again, I just made use of iSort package, which does the sorting of the imports.
- 29:44So yes.
- 29:45Oh, that's excellent.
- 29:46You said that there was something about the maintainer with Rope that it's a great package, but it was like it had gone dormant or something?
- 29:52Yes.
- 29:53When I started using Rope, I came across a couple of issues.
- 29:56And then what I did was, as any other developer was, just raise those issues on GitHub and then notice that it wasn't getting looked at.
- 30:04That's when I learned that it had gone fairly dormant.
- 30:06And after getting in touch with the contributor, I learned that he was unable to maintain it.
- 30:14And that's when they were looking for, he was looking for another contributor.
- 30:17So it was, I've got to bring this out because it's really sad that you've got such popular tools that's in the public space that are used by, well, hundreds of users and plenty of people rely on them.
- 30:28And you only have just one contributor.
- 30:33So it's really important that we all pitch in and try to pitch in as contributors.
- 30:38And it can be hard, too.
- 30:40You know, like there have been a few things where I'm like, oh, this just needs a little tweak and it would be nicer.
- 30:45And I'll do like, I'll raise an issue on GitHub or I'll do a pull request.
- 30:48It feels the worst when you like, you go fork the repo, you'd make the fix.
- 30:53You're like, yeah, this is like really good now.
- 30:54And you do a PR and like people aren't even bothered to even like merge it, you know, you're like, oh, but it's like so close.
- 31:02Just press merge.
- 31:03It won't even conflict, you know.
- 31:04And yes.
- 31:05And what do you do?
- 31:06I mean, it's tough.
- 31:07But on the flip side, right?
- 31:09Like these people have lives beyond the projects that they create.
- 31:13And so you can't really be too upset with somebody for not maintaining a thing for free.
- 31:18Yes.
- 31:19Yes.
- 31:19It's just the challenge of open source.
- 31:23Do you think that's going to grow?
- 31:24I sort of feel like as open source grows and more people come into this community and this way of working, that it's going to actually be a bigger problem.
- 31:32I wouldn't say it's a problem.
- 31:33It's just the responsibility falls on us, on us developers who are using it.
- 31:38So we've got to pitch back.
- 31:40We've got to pitch in as well.
- 31:43So it's a little bit of give and take.
- 31:45So if we're going to take something from the community, we need to give something back as well.
- 31:48So we need to be, we need to take the time to contribute, to help the contributors, to resolve issues or, you know, look at some of the questions.
- 31:58Because I can see quite a lot of that happening in my project.
- 32:02Plenty of people just come in and they answer questions that other people have.
- 32:06And it's really great.
- 32:07It's really great.
- 32:08I guess that's what we need a lot more of.
- 32:10Yeah.
- 32:10Nice.
- 32:11Okay.
- 32:12Another thing that you have built in is viewing references and code navigation and viewing signatures and stuff.
- 32:18And that's, you see, that also is basically just standing on the shoulders of Jedi, right?
- 32:23That's correct.
- 32:24Again, Jedi is one package that's developed by David.
- 32:27So it provides the ability to look at your code.
- 32:31So when you say look at your code, it gives you the structure of your code.
- 32:34And that's where you have the ability to look at the references, code navigation, or signatures.
- 32:39Nice.
- 32:40So code navigation and signatures.
- 32:41That's pretty explanatory.
- 32:43Viewing references.
- 32:44You mean if I write a function or a class or something showing all the places in which it's used in the rest of the code across my other files.
- 32:52That's correct.
- 32:52Okay.
- 32:53Yeah.
- 32:53Pretty excellent.
- 32:54Yes.
- 32:54So this is where, again, Visual Studio Code is really great because it provides a very consistent way of navigating or viewing references.
- 33:03So whatever, irrespective of your language, the UX is consistent.
- 33:07Whereas if you were to go to something, if I'm not mistaken, in Atom, there is no consistent UX for viewing references.
- 33:15Because each developer, each author of extensions, they've got to build their own UI around these things.
- 33:21So if I'm not mistaken, that's how it is.
- 33:24It is pretty cool that I could be there working on, like, a Python web app, and the CSS support and the JavaScript support and the Python support and the HTML support all have the same basic gestures and UIs and way of doing things.
- 33:38That's a cool extension system they've built in.
- 33:41Very nice.
- 33:42Yes.
- 33:42So you have some pretty serious debugging support.
- 33:44When I read that, I thought, wow, you guys are really adding a lot of interesting things.
- 33:49So on your page, it says you have excellent debugging support, including remote debugging over SSH, multiple threads, Django, Flask, and so on.
- 33:57How did you pull that off?
- 33:58I have to say this is one of my favorite features.
- 34:00I say it's one of my favorites simply because it's something that I use quite a lot of.
- 34:04And it made my life a lot easier as well.
- 34:07Initially, I have to say, just add a little bit of history.
- 34:10The debugger was built on PDD.
- 34:13And then once I added the debugger, I noticed that plenty of people were using it and commenting on some of the issues.
- 34:19And then I realized, oh, wow, plenty of people are using this.
- 34:22And back then, I was looking for a way to improve the debugging capabilities.
- 34:26And at that time, I was using both PyCharm and PTVS.
- 34:31So that's Python tools for Visual Studio.
- 34:33When I looked at the source code for PTVS, I realized that their debugger was built completely in Python.
- 34:40And that's when, you know, a light bulb went ding.
- 34:44And I was like, oh, since I've used all of these packages for IntelliSense and Linting, I could do the same here as well.
- 34:51So all I did was took this Python package, Python code, and built a debugger around that.
- 34:58So again, thanks to Microsoft and the PTVS team, the support for debugging is awesome in this, simply because of the awesome work that they've done in PTVS.
- 35:09Yeah, that's really cool.
- 35:10You're able to pull it out of there.
- 35:11And the Python tools for Visual Studio, that's like the big, more heavyweight IDE that runs on Windows.
- 35:16That's also open source, isn't it?
- 35:18Yes, it is.
- 35:19Yeah, okay, so that was pretty easy for you to kind of merge those things together.
- 35:23Yes.
- 35:23This portion of Talk Python To Me is brought to you by Hired.
- 35:38Hired is the platform for top Python developer jobs.
- 35:41Create your profile and instantly get access to 3,500 companies who will work to compete with you.
- 35:46Take it from one of Hired's users who recently got a job and said,
- 35:48I had my first offer on Thursday after going live on Monday, and I ended up getting eight offers in total.
- 35:54I've worked with recruiters in the past, but they've always been pretty hit and miss.
- 35:57I tried LinkedIn, but I found Hired to be the best.
- 36:00I really liked knowing the salary up front.
- 36:02Privacy was also a huge seller for me.
- 36:05Sounds awesome, doesn't it?
- 36:06Well, wait until you hear about the sign-in bonus.
- 36:08Everyone who accepts a job from Hired gets $1,000 sign-in bonus.
- 36:12And as Talk Python listeners, it gets way sweeter.
- 36:14Use the link Hired.com slash Talk Python To Me, and Hired will double the signing bonus to $2,000.
- 36:20Opportunities knocking.
- 36:21Visit Hired.com slash Talk Python To Me and answer the door.
- 36:32And of course, unit testing with all the frameworks.
- 36:35Yes, unit testing.
- 36:36It supports the three major frameworks.
- 36:39Unit tests, built into Python.
- 36:42There's pytest and NoseTest.
- 36:44So initially, I started out with just adding support for unit tests,
- 36:48and then found that adding support for pytest and NoseTest was very easy as well.
- 36:53So just as the linters and formaters, these are just treated as separate packages.
- 37:00So all we do is we just need, if one were to run unit tests as a Python developer,
- 37:05you could just go into the command prompt and run these tests.
- 37:08So that's pretty much what I am doing.
- 37:10I'm just running these things in a shell and capturing the output and surfacing it to the user.
- 37:17Does it appear in like a console, or does it do more like highlight some of the code with coverage,
- 37:23or like does it affect the UI in the editor, or is it more like here's the console and the outcome?
- 37:28At this stage, it's primarily in a little console, because there is Microsoft, if I'm not mistaken,
- 37:34they do not have a consistent, they do not have a UI for unit tests.
- 37:40So back when I was working on this extension, which was last year, they did not have anything.
- 37:44So they were looking at adding support for some UI, because this is something they need across other languages as well.
- 37:51So just as, you know, viewing references or debugging, where you've got consistent look and feel for these capabilities,
- 37:58it's something that they didn't have for unit tests.
- 38:00So at this stage, it's just console window.
- 38:03Okay, yeah, that makes sense.
- 38:04And there's like a little console that can be in the bottom of the editor, a little like PyCharm, right?
- 38:08Yes.
- 38:09However, what we have added is for each class of method, there is something new.
- 38:15What we've got is we've got something called code lenses.
- 38:18Basically, it's just this floating link or floating text that you can click on to run or debug a unit test.
- 38:26It's fairly easy.
- 38:28Once you've got a block of code, and if it's a unit test, you've got some link within the code that you can click on.
- 38:33Oh, that's cool.
- 38:34There's like a little button next to the test method in your unit test itself.
- 38:38And you can just click that and run the one?
- 38:40Yes, that's correct.
- 38:41Oh, sweet.
- 38:42Do you have any support for profiling?
- 38:44At this stage?
- 38:45No, it's been it's something that's been requested by a number of people.
- 38:48So it's something that I'm looking at adding.
- 38:50So no, it isn't supported at this stage.
- 38:53Sure.
- 38:53Okay.
- 38:54One thing I thought was cool that seems like you support pretty well is virtual environments and Python versions and things like that.
- 39:02Do you want to talk about how whether you've got that or how it works?
- 39:05Yes.
- 39:05Virtual environments are supported.
- 39:07Now, initially, it took me a while to get this working because I would say it took a couple of iterations to get this working.
- 39:14The way virtual environments are supported is we and the extension.
- 39:19All I do is it's up to the developer to define the location of the virtual environment.
- 39:25So you could have virtual environments within the project directory or somewhere else.
- 39:29So I have no idea.
- 39:31I'm not going to try looking for it.
- 39:32It's up to the developer to define it in the settings file.
- 39:36So this is one of those places where you have custom Visual Studio code-specific settings.
- 39:41It's a file named settings.json.
- 39:44You define the path and the name of the setting is Python path.
- 39:48So you define the name, the path to the Python interpreter.
- 39:52To make lives easier, what we've got is we've got a little shortcut.
- 39:57So you could go into this particular menu item and launch a particular command palette which says select the Python interpreter.
- 40:06So what we do is, in the extension, try to look for the common locations where you could have your Python interpreters or your virtual environments, whether it's in the current directory or some other known locations.
- 40:18We look through those directories and list it out to you.
- 40:22So all you have to do is, from that list box, you just select it and done.
- 40:25If it's not there, you'd have to just manually type it.
- 40:28And yeah, that's it.
- 40:30Yeah, that's pretty nice because I do almost all of my, at least my web projects, almost all of them from, you know, each website gets its own virtual directory.
- 40:38And having that there, I'm like, oh, I don't know if I can edit this thing because of Visual Studio code because it's all the stuff that's installed over here.
- 40:45I'm like, oh, wait.
- 40:45Yeah, I totally have support for that.
- 40:47It's very cool.
- 40:48Yeah, and you also have like little Python terminals and local help.
- 40:51Those are all great.
- 40:52And then I guess the last major feature is our snippets.
- 40:55What are snippets and what are the nice ones you got?
- 40:59Snippets, well, I wouldn't say they're nice ones, but it's basically certain snippets like having a try snippet or just for a class.
- 41:09So those are the kind of snippets that I have in there.
- 41:12I wouldn't say there are some really great snippets, but it's something that just makes life a little bit easier.
- 41:17I see.
- 41:17So I can type like try and hit tab and we'll expand out to try colon pass, accept expression as a dinner vehicle.
- 41:24All right.
- 41:24Or I could do, can I do like width?
- 41:27Yeah, like width blocks.
- 41:28And yeah.
- 41:30So just the common structures probably of if and whatnot.
- 41:34That's correct.
- 41:35Okay.
- 41:36Yeah, very nice.
- 41:37Can we add our own?
- 41:39If we're like, oh, this is cool.
- 41:40I'd like to have it do this when I hit tab and it doesn't.
- 41:43Good question.
- 41:43I have no idea.
- 41:45I haven't had this question been asked by anyone on GitHub.
- 41:49So I wouldn't be surprised if it were possible.
- 41:53However, I'm not sure.
- 41:54I have no idea to answer the question.
- 41:56I don't know.
- 41:57Yeah.
- 41:57That's a good question, though.
- 41:58All right.
- 41:59Well, maybe I'll file a GitHub issue and you can say yes here or no.
- 42:02We'll add it.
- 42:03Awesome.
- 42:04So it sounds to me like to some degree you've done, obviously, a large amount of work.
- 42:09But the really what makes it look like it would be extreme work, like the remote debugging, multi-threading over SSH shells and things like that come from other packages, actually.
- 42:21And so how much of this is like pulling other packages together?
- 42:24I would say majority of it, if not all of it, has been done by the other packages.
- 42:28Because as I mentioned earlier, the code is primarily written in Node.js or TypeScript because that's what Visual Studio Code is built on top of.
- 42:37And to provide the capabilities for individual language features like IntelliSense, debugging, linting, all of that is done through individual Python packages.
- 42:48So all I'm doing is just making use of them.
- 42:51That's really cool.
- 42:51How do you do the interprocess communication between like Python, the Python packages, and the Node.js stuff that is really running Visual Studio Code?
- 43:01So that's fairly simple for something such as linting or code formatting.
- 43:05All I'm doing is in the background, I'm just launching a particular process, a Python process, and running the corresponding Python package against a particular file or particular block of code.
- 43:17And I just capture the output and display it.
- 43:20For some of them, it's not as straightforward as that.
- 43:23For instance, with the debugger, what I've got to do is I start the Python package, which is the debugging package, and communicate with that process using sockets.
- 43:33Okay.
- 43:34So, for instance, it's different.
- 43:35Like, for instance, debugging and running unit tests, I'd use sockets.
- 43:39And the others, it's just basically simple communications, just reading the output from the…
- 43:45Just shell out and capture it, yeah.
- 43:47Yes.
- 43:47Okay.
- 43:48How much time did you spend on this, getting this all up and running, do you think?
- 43:53Like, how long from December until it's more or less looking like what it is now?
- 43:56Around May, it was…
- 43:59We had quite a lot of the capabilities built in, apart from running unit tests and adding support for PySpark and Jupyter.
- 44:07So, until then, there was plenty of support for linters, debugging, and code formatting.
- 44:14So, I would say half of it around May, and then the remainder was completed around November of last year.
- 44:24So, just under a year.
- 44:26It took just under a year to complete everything.
- 44:28That's…
- 44:29Yeah.
- 44:29And how many…
- 44:30That was mostly you, right?
- 44:31Yes.
- 44:32That's correct.
- 44:32So, yeah.
- 44:33That's a lot of cool stuff that you got out in that short amount of time.
- 44:37Nice.
- 44:37It was really interesting working on this.
- 44:39So, as I mentioned, when I started out this pet project of mine, it was just early.
- 44:44I was in the morning, and then over time, I learned, oh, it was getting really popular.
- 44:49And then that kept motivating me because there are plenty of people using it.
- 44:53Like, oh, well, this is really doing well.
- 44:55Let's just keep churning more code, putting more features in there.
- 44:58Yeah.
- 44:59That's awesome.
- 45:00I think two really motivating things about writing software are one of them is you get to either work with a really cool technology
- 45:07or the thing that you're actually building is a cool technology or some combination thereof.
- 45:12And the other is that lots of people use and appreciate whatever it is you build, right?
- 45:17Yes.
- 45:18I think the most important thing was the appreciation because even though there was plenty of people downloading it,
- 45:25I mean, getting to know that people appreciate the work that you've done, it makes a big difference.
- 45:30Yeah.
- 45:30I'm sure.
- 45:31And so, what other, you know, if you get something with a million downloads, what other opportunities come with that?
- 45:36Like, have people reached out to you to do cool stuff?
- 45:40I did get one opportunity and that was Microsoft.
- 45:43They approached me around early May last year.
- 45:47They approached me and they asked me if I would like to join the Visual Studio Code team and work full time on this extension
- 45:53because they saw that it was a great extension and they wanted me to spend full time on it so that it could be polished and it would be feature complete.
- 46:02When I say feature complete, we could take the time out to iron out some wrinkles and ensure it integrates well with Visual Studio Code.
- 46:09And also, if there was something that I wanted added into the co-product, I could, you know, do that myself as well.
- 46:16That's pretty awesome.
- 46:17So, that was, yeah, it was really great.
- 46:19So, that's when I gave up my 10-year role at a previous place and I was like, oh, yes, I will jump ship.
- 46:26Yeah, you get to just get paid to work on such a cool project.
- 46:29I've seen them do that before, hire people to basically continue to work on something they saw really valuable that was integrating kind of in the style.
- 46:37That's great.
- 46:38Yes.
- 46:38Are you still working there on it or are you kind of got it where it used to be?
- 46:42Oh, so, my contract ended last year.
- 46:45So, it was just a six-month contract, but no regrets there.
- 46:48So, enjoyed the time while working there, working for Microsoft.
- 46:52And so, I've moved on since then.
- 46:54Okay, cool.
- 46:54Now, I want to ask you about the other extensions you've written because you have a habit of writing Visual Studio Code extensions, apparently.
- 47:02There's some cool ones.
- 47:03Yes.
- 47:03But before I do, before I do, I want to ask you, is there a way to write extensions for your Python thing?
- 47:08Like, if I had something I wanted to add, is there a way, like, how can I change or extend what you've done?
- 47:15Do I have to go into a PR directly against it or is there some other way to get in there?
- 47:19It's just a PR.
- 47:20So, pull the report down to your local machine and then make the changes.
- 47:25So, as I mentioned, it's all done in Node.js.
- 47:28So, you've got to use TypeScript to make the changes.
- 47:30Nice.
- 47:31Okay.
- 47:31Very cool.
- 47:32So, all right.
- 47:32Let's just really briefly touch on some of the others that you've written.
- 47:36I'll just go through the major extensions that I've developed.
- 47:39One is the Java debugger.
- 47:42Back then, I was playing around a little bit with Java as well.
- 47:45And I was looking around for the ability to debug Java code.
- 47:53And I really hated Eclipse or the others because it was just too bulky and it took a long time to load up.
- 47:59By then, I had some experience with PDB and I figured I could build a Java debugger as well using the similar capability, similar concepts.
- 48:08And that's exactly what I did.
- 48:10So, I built a Java debugger.
- 48:12It's not as popular, but there are plenty of people using that.
- 48:15And the other extension is create unique IDs.
- 48:19Basically, it's just the ability to create unique IDs like GUIDs or random numbers and it inserts it into the text.
- 48:25Then there's BOA or Bauer.
- 48:28It's just a little tool to restore BOA packages.
- 48:34It was popular in the early days when Visual Studio Code didn't have an integrated terminal, but now it does.
- 48:40So, for Python developers, basically, it's a tool to restore dependencies from your requirements of TXT file.
- 48:47That's pretty much it.
- 48:48So, if you've got your terminal, you can do it using your terminal.
- 48:51That's why it's no longer popular.
- 48:54The next most popular extension that I have is GitHistory.
- 48:58So, I built this again for personal use.
- 49:03I was after an extension that I could use to look at the GitHistory log.
- 49:08So, I built this one again using TypeScript and it's just a wrapper around the Git.
- 49:13And at this stage, it's quite popular.
- 49:17If I were to bring numbers, it's the 12th most popular extension out there with around 350,000 downloads.
- 49:25And I have to say that currently it's being maintained primarily by Mike Surkopf.
- 49:32I'm not sure how it's pronounced.
- 49:34He's the one who's looking at all of the contributions at this stage while I focus on Python and the others.
- 49:39Yeah, that's cool.
- 49:40Lastly, the other extension is jQuery code snippets.
- 49:43That's a simple extension that gives you a lot of code snippets for jQuery.
- 49:48Okay, yeah, that'd be really nice.
- 49:49Are you working on any new ones?
- 49:51There is one that I'm trying to work on.
- 49:54I just haven't been doing much work on that for the past couple of weeks.
- 49:59It's pulling the code which supports Jupyter out of the Python extension because there are other languages that could use the Jupyter kernel.
- 50:08It's not just Python.
- 50:09So, I'm just trying to pull that out so others could use that or other languages could make use of it.
- 50:16Okay, yeah.
- 50:16That'll be really nice to separate those if people want to use them in R or whatever.
- 50:21Yes.
- 50:21Okay, nice.
- 50:23Well, I think people have a pretty good idea of this extension.
- 50:26And it's all open source.
- 50:28It's all free.
- 50:28So, if you're looking to try a pretty seriously rich Python editor cross-platform Linux, OS X or macOS and Windows, then, you know, check out Visual Studio Code and go check out the extensions and pick.
- 50:43Basically, you don't just pull up the extensions and you're like number two, right?
- 50:48I guess search for Python if it doesn't show up.
- 50:49There's more than just your extension for Python.
- 50:53So, yours is – what's the exact name?
- 50:55Is it –
- 50:55It's just Python.
- 50:57Just Python.
- 50:58Yeah.
- 50:58So, you got the straight up name all by itself.
- 51:03Awesome.
- 51:04Okay.
- 51:04So, let me ask you two questions before we go and then give you a chance to sort of let people know what they can do to get started or help out.
- 51:11I'm not really expecting a surprise here, but what's your favorite editor when you write some Python code?
- 51:17I would say it is Visual Studio Code simple.
- 51:20It's something I can use across both the Mac and Windows, and it's very lightweight.
- 51:26I can go to a different PC, just download it, install, done.
- 51:30So, it's just super lightweight and easy to use.
- 51:33Okay.
- 51:33Yeah, very nice.
- 51:34And favorite PyPI package?
- 51:36I would say there are two.
- 51:37One is the Jedi.
- 51:39Well, it's not something that I use on a day-to-day basis on every project, but it's something that I've used in the Python.
- 51:47And I really value that.
- 51:49And as a developer, the favorite package would be requests.
- 51:54Yeah.
- 51:55That's definitely a popular one.
- 51:56That's a really, really great package.
- 51:58All right, Don.
- 51:59So, final call to action.
- 52:01Like, you're looking for people to work on this project, help out, give you feedback.
- 52:04What can the listeners do?
- 52:06Oh, yes.
- 52:06Any contribution is really welcome.
- 52:08At this stage, there are two major items that I need to work on.
- 52:12One is profiling, and that doesn't look too complicated.
- 52:15The other one is adding support for remote interpreters.
- 52:19So, this is where you do not have Python installed locally, but it's running on a different machine, maybe on a Docker container or something.
- 52:28And you're editing your Python files locally.
- 52:31So, that's something that plenty of people have requested.
- 52:34So, it's not just that.
- 52:35So, any contribution, really welcome.
- 52:37I'd really appreciate that.
- 52:38All right.
- 52:39And, yeah, the future for the extension, where are you going with this thing?
- 52:43I'd just keep trying to extend it and adding more capabilities.
- 52:47So, the way I do this is by looking at other IDEs and adding capabilities from there, for instance.
- 52:53Looking at what Visual Studio or PDVS or PyCharm support, and I'd say, oh, maybe I could add that and try to plug it in here.
- 53:03All right.
- 53:03Very cool.
- 53:04So, thank you for contributing this, Editor.
- 53:07It's definitely got a lot of features, and it's pretty unique.
- 53:10So, thanks for creating it, and thanks for sharing your story with everyone.
- 53:13Thank you very much for having me, and thank you for sharing this with everyone else.
- 53:18So, yes.
- 53:19Absolutely.
- 53:19Happy to.
- 53:20It's a cool project.
- 53:21Talk to you later.
- 53:21This has been another episode of Talk Python To Me.
- 53:25Today's guest has been Don Jayamane, and this episode has been sponsored by Talk Python Training and Hired.
- 53:32Thank you both for supporting the show.
- 53:34Are you or a colleague trying to learn Python?
- 53:37Have you tried books and videos that just left you bored by covering topics point by point?
- 53:41Well, check out my online course, Python Jumpstart, by building 10 apps at talkpython.fm/course to experience a more engaging way to learn Python.
- 53:50And if you're looking for something a little more advanced, try my Write Pythonic Code course at talkpython.fm/pythonic.
- 53:57Hired wants to help you find your next big thing.
- 54:00Visit Hired.com slash talkpythontome to get five or more offers with salary and equity presented right up front and a special listener signing bonus of $2,000.
- 54:09Be sure to subscribe to the show.
- 54:11Open your favorite podcatcher and search for Python.
- 54:14We should be right at the top.
- 54:15Our theme music is Developers, Developers, Developers by Corey Smith, who goes by Smix.
- 54:29Corey just recently started selling his tracks on iTunes, so I recommend you check it out at talkpython.fm/music.
- 54:36You can browse his tracks he has for sale on iTunes and listen to the full-length version of the theme song.
- 54:41This is your host, Michael Kennedy.
- 54:43Thanks so much for listening.
- 54:45I really appreciate it.
- 54:46Smix, let's get out of here.
- 54:48Outro Music.
- 55:10Thank you.