title
Visual Studio Code (Mac) - Setting up a Python Development Environment and Complete Overview

description
In this Python Programming Tutorial, we will be learning how to set up a Python development environment in VSCode on MacOS. VSCode is a very nice free editor for writing Python applications and many developers are now switching over to this editor. In this video, we will learn how to install VSCode, get the Python extension installed, how to change Python interpreters, create virtual environments, format/lint our code, how to use Git within VSCode, how to debug our programs, how unit testing works, and more. We have a lot to cover, so let's go ahead and get started... VSCode on Windows - https://youtu.be/-nh9rCzPJ20 Timestamps for topics in this tutorial: Installation - 1:11 Python Extension - 6:21 Switching Interpreters - 10:16 Changing Color Themes - 13:08 VSCode Settings - 17:12 Set Default Python - 22:24 Using Virtual Environments - 25:52 IntelliSense - 30:28 Code Formatting - 33:08 Code Linting - 38:01 Code Runner Extension - 40:45 Git Integration - 49:05 Debugging - 58:15 Unit Testing - 1:02:38 Zen Mode - 1:10:42 VSCode Site - https://code.visualstudio.com/ Python Installation - https://youtu.be/YYXdXT2l-Gg Source Code Pro - https://github.com/adobe-fonts/source-code-pro VENV Tutorial - https://youtu.be/Kg1Yvry_Ydk Git Tutorial - https://youtu.be/HVsySz-h9r4 Unit Testing Tutorial - https://youtu.be/6tNS--WetLI My VSCode Settings - http://bit.ly/vscode-coreyms ✅ Support My Channel Through Patreon: https://www.patreon.com/coreyms ✅ Become a Channel Member: https://www.youtube.com/channel/UCCezIgC97PvUuR4_gbFUs5g/join ✅ One-Time Contribution Through PayPal: https://goo.gl/649HFY ✅ Cryptocurrency Donations: Bitcoin Wallet - 3MPH8oY2EAgbLVy7RBMinwcBntggi7qeG3 Ethereum Wallet - 0x151649418616068fB46C3598083817101d3bCD33 Litecoin Wallet - MPvEBY5fxGkmPQgocfJbxP6EmTo5UUXMot ✅ Corey's Public Amazon Wishlist http://a.co/inIyro1 ✅ Equipment I Use and Books I Recommend: https://www.amazon.com/shop/coreyschafer ▶️ You Can Find Me On: My Website - http://coreyms.com/ My Second Channel - https://www.youtube.com/c/coreymschafer Facebook - https://www.facebook.com/CoreyMSchafer Twitter - https://twitter.com/CoreyMSchafer Instagram - https://www.instagram.com/coreymschafer/ #Python #VSCode

detail
{'title': 'Visual Studio Code (Mac) - Setting up a Python Development Environment and Complete Overview', 'heatmap': [{'end': 3454.948, 'start': 3405.6, 'weight': 1}], 'summary': 'Tutorial on visual studio code for python development on mac covers installation, python extension, customization, virtual environments, code formatting, optimizing output, testing features, and git integration, providing a comprehensive overview and practical guidance.', 'chapters': [{'end': 378.696, 'segs': [{'end': 35.239, 'src': 'embed', 'start': 0.229, 'weight': 0, 'content': [{'end': 1.21, 'text': "Hey there, how's it going everybody?", 'start': 0.229, 'duration': 0.981}, {'end': 6.014, 'text': "In this video, we're going to be learning how to install Visual Studio Code and set up a Python development environment.", 'start': 1.57, 'duration': 4.444}, {'end': 10.598, 'text': "We're also going to go over the different features of this editor to see why so many people are switching over to this.", 'start': 6.315, 'duration': 4.283}, {'end': 17.304, 'text': "So we'll cover how to switch between Python interpreters, how to debug applications, learn how Git integration works,", 'start': 10.999, 'duration': 6.305}, {'end': 20.027, 'text': 'look at unit testing capabilities and a few other things.', 'start': 17.304, 'duration': 2.723}, {'end': 25.992, 'text': "So I've had a ton of comments and requests to cover VS Code, and it just seems like so many people have switched over.", 'start': 20.447, 'duration': 5.545}, {'end': 30.515, 'text': "I don't know how many of you all listen to Talk Python podcast with Michael Kennedy,", 'start': 26.012, 'duration': 4.503}, {'end': 35.239, 'text': 'but at the end of every show he always asks his guests which editor or IDE that they prefer to use.', 'start': 30.515, 'duration': 4.724}], 'summary': 'Learn to install visual studio code, set up python dev environment, and explore its features including python interpreters, debugging, git integration, and unit testing capabilities.', 'duration': 35.01, 'max_score': 0.229, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/06I63_p-2A4/pics/06I63_p-2A4229.jpg'}, {'end': 105.333, 'src': 'embed', 'start': 63.72, 'weight': 3, 'content': [{'end': 68.263, 'text': "Now, in this video we're going to be covering how to use VS Code on Mac, but if you're using Windows,", 'start': 63.72, 'duration': 4.543}, {'end': 71.005, 'text': "then I'll be sure to leave a link to that video in the description section below.", 'start': 68.263, 'duration': 2.742}, {'end': 73.847, 'text': "First of all, let's install Visual Studio Code.", 'start': 71.705, 'duration': 2.142}, {'end': 80.814, 'text': "I've got their website pulled up here in my browser, and that is at code.visualstudio.com.", 'start': 74.368, 'duration': 6.446}, {'end': 85.238, 'text': 'Visual Studio Code is different from Visual Studio, which is a full IDE.', 'start': 80.954, 'duration': 4.284}, {'end': 91.043, 'text': 'VS Code is a lighter weight editor that can be extended with plugins for whatever you need.', 'start': 85.898, 'duration': 5.145}, {'end': 94.947, 'text': 'Be sure that you search for Visual Studio Code and not just Visual Studio.', 'start': 91.143, 'duration': 3.804}, {'end': 100.43, 'text': "Now, I'll also have a link to this page in the description section below to avoid any confusion there.", 'start': 95.487, 'duration': 4.943}, {'end': 103.211, 'text': "Now, VS Code is free, so we don't need to buy anything.", 'start': 100.77, 'duration': 2.441}, {'end': 105.333, 'text': 'We just need to download it and install it.', 'start': 103.331, 'duration': 2.002}], 'summary': 'Tutorial on using vs code on mac, with emphasis on installation and differentiation from visual studio.', 'duration': 41.613, 'max_score': 63.72, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/06I63_p-2A4/pics/06I63_p-2A463720.jpg'}, {'end': 280.329, 'src': 'embed', 'start': 252.947, 'weight': 5, 'content': [{'end': 257.17, 'text': 'Now the third icon here on the activity bar is our Git integration.', 'start': 252.947, 'duration': 4.223}, {'end': 261.394, 'text': "And we'll take a look at this here in a bit and see how to push some code up to GitHub.", 'start': 257.491, 'duration': 3.903}, {'end': 263.956, 'text': 'But we are going to skip it for now.', 'start': 262.194, 'duration': 1.762}, {'end': 267.339, 'text': 'Now the next icon here is the debugging icon.', 'start': 264.476, 'duration': 2.863}, {'end': 272.523, 'text': 'Now this is one very nice feature that VS Code has over other simple editors.', 'start': 267.699, 'duration': 4.824}, {'end': 276.586, 'text': 'I find the debugging pretty intuitive and easy within VS Code.', 'start': 272.883, 'duration': 3.703}, {'end': 280.329, 'text': "And we'll take a look at that here in a bit as well when we debug some code.", 'start': 276.966, 'duration': 3.363}], 'summary': 'Vs code offers git integration and intuitive debugging features, which we will explore further.', 'duration': 27.382, 'max_score': 252.947, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/06I63_p-2A4/pics/06I63_p-2A4252947.jpg'}, {'end': 319.163, 'src': 'embed', 'start': 295.771, 'weight': 6, 'content': [{'end': 302.994, 'text': 'Okay, so right off the bat, it shows us some recommended extensions here at the top, and then it shows us some popular extensions right below that.', 'start': 295.771, 'duration': 7.223}, {'end': 305.835, 'text': 'Now, you might not have these recommended extensions.', 'start': 303.554, 'duration': 2.281}, {'end': 308.096, 'text': 'If you do, then they might not be the same ones.', 'start': 306.215, 'duration': 1.881}, {'end': 315.379, 'text': "So for example, we can see that this is recommending Heroku CLI to me, and that's because I have the Heroku CLI installed.", 'start': 308.576, 'duration': 6.803}, {'end': 319.163, 'text': 'And if I actually click on one of these recommended extensions,', 'start': 315.879, 'duration': 3.284}], 'summary': 'The transcript discusses recommended and popular extensions, with a specific example of heroku cli recommendation based on installation.', 'duration': 23.392, 'max_score': 295.771, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/06I63_p-2A4/pics/06I63_p-2A4295771.jpg'}], 'start': 0.229, 'title': 'Setting up visual studio code for python development on mac', 'summary': 'Covers the installation of visual studio code and python environment setup, highlighting features like debugging, git integration, and unit testing. it also includes setting up visual studio code on a mac, covering downloading, installation, interface overview, and managing extensions, with a note on differences between mac and windows.', 'chapters': [{'end': 48.949, 'start': 0.229, 'title': 'Installing visual studio code for python development', 'summary': 'Discusses the installation of visual studio code and setting up a python development environment, highlighting the features of the editor, including switching between python interpreters, debugging applications, git integration, and unit testing capabilities, with a growing trend towards vs code usage.', 'duration': 48.72, 'highlights': ['Visual Studio Code gaining popularity with increasing number of people switching over and positive feedback from influential figures like Michael Kennedy from Talk Python podcast.', 'Coverage of essential features of Visual Studio Code for Python development, including switching between interpreters, debugging applications, and Git integration.', "Discussion of the growing trend in the usage of Visual Studio Code for Python development, based on the speaker's positive experience and potential future use in their videos."]}, {'end': 378.696, 'start': 49.31, 'title': 'Setting up visual studio code on mac', 'summary': 'Covers the process of setting up visual studio code on a mac, including downloading, installation, and an overview of the interface, emphasizing the activity bar and managing extensions, with mentions of differences between mac and windows.', 'duration': 329.386, 'highlights': ['Visual Studio Code is different from Visual Studio, a full IDE, and it can be extended with plugins for various needs, with the emphasis on being free to download and install.', 'The chapter provides a step-by-step guide on how to download and install Visual Studio Code on a Mac, including downloading the zip file, unzipping, and placing it in the applications folder.', 'The video gives an overview of the welcome screen and the activity bar in Visual Studio Code, highlighting the explorer, search, Git integration, debugging, and managing extensions functionalities.', 'The recommended extensions feature in Visual Studio Code is explained, including how it suggests plugins based on existing installations, with examples of recommended extensions related to Heroku CLI and Sublime Text Key Mapping.']}], 'duration': 378.467, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/06I63_p-2A4/pics/06I63_p-2A4229.jpg', 'highlights': ['Visual Studio Code gaining popularity with increasing number of people switching over and positive feedback from influential figures like Michael Kennedy from Talk Python podcast.', 'Coverage of essential features of Visual Studio Code for Python development, including switching between interpreters, debugging applications, and Git integration.', "Discussion of the growing trend in the usage of Visual Studio Code for Python development, based on the speaker's positive experience and potential future use in their videos.", 'Visual Studio Code is different from Visual Studio, a full IDE, and it can be extended with plugins for various needs, with the emphasis on being free to download and install.', 'The chapter provides a step-by-step guide on how to download and install Visual Studio Code on a Mac, including downloading the zip file, unzipping, and placing it in the applications folder.', 'The video gives an overview of the welcome screen and the activity bar in Visual Studio Code, highlighting the explorer, search, Git integration, debugging, and managing extensions functionalities.', 'The recommended extensions feature in Visual Studio Code is explained, including how it suggests plugins based on existing installations, with examples of recommended extensions related to Heroku CLI and Sublime Text Key Mapping.']}, {'end': 733.785, 'segs': [{'end': 409.559, 'src': 'embed', 'start': 379.256, 'weight': 0, 'content': [{'end': 382.098, 'text': "And now let's look at these popular extensions here.", 'start': 379.256, 'duration': 2.842}, {'end': 385.641, 'text': "Now the extension that we're really after right now is the Python extension.", 'start': 382.459, 'duration': 3.182}, {'end': 389.464, 'text': 'And this is the most popular extension on VS code by far.', 'start': 386.061, 'duration': 3.403}, {'end': 394.367, 'text': 'So we can see here, this is now sorted by popularity.', 'start': 389.864, 'duration': 4.503}, {'end': 401.953, 'text': "If I want to be sure that it's sorted by popularity, then I could click up here and these three dots here and get this drop down.", 'start': 394.688, 'duration': 7.265}, {'end': 404.855, 'text': 'And now we can see that we can sort these in some way.', 'start': 402.373, 'duration': 2.482}, {'end': 409.559, 'text': 'So I can show the extensions by certain criteria.', 'start': 405.215, 'duration': 4.344}], 'summary': 'The python extension is the most popular on vs code, sorted by popularity.', 'duration': 30.303, 'max_score': 379.256, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/06I63_p-2A4/pics/06I63_p-2A4379256.jpg'}, {'end': 456.104, 'src': 'embed', 'start': 426.232, 'weight': 1, 'content': [{'end': 428.593, 'text': "And the next one below that doesn't even have half of that.", 'start': 426.232, 'duration': 2.361}, {'end': 431.776, 'text': 'So this extension is definitely the most popular right now.', 'start': 428.653, 'duration': 3.123}, {'end': 440.559, 'text': 'So we can see in the description here that it says that this extension adds support for linting debugging, formatting, unit testing and IntelliSense.', 'start': 432.136, 'duration': 8.423}, {'end': 445.94, 'text': "And IntelliSense is what shows us what attributes and methods we can use while we're typing.", 'start': 440.919, 'duration': 5.021}, {'end': 448.581, 'text': 'And it also gives us information about those as well.', 'start': 446.26, 'duration': 2.321}, {'end': 451.102, 'text': "And we'll see that in action in just a bit.", 'start': 448.961, 'duration': 2.141}, {'end': 456.104, 'text': "so I'm going to install this Python extension, so I'll just click install here.", 'start': 451.542, 'duration': 4.562}], 'summary': 'The most popular extension adds support for linting, debugging, formatting, unit testing, and intellisense.', 'duration': 29.872, 'max_score': 426.232, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/06I63_p-2A4/pics/06I63_p-2A4426232.jpg'}, {'end': 596.118, 'src': 'embed', 'start': 548.353, 'weight': 2, 'content': [{'end': 554.856, 'text': 'So by default, our Python extension is going to use the first Python interpreter that it finds on our system path.', 'start': 548.353, 'duration': 6.503}, {'end': 560.179, 'text': "Now, if you don't have Python 3 installed, then this might be using Python 2.", 'start': 555.256, 'duration': 4.923}, {'end': 562.6, 'text': "And if it is, then I'll show you how to change that in just a bit.", 'start': 560.179, 'duration': 2.421}, {'end': 565.102, 'text': "But for now, let's just try to run this.", 'start': 563.221, 'duration': 1.881}, {'end': 571.006, 'text': 'So to do this, we can just right-click anywhere here in our module.', 'start': 565.502, 'duration': 5.504}, {'end': 574.568, 'text': "And towards the bottom, we'll see a couple of run lines here.", 'start': 571.446, 'duration': 3.122}, {'end': 577.369, 'text': 'So run current test file, run Python in terminal.', 'start': 574.648, 'duration': 2.721}, {'end': 580.911, 'text': 'run selection line in Python terminal.', 'start': 578.61, 'duration': 2.301}, {'end': 584.212, 'text': 'we want this one here run Python file in terminal,', 'start': 580.911, 'duration': 3.301}, {'end': 592.156, 'text': "so I'm going to click on that and that should run the Python file that we have here in our terminal.", 'start': 584.212, 'duration': 7.944}, {'end': 596.118, 'text': "now we're gonna look at how to use keyboard shortcuts to run a code here in just a bit.", 'start': 592.156, 'duration': 3.962}], 'summary': 'Python extension uses first python interpreter on system path. can switch from python 2 to 3. can run python file in terminal using keyboard shortcuts.', 'duration': 47.765, 'max_score': 548.353, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/06I63_p-2A4/pics/06I63_p-2A4548353.jpg'}, {'end': 729.122, 'src': 'embed', 'start': 700.803, 'weight': 4, 'content': [{'end': 707.97, 'text': "So again, I'm just going to click down here in the bottom left and go and find Python 3.7 that I want to use.", 'start': 700.803, 'duration': 7.167}, {'end': 711.033, 'text': "So I'll click on that, and now we are using Python 3.7 again.", 'start': 708.13, 'duration': 2.903}, {'end': 715.756, 'text': "Now if you don't have Python 3 installed, then I definitely recommend installing it.", 'start': 711.954, 'duration': 3.802}, {'end': 719.738, 'text': "If you'd like to see how to install that on both Mac and Windows,", 'start': 716.336, 'duration': 3.402}, {'end': 723.539, 'text': 'then I do have a separate video where I show how to do that for both operating systems.', 'start': 719.738, 'duration': 3.801}, {'end': 729.122, 'text': "So I'll be sure to put a link to that video in the description section below if anyone needs to see how to install that.", 'start': 723.859, 'duration': 5.263}], 'summary': 'Recommend installing python 3.7; separate video for installation on mac and windows available.', 'duration': 28.319, 'max_score': 700.803, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/06I63_p-2A4/pics/06I63_p-2A4700803.jpg'}], 'start': 379.256, 'title': 'Python extension in vs code', 'summary': 'Discusses the popularity of the python extension in vs code, with nearly 41 million installs, and explains sorting options and functionalities. it also covers the installation process, changing python interpreters, and the significance of having python 3 installed, using python 2.7 and 3.7 as examples.', 'chapters': [{'end': 445.94, 'start': 379.256, 'title': 'Vs code python extension overview', 'summary': 'Discusses the popularity of the python extension in vs code, which has nearly 41 million installs, making it the most popular extension. it explains the sorting options and the functionalities provided by the python extension.', 'duration': 66.684, 'highlights': ['The Python extension in VS Code is the most popular with nearly 41 million installs.', 'The extension adds support for linting, debugging, formatting, unit testing, and IntelliSense.']}, {'end': 733.785, 'start': 446.26, 'title': 'Python extension installation and python interpreter usage', 'summary': 'Explains the process of installing a python extension and changing python interpreters, using python 2.7 and 3.7 as examples, demonstrating how to run python code and the importance of having python 3 installed.', 'duration': 287.525, 'highlights': ['The process of installing a Python extension and changing Python interpreters The speaker demonstrates the process of installing a Python extension and changing Python interpreters between versions 2.7 and 3.7, providing practical examples and usage instructions.', 'Running Python code and checking Python versions The chapter explains how to run Python code using keyboard shortcuts and right-click options, displaying the Python version and its location on the machine, showcasing output examples with greetings.', 'Importance of installing Python 3 and linking to installation tutorial The importance of installing Python 3 is emphasized, with a link provided to a separate tutorial on how to install Python 3 for both Mac and Windows, including setting it in the path.']}], 'duration': 354.529, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/06I63_p-2A4/pics/06I63_p-2A4379256.jpg', 'highlights': ['The Python extension in VS Code is the most popular with nearly 41 million installs.', 'The extension adds support for linting, debugging, formatting, unit testing, and IntelliSense.', 'The process of installing a Python extension and changing Python interpreters.', 'Running Python code using keyboard shortcuts and right-click options.', 'Importance of installing Python 3 and linking to installation tutorial.']}, {'end': 986.182, 'segs': [{'end': 778.46, 'src': 'embed', 'start': 734.145, 'weight': 0, 'content': [{'end': 742.391, 'text': "So, once it's in your path, then VS Code should automatically pick that up and allow you to use that by clicking down here in the bottom left,", 'start': 734.145, 'duration': 8.246}, {'end': 744.152, 'text': 'and it should just automatically show up there.', 'start': 742.391, 'duration': 1.761}, {'end': 753.719, 'text': 'Now, when I changed my interpreter, you may or may not have noticed that VS Code created a folder inside of my project directory here called .', 'start': 744.512, 'duration': 9.207}, {'end': 760.564, 'text': 'VSCode And that directory within it has a settings file settings.json.', 'start': 753.719, 'duration': 6.845}, {'end': 766.829, 'text': 'so these are settings specific to our current workspace or this current project folder.', 'start': 760.564, 'duration': 6.265}, {'end': 770.293, 'text': "so i'm going to open that up over here and we can see that right now.", 'start': 766.829, 'duration': 3.464}, {'end': 778.46, 'text': "it's setting that python interpreter that we just set, but what if we wanted to use a certain python interpreter by default for every single project?", 'start': 770.293, 'duration': 8.167}], 'summary': 'Vs code automatically picks up python interpreter in project directory and allows settings specific to current workspace.', 'duration': 44.315, 'max_score': 734.145, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/06I63_p-2A4/pics/06I63_p-2A4734145.jpg'}, {'end': 837.295, 'src': 'embed', 'start': 799.715, 'weight': 1, 'content': [{'end': 803.137, 'text': 'Now, there are several built-in color themes that we can use.', 'start': 799.715, 'duration': 3.422}, {'end': 806.678, 'text': "So to change your color theme, let's open up our command palette.", 'start': 803.517, 'duration': 3.161}, {'end': 810.78, 'text': "So this is the first time that we've opened the command palette, but it is extremely useful.", 'start': 806.978, 'duration': 3.802}, {'end': 815.262, 'text': 'You can basically access everything within VS Code through the command palette.', 'start': 811.12, 'duration': 4.142}, {'end': 824.026, 'text': "So we can access that by pressing Command Shift P, and it's going to open up the command palette here to where we can type in a command.", 'start': 815.662, 'duration': 8.364}, {'end': 834.353, 'text': "so now, if we want to change some color themes, then I'll just type in color and we can see that it starts auto filling some results here.", 'start': 824.486, 'duration': 9.867}, {'end': 837.295, 'text': 'so we can see that color theme is right down here.', 'start': 834.353, 'duration': 2.942}], 'summary': 'Vs code offers various built-in color themes accessible through the command palette by pressing command shift p, making it extremely useful for customization.', 'duration': 37.58, 'max_score': 799.715, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/06I63_p-2A4/pics/06I63_p-2A4799715.jpg'}, {'end': 929.02, 'src': 'embed', 'start': 904.825, 'weight': 6, 'content': [{'end': 911.208, 'text': "So this predon theme kit here, if I install that, it's also the one that has the most installs.", 'start': 904.825, 'duration': 6.383}, {'end': 914.19, 'text': "So I'm just going to choose the basic predon there.", 'start': 911.589, 'duration': 2.601}, {'end': 917.271, 'text': 'And now, if I go back to my script,', 'start': 914.67, 'duration': 2.601}, {'end': 923.935, 'text': "then we can see that the syntax highlighting changes to something that probably looks more familiar if you've seen my videos before.", 'start': 917.271, 'duration': 6.664}, {'end': 926.718, 'text': "and there's plenty of other popular color schemes out there.", 'start': 924.375, 'duration': 2.343}, {'end': 929.02, 'text': 'so definitely look around and see what you like.', 'start': 926.718, 'duration': 2.302}], 'summary': 'The predon theme kit has the most installs and offers various color schemes for syntax highlighting.', 'duration': 24.195, 'max_score': 904.825, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/06I63_p-2A4/pics/06I63_p-2A4904825.jpg'}, {'end': 991.183, 'src': 'embed', 'start': 964.516, 'weight': 7, 'content': [{'end': 971.038, 'text': 'if you ever want to sort these, you can just click on this drop down right here and we can sort by install count, rating and name.', 'start': 964.516, 'duration': 6.522}, {'end': 976.179, 'text': "So I'm going to sort by install count and it looks like it already was sorted by install count.", 'start': 971.378, 'duration': 4.801}, {'end': 980.74, 'text': 'Now the one that I like here is called AYU.', 'start': 976.539, 'duration': 4.201}, {'end': 986.182, 'text': "So I'm going to install that and that's going to be the one that I use.", 'start': 981.241, 'duration': 4.941}, {'end': 991.183, 'text': "So once we get that, then I'm just going to choose that.", 'start': 986.542, 'duration': 4.641}], 'summary': 'Sorting by install count, selecting ayu for installation.', 'duration': 26.667, 'max_score': 964.516, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/06I63_p-2A4/pics/06I63_p-2A4964516.jpg'}], 'start': 734.145, 'title': 'Customizing vs code', 'summary': 'Explains setting python interpreter, global user settings, color theme changes, and customizing themes in vs code. it details using vs code for every project, changing the interpreter, accessing color themes through the command palette, and installing popular theme kits and file icon themes.', 'chapters': [{'end': 778.46, 'start': 734.145, 'title': 'Setting python interpreter in vs code', 'summary': 'Explains how to set a python interpreter in vs code, allowing users to use it by default for every project, with details on the settings file and the process of changing the interpreter.', 'duration': 44.315, 'highlights': ['VS Code automatically picks up the Python interpreter in the path, enabling its use by clicking in the bottom left.', 'Changing the interpreter in VS Code creates a folder named .VSCode in the project directory with a settings file, settings.json, specific to the current workspace.', 'The settings file, settings.json, contains the configuration for the Python interpreter set for the current project.']}, {'end': 852.345, 'start': 778.86, 'title': 'Global user settings and color theme changes', 'summary': 'Explains how to set global user settings and make changes to the color theme in vs code, with the command palette being a useful tool for accessing and selecting color themes.', 'duration': 73.485, 'highlights': ['The command palette in VS Code is an extremely useful tool for accessing everything within the editor, including changing color themes.', "To change the color theme, users can open the command palette by pressing Command Shift P and then type 'color' to access and select from several built-in color themes.", 'The feature of auto-filling results in the command palette allows users to preview the color themes by navigating up and down using the arrow keys.']}, {'end': 986.182, 'start': 852.765, 'title': 'Customizing vs code themes and file icons', 'summary': 'Discusses customizing themes and file icons in vs code, including installing the predawn theme kit with the most installs and the ayu file icon theme.', 'duration': 133.417, 'highlights': ['Installing the Predawn theme kit with the most installs The Predawn theme kit is chosen for installation as it has the most installs.', 'Installing the AYU file icon theme The AYU file icon theme is installed after sorting by install count and chosen for use.']}], 'duration': 252.037, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/06I63_p-2A4/pics/06I63_p-2A4734145.jpg', 'highlights': ['VS Code automatically picks up the Python interpreter in the path, enabling its use by clicking in the bottom left.', 'The command palette in VS Code is an extremely useful tool for accessing everything within the editor, including changing color themes.', 'Changing the interpreter in VS Code creates a folder named .VSCode in the project directory with a settings file, settings.json, specific to the current workspace.', "To change the color theme, users can open the command palette by pressing Command Shift P and then type 'color' to access and select from several built-in color themes.", 'The feature of auto-filling results in the command palette allows users to preview the color themes by navigating up and down using the arrow keys.', 'The settings file, settings.json, contains the configuration for the Python interpreter set for the current project.', 'Installing the Predawn theme kit with the most installs The Predawn theme kit is chosen for installation as it has the most installs.', 'Installing the AYU file icon theme The AYU file icon theme is installed after sorting by install count and chosen for use.']}, {'end': 1514.329, 'segs': [{'end': 1031.976, 'src': 'embed', 'start': 986.542, 'weight': 0, 'content': [{'end': 991.183, 'text': "So once we get that, then I'm just going to choose that.", 'start': 986.542, 'duration': 4.641}, {'end': 998.625, 'text': "Now that also changed our color theme, so I'm just going to change our color theme back to pre-dawn really quick.", 'start': 991.503, 'duration': 7.122}, {'end': 999.885, 'text': "So I'll click on pre-dawn there.", 'start': 998.725, 'duration': 1.16}, {'end': 1007.967, 'text': "So now I'm going to close down those two items there, go back to my file explorer and now we can see that this still looks the same.", 'start': 1000.305, 'duration': 7.662}, {'end': 1010.328, 'text': "but now I'm going to open up that command palette again.", 'start': 1007.967, 'duration': 2.361}, {'end': 1015.429, 'text': 'And we can see that it has my recently used commands here for color theme and file icon theme.', 'start': 1010.928, 'duration': 4.501}, {'end': 1021.291, 'text': "Now I'm going to click on that file icon theme and change the file icon theme to that AYU.", 'start': 1015.77, 'duration': 5.521}, {'end': 1022.672, 'text': 'And I like that one.', 'start': 1021.771, 'duration': 0.901}, {'end': 1029.773, 'text': 'We can see that it changed the icons over here and gives us a different icon here for open folders and stuff like that.', 'start': 1022.712, 'duration': 7.061}, {'end': 1031.976, 'text': 'Okay, so I think that this looks pretty good.', 'start': 1030.314, 'duration': 1.662}], 'summary': 'Demonstrating changing color and file icon themes in vs code.', 'duration': 45.434, 'max_score': 986.542, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/06I63_p-2A4/pics/06I63_p-2A4986542.jpg'}, {'end': 1079.454, 'src': 'embed', 'start': 1051.196, 'weight': 1, 'content': [{'end': 1053.177, 'text': 'and clicking on this gear icon.', 'start': 1051.196, 'duration': 1.981}, {'end': 1056.219, 'text': "So I'm going to click on this gear icon.", 'start': 1053.577, 'duration': 2.642}, {'end': 1064.604, 'text': 'And the other settings here, there are command palette, settings, extensions, keyboard shortcuts, color theme.', 'start': 1056.759, 'duration': 7.845}, {'end': 1067.105, 'text': 'So we can also change those things from here.', 'start': 1064.924, 'duration': 2.181}, {'end': 1070.367, 'text': "But I'm going to click here on settings and open these.", 'start': 1067.445, 'duration': 2.922}, {'end': 1072.368, 'text': 'And here we have our user settings.', 'start': 1070.767, 'duration': 1.601}, {'end': 1079.454, 'text': 'now. they used to have this set up to where it opened up the default settings and your user settings side by side in json format,', 'start': 1072.808, 'duration': 6.646}], 'summary': 'Access and modify settings in vs code, including user settings in json format.', 'duration': 28.258, 'max_score': 1051.196, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/06I63_p-2A4/pics/06I63_p-2A41051196.jpg'}, {'end': 1139.933, 'src': 'embed', 'start': 1110.179, 'weight': 5, 'content': [{'end': 1113.222, 'text': "And now it's going to open our user settings in JSON format.", 'start': 1110.179, 'duration': 3.043}, {'end': 1119.484, 'text': 'So since these are our user settings, this is only going to show us the settings that we have changed from the default.', 'start': 1113.622, 'duration': 5.862}, {'end': 1124.206, 'text': "So I've changed the zoom level here by zooming in and making the text larger.", 'start': 1119.824, 'duration': 4.382}, {'end': 1130.909, 'text': 'Now we have also changed the color theme here to predawn and the icon theme to AYU.', 'start': 1125.246, 'duration': 5.663}, {'end': 1134.31, 'text': "And I have some other preferred settings that I'm going to show in just a bit.", 'start': 1131.269, 'duration': 3.041}, {'end': 1139.933, 'text': 'Now, I do wish that they still showed the default settings side by side by default,', 'start': 1134.81, 'duration': 5.123}], 'summary': 'User settings in json format show changes: zoom level, color theme, and icon theme.', 'duration': 29.754, 'max_score': 1110.179, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/06I63_p-2A4/pics/06I63_p-2A41110179.jpg'}, {'end': 1356.164, 'src': 'embed', 'start': 1332.069, 'weight': 2, 'content': [{'end': 1340.034, 'text': "If I want to change Python settings, I can scroll all the way down here to Python and there's a bunch of Python specific settings here.", 'start': 1332.069, 'duration': 7.965}, {'end': 1344.437, 'text': 'So I think this is just much easier to see what is available to you.', 'start': 1340.414, 'duration': 4.023}, {'end': 1349.26, 'text': 'Now we started looking at these settings because I wanted to change my Python path by default.', 'start': 1344.837, 'duration': 4.423}, {'end': 1353.683, 'text': 'So to where it uses a certain version of Python for every file by default.', 'start': 1349.68, 'duration': 4.003}, {'end': 1356.164, 'text': 'So I want to change that Python path.', 'start': 1354.063, 'duration': 2.101}], 'summary': 'Access python settings to change default python path.', 'duration': 24.095, 'max_score': 1332.069, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/06I63_p-2A4/pics/06I63_p-2A41332069.jpg'}], 'start': 986.542, 'title': 'Customizing color and file icon themes', 'summary': 'Demonstrates how to customize color and file icon themes, emphasizing changing color themes and file icon themes to create a visually appealing interface. it also discusses accessing and modifying user settings in vs code, including changing preferences, accessing default settings, and customizing the python path.', 'chapters': [{'end': 1031.976, 'start': 986.542, 'title': 'Customizing color and file icon themes', 'summary': 'Demonstrates how to customize color and file icon themes, with a focus on changing color themes and file icon themes, resulting in a visually appealing interface.', 'duration': 45.434, 'highlights': ['The chapter shows how to change the color theme to pre-dawn, then switches the file icon theme to AYU, resulting in a visually appealing interface with different icons and open folders.', 'Demonstrates using the command palette to access recently used commands for color theme and file icon theme.', "Illustrates the process of changing the color theme and reverting it back to pre-dawn, showcasing the impact on the interface's appearance."]}, {'end': 1514.329, 'start': 1032.415, 'title': 'Vs code user settings', 'summary': 'Discusses how to access and modify user settings in vs code to optimize the user experience, including changing preferences, accessing default settings, and customizing the python path.', 'duration': 481.914, 'highlights': ['Accessing user settings and default settings in VS Code The speaker demonstrates how to access user settings and default settings by clicking on the gear icon and modifying the workbench settings to display both default and user settings side by side.', 'Modifying user settings using JSON format The speaker expresses a preference for modifying user settings using JSON format instead of the UI, citing better understanding and control over changes.', 'Customizing Python path in user settings The speaker explains the process of customizing the Python path in user settings, allowing for a specific version of Python to be used by default for every file.']}], 'duration': 527.787, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/06I63_p-2A4/pics/06I63_p-2A4986542.jpg', 'highlights': ['Demonstrates using the command palette to access recently used commands for color theme and file icon theme.', 'Accessing user settings and default settings in VS Code by clicking on the gear icon and modifying the workbench settings.', 'Customizing Python path in user settings to allow for a specific version of Python to be used by default for every file.', "Illustrates the process of changing the color theme and reverting it back to pre-dawn, showcasing the impact on the interface's appearance.", 'The chapter shows how to change the color theme to pre-dawn, then switches the file icon theme to AYU, resulting in a visually appealing interface with different icons and open folders.', 'Modifying user settings using JSON format for better understanding and control over changes.']}, {'end': 1985.467, 'segs': [{'end': 1581.666, 'src': 'embed', 'start': 1557.337, 'weight': 1, 'content': [{'end': 1563.038, 'text': "Well, the most common reason is because it's usually a good idea to create a virtual environment for your projects.", 'start': 1557.337, 'duration': 5.701}, {'end': 1569.999, 'text': "So let's see how to create a virtual environment, and then we'll set that as our interpreter for this specific project.", 'start': 1563.658, 'duration': 6.341}, {'end': 1574.342, 'text': "So I'll create one for the current project that we currently have open.", 'start': 1570.419, 'duration': 3.923}, {'end': 1577.924, 'text': "So to do this, I'm going to open up my integrated terminal.", 'start': 1574.962, 'duration': 2.962}, {'end': 1580.445, 'text': "I think that's the easiest way to create these virtual environments.", 'start': 1578.004, 'duration': 2.441}, {'end': 1581.666, 'text': "So I'm going to open that up.", 'start': 1580.766, 'duration': 0.9}], 'summary': 'Creating a virtual environment is essential for projects; use the integrated terminal for ease.', 'duration': 24.329, 'max_score': 1557.337, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/06I63_p-2A4/pics/06I63_p-2A41557337.jpg'}, {'end': 1658.046, 'src': 'embed', 'start': 1633.519, 'weight': 0, 'content': [{'end': 1639.765, 'text': 'But basically to do this, we can simply say, Python 3, or Python if you have it set up that way.', 'start': 1633.519, 'duration': 6.246}, {'end': 1642.128, 'text': 'Sometimes we have to use Python 3.', 'start': 1639.965, 'duration': 2.163}, {'end': 1649.337, 'text': "So Python 3 dash m, venv, which is the module we're going to run, and now the name of our virtual environment.", 'start': 1642.128, 'duration': 7.209}, {'end': 1652.501, 'text': "I'm also just going to call my virtual environment venv.", 'start': 1649.637, 'duration': 2.864}, {'end': 1654.183, 'text': "So I'm going to run that.", 'start': 1652.922, 'duration': 1.261}, {'end': 1658.046, 'text': 'And that creates a virtual environment within our project folder.', 'start': 1654.824, 'duration': 3.222}], 'summary': "Set up a python 3 virtual environment named 'venv' for the project.", 'duration': 24.527, 'max_score': 1633.519, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/06I63_p-2A4/pics/06I63_p-2A41633519.jpg'}, {'end': 1813.06, 'src': 'embed', 'start': 1785.023, 'weight': 2, 'content': [{'end': 1790.926, 'text': 'So now if we wanted to install some packages in this virtual environment, then we should just be able to do this with a pip command.', 'start': 1785.023, 'duration': 5.903}, {'end': 1793.367, 'text': "So we don't even need to activate that.", 'start': 1791.086, 'duration': 2.281}, {'end': 1795.688, 'text': 'I can just say pip install requests.', 'start': 1793.407, 'duration': 2.281}, {'end': 1801.871, 'text': "And once that's installed, we should be able to just import that into our scripts with no problem.", 'start': 1796.248, 'duration': 5.623}, {'end': 1806.795, 'text': "So underneath this here, I'm going to import requests.", 'start': 1802.251, 'duration': 4.544}, {'end': 1808.717, 'text': "So I'll import that.", 'start': 1807.235, 'duration': 1.482}, {'end': 1813.06, 'text': "And let me clear my terminal here so that we don't have so much text in the way.", 'start': 1809.277, 'duration': 3.783}], 'summary': 'Installing packages in virtual environment using pip command and importing requests for use in scripts.', 'duration': 28.037, 'max_score': 1785.023, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/06I63_p-2A4/pics/06I63_p-2A41785023.jpg'}, {'end': 1999.714, 'src': 'embed', 'start': 1968.894, 'weight': 4, 'content': [{'end': 1973.358, 'text': 'So the status code will just be the status code that we get back from that request.', 'start': 1968.894, 'duration': 4.464}, {'end': 1976.341, 'text': "So I'm going to save that, and I'm going to run it.", 'start': 1973.658, 'duration': 2.683}, {'end': 1981.765, 'text': "So I'll right-click, run Python file in terminal And whenever we run that,", 'start': 1976.481, 'duration': 5.284}, {'end': 1985.467, 'text': 'we can see that it did use that virtual environment and we got a status code of 200..', 'start': 1981.765, 'duration': 3.702}, {'end': 1991.65, 'text': "OK, so now that we've seen how to use these virtual environments, now let's see how we can auto format our Python code.", 'start': 1985.467, 'duration': 6.183}, {'end': 1994.331, 'text': "So right now we don't have a formatter installed.", 'start': 1991.99, 'duration': 2.341}, {'end': 1999.714, 'text': "So we have seen those pop ups, those pop up notifications saying that we don't have formatters installed.", 'start': 1994.671, 'duration': 5.043}], 'summary': 'Using virtual environments, obtained a status code of 200; now exploring auto-formatting python code.', 'duration': 30.82, 'max_score': 1968.894, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/06I63_p-2A4/pics/06I63_p-2A41968894.jpg'}], 'start': 1514.329, 'title': 'Setting up virtual environment and using request module in vs code', 'summary': "Covers setting up a virtual environment in vs code with python 3's venv module, focusing on creating, activating, and changing the interpreter, and demonstrates the process of using the requests module in a virtual environment, showcasing the use of pip commands, intellisense in vs code, and testing functionality with a successful status code of 200.", 'chapters': [{'end': 1784.543, 'start': 1514.329, 'title': 'Setting up virtual environment in vs code', 'summary': "Covers setting up a virtual environment in vs code using python 3's venv module, with a focus on creating, activating, and changing the interpreter, alongside explaining the significance of using virtual environments for projects.", 'duration': 270.214, 'highlights': ["Creating a virtual environment using Python 3's venv module The speaker demonstrates creating a virtual environment within the project folder using the command 'Python 3 -m venv venv', which sets up the virtual environment for the project.", 'Changing the interpreter to use the virtual environment The speaker explains changing the interpreter in VS Code to use the newly created virtual environment, ensuring that VS Code automatically picks up the virtual environment within the project.', 'Importance of using virtual environments for projects The chapter emphasizes the significance of creating virtual environments for projects, highlighting the benefits of isolating project dependencies and the importance of activating the virtual environment for new terminal sessions.']}, {'end': 1985.467, 'start': 1785.023, 'title': 'Using virtual environments and request module in python', 'summary': 'Demonstrates the process of installing and using the requests module in a virtual environment, showcasing the use of pip commands and the benefits of intellisense in vs code, with a demonstration of accessing and utilizing the request.get() method and its attributes, followed by testing the functionality with a printout of the status code, yielding a successful status code of 200.', 'duration': 200.444, 'highlights': ['The chapter demonstrates the process of installing and using the requests module in a virtual environment, showcasing the use of pip commands and the benefits of IntelliSense in VS Code.', 'A demonstration of accessing and utilizing the request.get() method and its attributes, followed by testing the functionality with a printout of the status code, yielding a successful status code of 200.']}], 'duration': 471.138, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/06I63_p-2A4/pics/06I63_p-2A41514329.jpg', 'highlights': ["Creating a virtual environment using Python 3's venv module The speaker demonstrates creating a virtual environment within the project folder using the command 'Python 3 -m venv venv', which sets up the virtual environment for the project.", 'Changing the interpreter to use the virtual environment The speaker explains changing the interpreter in VS Code to use the newly created virtual environment, ensuring that VS Code automatically picks up the virtual environment within the project.', 'The chapter demonstrates the process of installing and using the requests module in a virtual environment, showcasing the use of pip commands and the benefits of IntelliSense in VS Code.', 'Importance of using virtual environments for projects The chapter emphasizes the significance of creating virtual environments for projects, highlighting the benefits of isolating project dependencies and the importance of activating the virtual environment for new terminal sessions.', 'A demonstration of accessing and utilizing the request.get() method and its attributes, followed by testing the functionality with a printout of the status code, yielding a successful status code of 200.']}, {'end': 2692.925, 'segs': [{'end': 2030.512, 'src': 'embed', 'start': 2005.318, 'weight': 0, 'content': [{'end': 2011.022, 'text': 'So to try to try to format our code manually, we can use a keyboard shortcut.', 'start': 2005.318, 'duration': 5.704}, {'end': 2014.965, 'text': 'So to do this, it is shift option F.', 'start': 2011.382, 'duration': 3.583}, {'end': 2016.966, 'text': 'So or shift alt F.', 'start': 2014.965, 'duration': 2.001}, {'end': 2020.349, 'text': "So I'm going to use shift option F to try to format the code.", 'start': 2016.966, 'duration': 3.383}, {'end': 2024.73, 'text': "And now it's saying, hey, you don't have a formatter installed.", 'start': 2020.789, 'duration': 3.941}, {'end': 2030.512, 'text': "Do you want to use AutoPep 8? So AutoPep 8 is very popular and it's what they use by default.", 'start': 2025.03, 'duration': 5.482}], 'summary': 'Using shift option f formats code, suggests autopep 8 for formatting.', 'duration': 25.194, 'max_score': 2005.318, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/06I63_p-2A4/pics/06I63_p-2A42005318.jpg'}, {'end': 2073.641, 'src': 'embed', 'start': 2047.318, 'weight': 1, 'content': [{'end': 2052.963, 'text': "but I did see a blog post on Kenneth Wright's blog and he said that he uses Black.", 'start': 2047.318, 'duration': 5.645}, {'end': 2055.784, 'text': 'so I kind of want to give it a shot and see if I notice any differences.', 'start': 2052.963, 'duration': 2.821}, {'end': 2061.851, 'text': 'Okay, so with that formatter installed, we can go back up here to our code.', 'start': 2056.485, 'duration': 5.366}, {'end': 2067.295, 'text': 'and now, if I press Shift-Option-F, then it will auto format that code for us.', 'start': 2061.851, 'duration': 5.444}, {'end': 2073.641, 'text': 'Now it might not have looked like it changed all that much because our code was already formatted kind of properly.', 'start': 2067.755, 'duration': 5.886}], 'summary': 'Exploring the use of black formatter for code formatting and testing its impact.', 'duration': 26.323, 'max_score': 2047.318, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/06I63_p-2A4/pics/06I63_p-2A42047318.jpg'}, {'end': 2306.806, 'src': 'embed', 'start': 2279.235, 'weight': 2, 'content': [{'end': 2281.796, 'text': 'then we can see that it moves that from import there to the bottom.', 'start': 2279.235, 'duration': 2.561}, {'end': 2286.098, 'text': "Okay, so now that we've done code formatting, now let's also enable linting.", 'start': 2282.176, 'duration': 3.922}, {'end': 2291.54, 'text': "So we've been getting these linting warnings here this whole time, so now we're actually going to use this.", 'start': 2286.358, 'duration': 5.182}, {'end': 2296.902, 'text': 'So linting will look at our code and tell us if it thinks something is off.', 'start': 2291.92, 'duration': 4.982}, {'end': 2299.363, 'text': "and it's nice because you can.", 'start': 2297.342, 'duration': 2.021}, {'end': 2303.705, 'text': 'you know this can keep you from making mistakes that you might not notice on your own.', 'start': 2299.363, 'duration': 4.342}, {'end': 2306.806, 'text': 'so we could install this from the command palette.', 'start': 2303.705, 'duration': 3.101}], 'summary': 'Enable linting to address linting warnings and improve code quality.', 'duration': 27.571, 'max_score': 2279.235, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/06I63_p-2A4/pics/06I63_p-2A42279235.jpg'}], 'start': 1985.467, 'title': 'Python code auto formatting', 'summary': 'Discusses auto formatting python code using virtual environments, including the use of shift option f, and the setup of black for auto formatting code and linting in vs code, with details on setting up, sorting imports, enabling linting, and configuring the code runner extension.', 'chapters': [{'end': 2047.318, 'start': 1985.467, 'title': 'Auto formatting python code', 'summary': 'Discusses the process of auto formatting python code using virtual environments, including the use of shift option f to try to format the code and the choice between autopep 8 and black as formatters.', 'duration': 61.851, 'highlights': ['The chapter discusses the process of auto formatting Python code using virtual environments, including the use of shift option F to try to format the code and the choice between AutoPep 8 and Black as formatters.', "AutoPep 8 is very popular and it's what they use by default.", 'The chapter talks about the choice between AutoPep 8 and Black as formatters.']}, {'end': 2692.925, 'start': 2047.318, 'title': 'Vs code auto formatting and linting', 'summary': 'Discusses how to use black for auto formatting code and enable linting in vs code, including setting up code auto formatting, sorting imports, enabling linting, and configuring the code runner extension.', 'duration': 645.607, 'highlights': ['Using Black for auto formatting code The speaker discusses using Black for auto formatting code and demonstrates how it improves code cleanliness by adding spaces and making the code easier to read.', 'Enabling linting and using pylint The transcript explains how to enable linting, use pylint for code analysis, and demonstrates how it identifies syntax errors, unused variables, and provides suggestions for fixing them.', 'Configuring the code runner extension for Python scripts The speaker details the process of configuring the code runner extension to use the current python interpreter in VS Code, enabling the extension to run Python scripts correctly and utilize customized parameters.']}], 'duration': 707.458, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/06I63_p-2A4/pics/06I63_p-2A41985467.jpg', 'highlights': ['The chapter discusses the process of auto formatting Python code using virtual environments, including the use of shift option F to try to format the code and the choice between AutoPep 8 and Black as formatters.', 'Using Black for auto formatting code The speaker discusses using Black for auto formatting code and demonstrates how it improves code cleanliness by adding spaces and making the code easier to read.', 'Enabling linting and using pylint The transcript explains how to enable linting, use pylint for code analysis, and demonstrates how it identifies syntax errors, unused variables, and provides suggestions for fixing them.']}, {'end': 3758.049, 'segs': [{'end': 2744.917, 'src': 'embed', 'start': 2717.559, 'weight': 4, 'content': [{'end': 2726.205, 'text': "So I don't know about you all, but whenever I run Python code, I want the output just to be what the output is of the command that I'm running.", 'start': 2717.559, 'duration': 8.646}, {'end': 2734.711, 'text': "I don't really like having other stuff in the way, like the terminal location and command took however long to run, anything like that.", 'start': 2726.325, 'duration': 8.386}, {'end': 2738.013, 'text': "So first of all, I'm going to change.", 'start': 2735.231, 'duration': 2.782}, {'end': 2744.917, 'text': "I'm going to do a code dash runner of show execution message.", 'start': 2738.373, 'duration': 6.544}], 'summary': 'Python code output to show only command output', 'duration': 27.358, 'max_score': 2717.559, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/06I63_p-2A4/pics/06I63_p-2A42717559.jpg'}, {'end': 2950.787, 'src': 'embed', 'start': 2907.118, 'weight': 0, 'content': [{'end': 2913.883, 'text': 'But to run this in VS Code, we can simply do what we did earlier by right clicking and running this within our terminal.', 'start': 2907.118, 'duration': 6.765}, {'end': 2920.685, 'text': "So if I do that, then we can see that we have this running here within our terminal, and now it's asking us for our input.", 'start': 2914.223, 'duration': 6.462}, {'end': 2926.147, 'text': "So I'll put in my name here, and then it runs our script just fine.", 'start': 2920.846, 'duration': 5.301}, {'end': 2926.787, 'text': 'So that worked.', 'start': 2926.187, 'duration': 0.6}, {'end': 2928.208, 'text': 'It printed out, hello, Corey.', 'start': 2926.827, 'duration': 1.381}, {'end': 2930.869, 'text': "So that's just a little side note there that I wanted to show.", 'start': 2928.468, 'duration': 2.401}, {'end': 2936.27, 'text': 'If you want to do input, then input will work, but you will have to use the terminal.', 'start': 2931.249, 'duration': 5.021}, {'end': 2943.032, 'text': "So now I'm going to undo a couple of changes to go back to what we had before.", 'start': 2936.57, 'duration': 6.462}, {'end': 2944.753, 'text': 'before that input.', 'start': 2943.032, 'duration': 1.721}, {'end': 2950.787, 'text': "okay?, All right, so now let's take a look at the built-in Git integration within VS Code.", 'start': 2944.753, 'duration': 6.034}], 'summary': 'Running script in vs code terminal, input works using terminal, git integration in vs code.', 'duration': 43.669, 'max_score': 2907.118, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/06I63_p-2A4/pics/06I63_p-2A42907118.jpg'}, {'end': 3454.948, 'src': 'heatmap', 'start': 3405.6, 'weight': 1, 'content': [{'end': 3410.564, 'text': "and now I'm going to go down here to the bottom, And actually it's up here, close to the top.", 'start': 3405.6, 'duration': 4.964}, {'end': 3412.345, 'text': 'It is push to.', 'start': 3411.024, 'duration': 1.321}, {'end': 3413.666, 'text': "So I'm going to push to.", 'start': 3412.565, 'duration': 1.101}, {'end': 3416.368, 'text': "And now I'm going to push to origin.", 'start': 3414.187, 'duration': 2.181}, {'end': 3424.194, 'text': 'And the reason that we have origin there is because we pasted in that get remote add origin command that we got from GitHub.', 'start': 3416.568, 'duration': 7.626}, {'end': 3425.936, 'text': "So I'm going to push to that.", 'start': 3424.595, 'duration': 1.341}, {'end': 3428.437, 'text': 'And that might take a second.', 'start': 3426.836, 'duration': 1.601}, {'end': 3432.579, 'text': 'And it asks us here if we want to periodically run git fetch.', 'start': 3429.538, 'duration': 3.041}, {'end': 3434.08, 'text': 'You can say yes or no.', 'start': 3433.1, 'duration': 0.98}, {'end': 3436.582, 'text': "I'm just going to say ask me later for now.", 'start': 3434.16, 'duration': 2.422}, {'end': 3442.125, 'text': "So now if I go back to the browser, I'm going to look at my repository.", 'start': 3436.982, 'duration': 5.143}, {'end': 3445.906, 'text': 'And we can see that we have a repository with two commits here.', 'start': 3442.685, 'duration': 3.221}, {'end': 3450.647, 'text': 'And this is our code that we have within VS Code.', 'start': 3446.446, 'duration': 4.201}, {'end': 3454.948, 'text': 'So now that you have this connected to GitHub,', 'start': 3450.987, 'duration': 3.961}], 'summary': 'Pushed code to github repository with 2 commits.', 'duration': 49.348, 'max_score': 3405.6, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/06I63_p-2A4/pics/06I63_p-2A43405600.jpg'}, {'end': 3490.9, 'src': 'embed', 'start': 3463.15, 'weight': 1, 'content': [{'end': 3467.471, 'text': "And then simply come up here and push those, and it'll push those to GitHub.", 'start': 3463.15, 'duration': 4.321}, {'end': 3475.014, 'text': "So that's how you can work with Git and GitHub and VS Code, and I think it's pretty intuitive how they set that up, and it's really nice to use.", 'start': 3467.851, 'duration': 7.163}, {'end': 3477.895, 'text': "Now, if you'd like to learn more about Git,", 'start': 3475.814, 'duration': 2.081}, {'end': 3484.657, 'text': "then I do have a more detailed video on that and I'll leave a link to that video in the description section below if anyone is interested.", 'start': 3477.895, 'duration': 6.762}, {'end': 3490.9, 'text': "I also plan on doing a detailed video on GitHub in the future, but I haven't got around to doing that just yet.", 'start': 3485.038, 'duration': 5.862}], 'summary': 'Learn to work with git, github, and vs code, with more detailed video available.', 'duration': 27.75, 'max_score': 3463.15, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/06I63_p-2A4/pics/06I63_p-2A43463150.jpg'}, {'end': 3527.991, 'src': 'embed', 'start': 3499.884, 'weight': 2, 'content': [{'end': 3506.107, 'text': "Now this is a nice feature in VS Code that doesn't come built in with some other minimalist editors like this.", 'start': 3499.884, 'duration': 6.223}, {'end': 3518.28, 'text': "So Back in our script here, let's put in a breakpoint after we make our web request.", 'start': 3506.547, 'duration': 11.733}, {'end': 3520.662, 'text': 'In order to put a breakpoint in.', 'start': 3518.68, 'duration': 1.982}, {'end': 3527.991, 'text': 'we can just come over here into our gutter, and whenever this red dot shows up, we can just click there and that will add a breakpoint.', 'start': 3520.662, 'duration': 7.329}], 'summary': 'Vs code has a feature to add breakpoints for debugging web requests easily.', 'duration': 28.107, 'max_score': 3499.884, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/06I63_p-2A4/pics/06I63_p-2A43499884.jpg'}], 'start': 2693.106, 'title': 'Optimizing python output and vs code features', 'summary': 'Explains optimizing python output for cleaner output and discusses vs code features, including git integration, keyboard shortcuts, and debugging setup.', 'chapters': [{'end': 2819.324, 'start': 2693.106, 'title': 'Optimizing python output', 'summary': 'Explains how to optimize the python output by configuring the code runner to show only the command output without the additional information, resulting in a much cleaner output.', 'duration': 126.218, 'highlights': ['The chapter introduces configuring the code runner to show only the command output without additional information, resulting in a much cleaner output.', 'The speaker changes the code runner settings to show execution message to false and clear previous output to true, resulting in a much cleaner output.', 'The output after the changes is much cleaner, utilizing the virtual environment and displaying the desired output without any unnecessary information.']}, {'end': 3178.116, 'start': 2819.324, 'title': 'Vs code features and git integration', 'summary': 'Discusses using keyboard shortcuts, running code with input, and utilizing built-in git integration within vs code, including initializing repository, ignoring files, and staging and committing changes.', 'duration': 358.792, 'highlights': ['Running code with input in VS Code by using the terminal is easier than in Sublime Text, as shown by the example of taking user input and running the script, resulting in successful execution.', 'The chapter provides a detailed guide on using the built-in Git integration within VS Code, including initializing a repository, ignoring unnecessary files using .gitignore, and staging and committing changes, demonstrating the practical implementation of these steps with clear examples.', "The chapter emphasizes the convenience of using VS Code's interface for tracking projects with Git, alongside the option of performing the same tasks through the terminal, showcasing the flexibility and user-friendly features of VS Code for version control.", 'The speaker highlights the process of staging and committing changes within VS Code, demonstrating the steps of staging specific files or all changes and providing a clear example of committing changes with an initial commit message.', 'The chapter explains the process of creating a .gitignore file to ignore unnecessary files such as virtual environments and VS Code settings, showcasing best practices for managing version control in VS Code.']}, {'end': 3758.049, 'start': 3178.456, 'title': 'Version control and debugging in vs code', 'summary': 'Covers committing code to git, staging files, pushing to github, and setting up a debug configuration in visual studio code, emphasizing the ability to inspect and monitor variables during debugging.', 'duration': 579.593, 'highlights': ['Setting up Git and GitHub integration in Visual Studio Code Describes the process of creating a new repository on GitHub, connecting the local repository to the remote one, and pushing changes to the GitHub repository.', 'Debugging capabilities in Visual Studio Code Explains the process of adding a breakpoint, starting the debugger, inspecting local values, watching variables, and using the debug console to interactively inspect data during debugging.', 'Code management with Git in Visual Studio Code Demonstrates the removal of code, staging files, and committing changes to Git, with a specific example of removing code and leaving a commit message.']}], 'duration': 1064.943, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/06I63_p-2A4/pics/06I63_p-2A42693106.jpg', 'highlights': ["The chapter emphasizes the convenience of using VS Code's interface for tracking projects with Git, showcasing the flexibility and user-friendly features of VS Code for version control.", 'The chapter provides a detailed guide on using the built-in Git integration within VS Code, including initializing a repository, ignoring unnecessary files using .gitignore, and staging and committing changes, demonstrating the practical implementation of these steps with clear examples.', 'Debugging capabilities in Visual Studio Code Explains the process of adding a breakpoint, starting the debugger, inspecting local values, watching variables, and using the debug console to interactively inspect data during debugging.', 'Running code with input in VS Code by using the terminal is easier than in Sublime Text, as shown by the example of taking user input and running the script, resulting in successful execution.', 'The chapter introduces configuring the code runner to show only the command output without additional information, resulting in a much cleaner output.']}, {'end': 4530.807, 'segs': [{'end': 3805.8, 'src': 'embed', 'start': 3775.321, 'weight': 2, 'content': [{'end': 3781.063, 'text': "So having built-in support for all this stuff is definitely a nice addition that you won't find in most other editors.", 'start': 3775.321, 'duration': 5.742}, {'end': 3783.224, 'text': 'So, to show you some unit testing,', 'start': 3781.483, 'duration': 1.741}, {'end': 3790.709, 'text': "I'm going to close down my current project and I'm going to open up a different project that has some sample unit tests.", 'start': 3783.584, 'duration': 7.125}, {'end': 3799.116, 'text': "So I close down VS Code there and now I'm just going to open up my terminal here.", 'start': 3791.03, 'duration': 8.086}, {'end': 3805.8, 'text': "and now I'm going to navigate to my desktop because that is where I have my sample unit testing code.", 'start': 3799.936, 'duration': 5.864}], 'summary': 'Vs code has built-in support for unit testing, not found in most editors.', 'duration': 30.479, 'max_score': 3775.321, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/06I63_p-2A4/pics/06I63_p-2A43775321.jpg'}, {'end': 3868.25, 'src': 'embed', 'start': 3842.924, 'weight': 6, 'content': [{'end': 3849.129, 'text': 'So if I open up Visual Studio Code, let me show you how to install this if you run into that problem.', 'start': 3842.924, 'duration': 6.205}, {'end': 3853.712, 'text': 'So if I open up the command palette, command shift P.', 'start': 3849.609, 'duration': 4.103}, {'end': 3861.276, 'text': 'If I type in shell, then we can see here that we have one command that says install code command and path.', 'start': 3854.392, 'duration': 6.884}, {'end': 3862.497, 'text': "I'm going to click on that.", 'start': 3861.616, 'duration': 0.881}, {'end': 3864.598, 'text': 'It says that that was successful.', 'start': 3862.897, 'duration': 1.701}, {'end': 3866.399, 'text': "So I'm going to open.", 'start': 3864.958, 'duration': 1.441}, {'end': 3868.25, 'text': 'a new terminal here.', 'start': 3867.389, 'duration': 0.861}], 'summary': 'Demonstrating how to install visual studio code via command palette.', 'duration': 25.326, 'max_score': 3842.924, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/06I63_p-2A4/pics/06I63_p-2A43842924.jpg'}, {'end': 3952.123, 'src': 'embed', 'start': 3924.773, 'weight': 4, 'content': [{'end': 3928.334, 'text': 'this. for me it is Python discover test.', 'start': 3924.773, 'duration': 3.561}, {'end': 3937.718, 'text': "so I'm gonna click on that and this will come up with a pop-up here that will ask us to enable and configure the test framework.", 'start': 3928.334, 'duration': 9.384}, {'end': 3944.2, 'text': "so I'm gonna click on that and now it's asking us what unit test framework we want to use.", 'start': 3937.718, 'duration': 6.482}, {'end': 3952.123, 'text': "now I'm using the unit test module from the standard library for these tests, but if you're using pytest or nose, then you can use those.", 'start': 3944.2, 'duration': 7.923}], 'summary': 'Configuring python test framework with unit test module or pytest/nose.', 'duration': 27.35, 'max_score': 3924.773, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/06I63_p-2A4/pics/06I63_p-2A43924773.jpg'}, {'end': 4252.741, 'src': 'embed', 'start': 4224.711, 'weight': 0, 'content': [{'end': 4230.134, 'text': 'So I really think that this is an awesome interface for seeing all of our tests in one place, and if something is failing,', 'start': 4224.711, 'duration': 5.423}, {'end': 4238.397, 'text': 'then we can easily come in here and just rerun a specific test by running it individually, instead of rerunning our entire test suite.', 'start': 4230.134, 'duration': 8.263}, {'end': 4241.658, 'text': "So I think that's an awesome feature built into VS Code.", 'start': 4238.737, 'duration': 2.921}, {'end': 4247.66, 'text': "Okay, now there's one last thing that I want to show you in this video and it's only going to take a second.", 'start': 4242.378, 'duration': 5.282}, {'end': 4252.741, 'text': "So I have some other preferred settings that I haven't shown in this video,", 'start': 4248.06, 'duration': 4.681}], 'summary': 'Vs code provides an interface to easily view and rerun failing tests individually, saving time and effort.', 'duration': 28.03, 'max_score': 4224.711, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/06I63_p-2A4/pics/06I63_p-2A44224711.jpg'}, {'end': 4374.105, 'src': 'embed', 'start': 4348.3, 'weight': 1, 'content': [{'end': 4353.805, 'text': "And if you didn't know, their Zen mode is just their distraction free mode that allows you to focus more on your code.", 'start': 4348.3, 'duration': 5.505}, {'end': 4359.19, 'text': 'and hides lots of the menus and things that you might find distracting.', 'start': 4354.265, 'duration': 4.925}, {'end': 4364.175, 'text': 'So let me open up one of my files here, and let me actually open up Zen Mode.', 'start': 4359.55, 'duration': 4.625}, {'end': 4370.081, 'text': "So to do that, I'm just going to open up my command palette here and type in Zen, and I will toggle Zen Mode.", 'start': 4364.495, 'duration': 5.586}, {'end': 4374.105, 'text': 'So I have these changed to where my Zen Mode now looks like this.', 'start': 4370.481, 'duration': 3.624}], 'summary': 'Zen mode hides distractions for focused coding.', 'duration': 25.805, 'max_score': 4348.3, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/06I63_p-2A4/pics/06I63_p-2A44348300.jpg'}, {'end': 4494.062, 'src': 'embed', 'start': 4472.262, 'weight': 7, 'content': [{'end': 4480.81, 'text': "But, like I said, I'd like to do a video in the near future showing you some of my other favorite VS code features,", 'start': 4472.262, 'duration': 8.548}, {'end': 4486.535, 'text': 'like the multi cursor functionality, and also how to use some of those keyboard shortcuts that are listed on that reference page.', 'start': 4480.81, 'duration': 5.725}, {'end': 4488.937, 'text': 'Okay, so I think that is going to do it for this video.', 'start': 4486.955, 'duration': 1.982}, {'end': 4494.062, 'text': "I hope you found this video helpful, especially if you're trying to switch over to VS code for your Python development.", 'start': 4489.257, 'duration': 4.805}], 'summary': 'Video will showcase vs code features, multi cursor, keyboard shortcuts for python development.', 'duration': 21.8, 'max_score': 4472.262, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/06I63_p-2A4/pics/06I63_p-2A44472262.jpg'}], 'start': 3758.509, 'title': 'Vs code testing features', 'summary': 'Covers using visual studio code for running and debugging tests, including features like running individual tests, viewing test output, and configuring settings for a distraction-free zen mode, with a focus on python development.', 'chapters': [{'end': 4014.626, 'start': 3758.509, 'title': 'Unit testing in vs code', 'summary': 'Introduces the built-in unit testing support in vs code, detailing the process of enabling and configuring the test framework, and navigating to and opening a sample unit testing project, highlighting the benefits of built-in support and the steps to resolve potential installation issues.', 'duration': 256.117, 'highlights': ['The chapter introduces the built-in unit testing support in VS Code, detailing the process of enabling and configuring the test framework, and navigating to and opening a sample unit testing project.', 'The speaker highlights the benefits of having built-in support for unit testing in VS Code, emphasizing that it is a nice addition not commonly found in other editors.', "The speaker demonstrates the process of resolving potential installation issues with the 'code' command in VS Code by showing how to install it via the command palette and navigate to the desired directory or file from the command line.", 'The speaker explains the process of enabling and configuring the test framework in VS Code, emphasizing the ability to select the unit test framework and the pattern to identify test files, providing a comprehensive guide for users.', "The speaker showcases the usage of the 'Python discover test' command from the command palette to enable and configure the test framework in VS Code, demonstrating its functionality by discovering test files and resolving any installation issues encountered during the process."]}, {'end': 4530.807, 'start': 4014.626, 'title': 'Vs code testing features', 'summary': 'Discusses using visual studio code for running and debugging tests, including features like running individual tests, viewing test output, and configuring settings for a distraction-free zen mode, with a focus on python development.', 'duration': 516.181, 'highlights': ['Running and Debugging Tests The interface allows running individual tests, viewing test output, and rerunning failed tests, providing an efficient way to identify and fix failing tests.', 'Zen Mode Settings The speaker demonstrates configuring Zen mode settings, including center layout, full screen, and line numbers, to create a distraction-free environment for code focus.', 'Future Video Plans Plans to cover editor features, multi-cursor functionality, and keyboard shortcuts, indicating a comprehensive guide for maximizing the use of VS Code.']}], 'duration': 772.298, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/06I63_p-2A4/pics/06I63_p-2A43758509.jpg', 'highlights': ['The interface allows running individual tests, viewing test output, and rerunning failed tests, providing an efficient way to identify and fix failing tests.', 'The speaker demonstrates configuring Zen mode settings, including center layout, full screen, and line numbers, to create a distraction-free environment for code focus.', 'The chapter introduces the built-in unit testing support in VS Code, detailing the process of enabling and configuring the test framework, and navigating to and opening a sample unit testing project.', 'The speaker explains the process of enabling and configuring the test framework in VS Code, emphasizing the ability to select the unit test framework and the pattern to identify test files, providing a comprehensive guide for users.', "The speaker showcases the usage of the 'Python discover test' command from the command palette to enable and configure the test framework in VS Code, demonstrating its functionality by discovering test files and resolving any installation issues encountered during the process.", 'The speaker highlights the benefits of having built-in support for unit testing in VS Code, emphasizing that it is a nice addition not commonly found in other editors.', "The speaker demonstrates the process of resolving potential installation issues with the 'code' command in VS Code by showing how to install it via the command palette and navigate to the desired directory or file from the command line.", 'Future Video Plans Plans to cover editor features, multi-cursor functionality, and keyboard shortcuts, indicating a comprehensive guide for maximizing the use of VS Code.']}], 'highlights': ['Visual Studio Code gaining popularity with increasing number of people switching over and positive feedback from influential figures like Michael Kennedy from Talk Python podcast.', 'Coverage of essential features of Visual Studio Code for Python development, including switching between interpreters, debugging applications, and Git integration.', 'The Python extension in VS Code is the most popular with nearly 41 million installs.', "Creating a virtual environment using Python 3's venv module The speaker demonstrates creating a virtual environment within the project folder using the command 'Python 3 -m venv venv', which sets up the virtual environment for the project.", 'The chapter discusses the process of auto formatting Python code using virtual environments, including the use of shift option F to try to format the code and the choice between AutoPep 8 and Black as formatters.', "The chapter emphasizes the convenience of using VS Code's interface for tracking projects with Git, showcasing the flexibility and user-friendly features of VS Code for version control.", 'The interface allows running individual tests, viewing test output, and rerunning failed tests, providing an efficient way to identify and fix failing tests.', 'The speaker demonstrates configuring Zen mode settings, including center layout, full screen, and line numbers, to create a distraction-free environment for code focus.']}