title
Raspberry Pi - How to Begin Coding Python on Raspberry Pi

description
Find code and diagrams at: https://www.EliTheComputerGuy.com With Thonny you can easily begin to code Python Scripts on Raspberry Pi OS. Thonny is a very simple Python IDE that is easy to learn.

detail
{'title': 'Raspberry Pi - How to Begin Coding Python on Raspberry Pi', 'heatmap': [{'end': 738.476, 'start': 699.909, 'weight': 0.707}], 'summary': 'Provides a comprehensive guide to coding python on raspberry pi, emphasizing the importance of python for interacting with gpio pins, highlighting the use of thani as the default ide, and stressing the need for python 3 over python 2, while also showcasing a raspberry pi pir sensor project and discussing tools, packages, and ide overview.', 'chapters': [{'end': 142.732, 'segs': [{'end': 95.248, 'src': 'embed', 'start': 71.569, 'weight': 0, 'content': [{'end': 78.695, 'text': 'If you want to be able to interact with those types of things, Python is probably going to be the best way to go, at least to start with.', 'start': 71.569, 'duration': 7.126}, {'end': 85.481, 'text': "So what we're going to be doing is I'm going to give you a brief introduction on how to start using Python on your Raspberry Pi today,", 'start': 78.755, 'duration': 6.726}, {'end': 89.424, 'text': 'so that we can start getting into doing cooler projects going forward.', 'start': 85.481, 'duration': 3.943}, {'end': 95.248, 'text': "So a big warning, a warning for today is don't be a dummy when you buy your dummies books.", 'start': 90.424, 'duration': 4.824}], 'summary': 'Python is the best choice for interacting with devices like raspberry pi, providing a brief introduction on starting to use python on raspberry pi to enable cooler projects.', 'duration': 23.679, 'max_score': 71.569, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/xTIBG_KD8Bk/pics/xTIBG_KD8Bk71569.jpg'}], 'start': 0.523, 'title': 'Python programming for raspberry pi', 'summary': 'Emphasizes the importance of python for programming raspberry pi, focuses on its use for interacting with gpio pins, and recommends raspberry pi projects for dummies books for project ideas.', 'chapters': [{'end': 142.732, 'start': 0.523, 'title': 'Python programming for raspberry pi', 'summary': 'Highlights the importance of python for programming raspberry pi, emphasizes the use of python for interacting with gpio pins, and recommends using raspberry pi projects for dummies books for project ideas.', 'duration': 142.209, 'highlights': ['Python is the default standard programming language for Raspberry Pi, making it ideal for interacting with GPIO pins and starting programming on Raspberry Pi.', 'Raspberry Pi projects for dummies books are recommended as a resource for project ideas, providing a better understanding of the technology and allowing for quick learning and implementation.', 'Raspberry Pi functions as a full-fledged computer with CPU, RAM, storage, and a complete network stack, enabling the use of multiple programming languages, such as PHP and Node.js, similar to a normal PC or server.']}], 'duration': 142.209, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/xTIBG_KD8Bk/pics/xTIBG_KD8Bk523.jpg', 'highlights': ['Python is the default standard programming language for Raspberry Pi, ideal for interacting with GPIO pins and starting programming.', 'Raspberry Pi projects for dummies books are recommended for project ideas, providing a better understanding and allowing for quick learning.', 'Raspberry Pi functions as a full-fledged computer with CPU, RAM, storage, and a complete network stack, enabling the use of multiple programming languages.']}, {'end': 458.925, 'segs': [{'end': 166.272, 'src': 'embed', 'start': 143.172, 'weight': 3, 'content': [{'end': 150.759, 'text': "But one of the things that I wasn't thinking, one of the things that I wasn't thinking, is that there have been two major Python versions,", 'start': 143.172, 'duration': 7.587}, {'end': 157.285, 'text': 'and those two major Python versions are not compatible with each other, or not very compatible with each other.', 'start': 150.759, 'duration': 6.526}, {'end': 161.89, 'text': 'So there was Python two Python two was very popular for a long time.', 'start': 157.586, 'duration': 4.304}, {'end': 166.272, 'text': "And then the folks decided hey, why don't we create a new version of Python?", 'start': 162.33, 'duration': 3.942}], 'summary': 'Two major python versions, not very compatible with each other.', 'duration': 23.1, 'max_score': 143.172, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/xTIBG_KD8Bk/pics/xTIBG_KD8Bk143172.jpg'}, {'end': 430.399, 'src': 'embed', 'start': 403.215, 'weight': 0, 'content': [{'end': 407.297, 'text': 'is you actually install both Python version two and Python version three?', 'start': 403.215, 'duration': 4.082}, {'end': 415.222, 'text': "So see the version of Python three you're using is you simply type in Python three space hyphen hyphen version.", 'start': 407.378, 'duration': 7.844}, {'end': 421.586, 'text': "And then here now we can see that for the version three we're using version 3.7.3.", 'start': 415.902, 'duration': 5.684}, {'end': 430.399, 'text': 'so if you simply type in python space hyphen hyphen version and you see 2.7.16, you may think that you have to install version 3,', 'start': 421.587, 'duration': 8.812}], 'summary': 'The speaker demonstrates how to check python versions, highlighting the use of python 3.7.3.', 'duration': 27.184, 'max_score': 403.215, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/xTIBG_KD8Bk/pics/xTIBG_KD8Bk403215.jpg'}], 'start': 143.172, 'title': 'Python versions and ide on raspberry pi', 'summary': 'Emphasizes the incompatibility between python 2 and python 3, stressing the need for python 3 in future projects. it also highlights the use of thani as the default ide on raspberry pi and the importance of using python version 3 over version 2.', 'chapters': [{'end': 263.622, 'start': 143.172, 'title': 'Python 2 vs python 3 compatibility', 'summary': 'Highlights the incompatibility between python 2 and python 3, emphasizing the need for python 3 in future projects, as python 2 is no longer supported and recommends beginners to choose learning materials targeted for python 3 to avoid compatibility issues.', 'duration': 120.45, 'highlights': ['Python 3 is not backwards compatible to Python 2, so all new projects should be developed in Python 3.', 'There is still a lot of material available for Python 2 due to its popularity, but going forward, everyone should transition to Python 3.', 'Beginners are advised to ensure that they choose learning materials specifically for Python version 3 to avoid compatibility issues with their projects.', 'Legacy applications were built in Python 2, contributing to the availability of extensive material for Python 2 in the real world.', 'One major issue when dealing with Python is the need to differentiate between Python 2 and Python 3 code snippets to ensure compatibility with the chosen version.']}, {'end': 458.925, 'start': 263.622, 'title': 'Python ide and version on raspberry pi', 'summary': 'Covers using thani as the default ide on raspberry pi for python coding and emphasizes the importance of checking and using python version 3 instead of version 2.', 'duration': 195.303, 'highlights': ['Thani is the default Python IDE on Raspberry Pi, though not the best, it is relatively easy to use and comes pre-installed with the Raspberry Pi OS.', 'Emphasizes the importance of using Python version 3 instead of version 2 for more advanced projects, with version 3.7.3 being recommended on a new Raspberry Pi OS installation.', "The chapter demonstrates how to check the Python version on Raspberry Pi and highlights the potential confusion between Python version 2 and version 3 installations, recommending the use of 'python3 --version' to verify the Python 3 version.", 'The chapter aims to simplify Python coding for beginners, especially when using GPIO pins, and suggests using a preferred IDE if not comfortable with Thani on the Raspberry Pi.']}], 'duration': 315.753, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/xTIBG_KD8Bk/pics/xTIBG_KD8Bk143172.jpg', 'highlights': ['Python 3 is not backwards compatible to Python 2, so all new projects should be developed in Python 3.', 'Emphasizes the importance of using Python version 3 instead of version 2 for more advanced projects, with version 3.7.3 being recommended on a new Raspberry Pi OS installation.', 'Beginners are advised to ensure that they choose learning materials specifically for Python version 3 to avoid compatibility issues with their projects.', 'The chapter aims to simplify Python coding for beginners, especially when using GPIO pins, and suggests using a preferred IDE if not comfortable with Thani on the Raspberry Pi.', 'There is still a lot of material available for Python 2 due to its popularity, but going forward, everyone should transition to Python 3.']}, {'end': 714.425, 'segs': [{'end': 648.6, 'src': 'embed', 'start': 604.528, 'weight': 0, 'content': [{'end': 607.932, 'text': "So basically, whenever we run the script, we're also going to need to stop the script.", 'start': 604.528, 'duration': 3.404}, {'end': 609.313, 'text': 'So if we want to rerun it again.', 'start': 608.032, 'duration': 1.281}, {'end': 615.278, 'text': 'So this run current script, this simply runs the script without really the debug process.', 'start': 609.813, 'duration': 5.465}, {'end': 618.681, 'text': 'This here is the debug process.', 'start': 615.819, 'duration': 2.862}, {'end': 624.567, 'text': "So basically where you can try to step through the code and understand what's going on with your code a little bit better.", 'start': 618.721, 'duration': 5.846}, {'end': 630.77, 'text': "So if I click on this debug script, the first thing it's going to do is it's going to start with line one.", 'start': 624.967, 'duration': 5.803}, {'end': 638.314, 'text': 'And then what I can do is I can use these little options here, step over, step into, or step out.', 'start': 630.79, 'duration': 7.524}, {'end': 644.478, 'text': 'So basically as we get into more complicated scripts, these two little boxes on the side will matter more.', 'start': 638.754, 'duration': 5.724}, {'end': 648.6, 'text': 'But basically with the step over, this is how we can kind of step through this code.', 'start': 644.898, 'duration': 3.702}], 'summary': 'Running the script involves starting and stopping it. debugging helps in understanding and stepping through the code.', 'duration': 44.072, 'max_score': 604.528, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/xTIBG_KD8Bk/pics/xTIBG_KD8Bk604528.jpg'}], 'start': 458.945, 'title': 'Thani python ide, debugging, and variable tracking', 'summary': 'Introduces thani python ide, a beginner-friendly platform with a demo of basic python script. it also explains the debugging process and variable tracking in code, offering insights into script execution and variable monitoring.', 'chapters': [{'end': 604.108, 'start': 458.945, 'title': 'Introduction to thani python ide', 'summary': 'Introduces the thani python ide, emphasizing its simplicity and suitability for beginners, and demonstrates a basic python script that performs variable operations and displays the output, highlighting the ease of use and functionality of the ide.', 'duration': 145.163, 'highlights': ['The Thani Python IDE is introduced as the preferred choice for beginners due to its simplicity compared to Genie, which offers additional features and is more complex.', 'A basic Python script is demonstrated to show variable operations and the output, illustrating the simplicity and functionality of the Thani Python IDE.', "The script showcases the calculation of variables, with Sue's value being updated and then used to calculate Tim's value, resulting in Tim being printed as the output, effectively demonstrating the functionality of the Python script.", "The variables' values are displayed during the debugging process, providing a visual representation of the variable values at different stages of the script execution."]}, {'end': 648.6, 'start': 604.528, 'title': 'Debugging process in script execution', 'summary': 'Explains the process of debugging scripts in which the user can step through the code using options like step over, step into, or step out, to understand the code better.', 'duration': 44.072, 'highlights': ['The debugging process allows the user to step through the code using options like step over, step into, or step out.', 'Clicking on the debug script initiates the process, starting with line one.', 'The ability to stop and rerun the script for better understanding is highlighted.']}, {'end': 714.425, 'start': 648.98, 'title': 'Tracking variable values in code', 'summary': 'Explains how to track and update variable values in code, using an example where the values of bob and sue change, ultimately affecting the value of tim, showcasing the importance of monitoring variable values.', 'duration': 65.445, 'highlights': ['The value of Sue changes from 2 to 4 as the code progresses, demonstrating the dynamic nature of variable values.', 'The example illustrates the process of tracking variable modifications in code, emphasizing the importance of monitoring and understanding variable values.', 'The chapter emphasizes the significance of tracking variable values in code to understand how they are modified as the program progresses.']}], 'duration': 255.48, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/xTIBG_KD8Bk/pics/xTIBG_KD8Bk458945.jpg', 'highlights': ['The Thani Python IDE is introduced as the preferred choice for beginners due to its simplicity compared to Genie, which offers additional features and is more complex.', 'The debugging process allows the user to step through the code using options like step over, step into, or step out.', "The variables' values are displayed during the debugging process, providing a visual representation of the variable values at different stages of the script execution.", 'The example illustrates the process of tracking variable modifications in code, emphasizing the importance of monitoring and understanding variable values.']}, {'end': 1230.33, 'segs': [{'end': 809.737, 'src': 'embed', 'start': 777.476, 'weight': 1, 'content': [{'end': 780.338, 'text': 'So basically here, this is where I have my PIR sensor.', 'start': 777.476, 'duration': 2.862}, {'end': 786.921, 'text': 'My PIR sensor is connected for the out down to GPIO pin 4.', 'start': 780.378, 'duration': 6.543}, {'end': 793.405, 'text': 'And then I have the LED and the LED is being turned on by GPIO pin 16.', 'start': 786.921, 'duration': 6.484}, {'end': 795.246, 'text': 'And basically this is what I build out here.', 'start': 793.405, 'duration': 1.841}, {'end': 801.009, 'text': 'So the PIR sensor is connected to the GPIO pin and the LED is connected to the GPIO pin.', 'start': 795.306, 'duration': 5.703}, {'end': 809.737, 'text': 'So when I run this script and the PIR sensor sees motion, then the LED will actually turn on and it will be green.', 'start': 801.437, 'duration': 8.3}], 'summary': 'Pir sensor connected to gpio pin 4, activates led on gpio pin 16 when motion is detected.', 'duration': 32.261, 'max_score': 777.476, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/xTIBG_KD8Bk/pics/xTIBG_KD8Bk777476.jpg'}, {'end': 890.643, 'src': 'embed', 'start': 860.678, 'weight': 2, 'content': [{'end': 863, 'text': 'What I can do is I click and click on the run script.', 'start': 860.678, 'duration': 2.322}, {'end': 869.126, 'text': 'Now we can see that this is running down here and we can see that the LED is now lighting up.', 'start': 863.481, 'duration': 5.645}, {'end': 872.809, 'text': 'So basically when it sees movement, it lights up green.', 'start': 869.706, 'duration': 3.103}, {'end': 875.811, 'text': "And when it doesn't see movement, then it turns off.", 'start': 873.529, 'duration': 2.282}, {'end': 882.377, 'text': "So it's very important to remember from a default troubleshooting standpoint is if you do not have the script on.", 'start': 876.132, 'duration': 6.245}, {'end': 885.22, 'text': "So if I click this off here, right, so it's now off.", 'start': 882.517, 'duration': 2.703}, {'end': 890.643, 'text': "And as you can see, it's now, I'm not running the script, and so nothing is happening.", 'start': 885.7, 'duration': 4.943}], 'summary': 'The script triggers led to light up on movement detection.', 'duration': 29.965, 'max_score': 860.678, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/xTIBG_KD8Bk/pics/xTIBG_KD8Bk860678.jpg'}, {'end': 1118.618, 'src': 'embed', 'start': 1090.074, 'weight': 0, 'content': [{'end': 1095.74, 'text': "If I'm trying to figure out what's going on with the Sue variable, I can click on Sue, and this highlights whenever else Sue was used.", 'start': 1090.074, 'duration': 5.666}, {'end': 1098.522, 'text': 'This also highlights whenever else Bob was used.', 'start': 1096.12, 'duration': 2.402}, {'end': 1101.545, 'text': 'So these are some of the kind of debugging tools that you have.', 'start': 1098.822, 'duration': 2.723}, {'end': 1107.571, 'text': 'Not great, not the greatest thing in the world, but they do something for you.', 'start': 1102.326, 'duration': 5.245}, {'end': 1113.115, 'text': 'So past that we can go over here to the files menu.', 'start': 1110.213, 'duration': 2.902}, {'end': 1114.115, 'text': 'So we have the file menu.', 'start': 1113.155, 'duration': 0.96}, {'end': 1118.618, 'text': 'This is the normal new, open, recent, rename, that whole type of thing.', 'start': 1114.155, 'duration': 4.463}], 'summary': 'Debugging tools highlight variable usage, while the files menu includes new, open, recent, and rename options.', 'duration': 28.544, 'max_score': 1090.074, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/xTIBG_KD8Bk/pics/xTIBG_KD8Bk1090074.jpg'}], 'start': 714.885, 'title': 'Raspberry pi pir sensor project and debug process', 'summary': 'Details the setup of a raspberry pi project using a pir sensor and led, emphasizing gpio pin connections and python script functionality, alongside coverage of the debug process, code tools, and their limitations, with focus on variable usage and available options in the view and run menus.', 'chapters': [{'end': 1025.134, 'start': 714.885, 'title': 'Raspberry pi pir sensor project', 'summary': 'Details the setup of a raspberry pi project using a pir sensor and led, highlighting the gpio pin connections and the importance of running the python script for functionality, with emphasis on troubleshooting errors and debugging.', 'duration': 310.249, 'highlights': ['The PIR sensor is connected to GPIO pin 4, and the LED is connected to GPIO pin 16 for the Raspberry Pi project, enabling motion detection and LED activation.', 'Emphasizing the significance of running the Python script for functionality, as the LED only operates when the script is active, distinct from the automatic functionality of Arduino setups.', 'Detailed debugging process highlighted, including error identification for syntax mistakes and attribute errors, providing guidance on resolving script issues.']}, {'end': 1230.33, 'start': 1025.374, 'title': 'Debug process and code tools', 'summary': 'Covers the debug process and code tools, highlighting the limitations of the debug process, the feature to highlight variable usage, and the options available in the view and run menus.', 'duration': 204.956, 'highlights': ["The debug process is not as pretty as some IDEs, but it provides something to help figure out what's going on.", "The tool allows highlighting wherever a variable is used, aiding in understanding the code's behavior.", 'The view menu provides various options, including assistant, events, exceptions, files, notes, object inspector, outlines, program tree, shell, stack, and variables.', 'The run menu offers options to select and modify the interpreter for the Python script, debug the current script, and run the current script in the terminal.']}], 'duration': 515.445, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/xTIBG_KD8Bk/pics/xTIBG_KD8Bk714885.jpg', 'highlights': ['The PIR sensor is connected to GPIO pin 4, and the LED is connected to GPIO pin 16 for the Raspberry Pi project, enabling motion detection and LED activation.', 'Emphasizing the significance of running the Python script for functionality, as the LED only operates when the script is active, distinct from the automatic functionality of Arduino setups.', "The debug process is not as pretty as some IDEs, but it provides something to help figure out what's going on.", "The tool allows highlighting wherever a variable is used, aiding in understanding the code's behavior."]}, {'end': 1754.566, 'segs': [{'end': 1261.034, 'src': 'embed', 'start': 1231.502, 'weight': 3, 'content': [{'end': 1237.924, 'text': "If you go through here, it's got some other options that you may need in the future, but I probably wouldn't mess with right now.", 'start': 1231.502, 'duration': 6.422}, {'end': 1239.765, 'text': 'Pass that device.', 'start': 1238.664, 'duration': 1.101}, {'end': 1241.445, 'text': "Device doesn't matter at this point.", 'start': 1239.925, 'duration': 1.52}, {'end': 1242.586, 'text': 'Then we can go to tools.', 'start': 1241.485, 'duration': 1.101}, {'end': 1244.906, 'text': 'From tools, we have some interesting things here.', 'start': 1243.106, 'duration': 1.8}, {'end': 1246.307, 'text': 'So we have manage packages.', 'start': 1244.926, 'duration': 1.381}, {'end': 1252.729, 'text': "So do remember in the Python world, a lot of the functions that you're going to use come from packages.", 'start': 1246.767, 'duration': 5.962}, {'end': 1261.034, 'text': 'So basically you install a package into your to your Python environment, and then you can use functions and resources from that package.', 'start': 1252.789, 'duration': 8.245}], 'summary': 'Introduction to managing python packages and functions.', 'duration': 29.532, 'max_score': 1231.502, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/xTIBG_KD8Bk/pics/xTIBG_KD8Bk1231502.jpg'}, {'end': 1344.765, 'src': 'embed', 'start': 1314.939, 'weight': 5, 'content': [{'end': 1319.281, 'text': "One of the problems you may have is that the package that you're looking for may not be here.", 'start': 1314.939, 'duration': 4.342}, {'end': 1322.463, 'text': 'So if you go over here, you look at this PIR test.', 'start': 1319.921, 'duration': 2.542}, {'end': 1327.745, 'text': 'So from the GPIO0 package, import motion sensor and LED.', 'start': 1322.823, 'duration': 4.922}, {'end': 1330.727, 'text': "So that's coming from the GPIO0 package.", 'start': 1327.825, 'duration': 2.902}, {'end': 1332.028, 'text': 'And then from signal.', 'start': 1331.067, 'duration': 0.961}, {'end': 1336.374, 'text': 'So the signal package is actually built into Python import pause.', 'start': 1332.108, 'duration': 4.266}, {'end': 1344.765, 'text': "So if you had a few other things that you're importing, you may have the issue of you have not installed the particular package that you need.", 'start': 1336.714, 'duration': 8.051}], 'summary': 'Issues may arise if required packages are not installed, such as gpio0 and signal for motion sensor and led control.', 'duration': 29.826, 'max_score': 1314.939, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/xTIBG_KD8Bk/pics/xTIBG_KD8Bk1314939.jpg'}, {'end': 1386.546, 'src': 'embed', 'start': 1357.034, 'weight': 4, 'content': [{'end': 1362.121, 'text': 'So if you wanted multiple windows of Thony to be able to pop up, you may want to uncheck that.', 'start': 1357.034, 'duration': 5.087}, {'end': 1365.304, 'text': 'log program usage some information like that.', 'start': 1362.581, 'duration': 2.723}, {'end': 1366.386, 'text': 'the interpreter.', 'start': 1365.304, 'duration': 1.082}, {'end': 1369.689, 'text': "again, i would not modify this unless you really know what the hell you're doing.", 'start': 1366.386, 'duration': 3.303}, {'end': 1372.713, 'text': 'the editor so highlight matching names.', 'start': 1369.689, 'duration': 3.024}, {'end': 1378.38, 'text': 'so highlight local variables, highlight parentheses, highlight syntax elements, highlight current line.', 'start': 1372.713, 'duration': 5.667}, {'end': 1380.882, 'text': 'uh. so this basically gives you some options.', 'start': 1379.12, 'duration': 1.762}, {'end': 1386.546, 'text': 'so when i was doing the uh, the highlighting the variables, i actually checked off these boxes here.', 'start': 1380.882, 'duration': 5.664}], 'summary': 'Thony allows for multiple windows, program usage logging and editing options with variable highlighting and syntax elements.', 'duration': 29.512, 'max_score': 1357.034, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/xTIBG_KD8Bk/pics/xTIBG_KD8Bk1357034.jpg'}, {'end': 1420.065, 'src': 'embed', 'start': 1395.834, 'weight': 0, 'content': [{'end': 1404.421, 'text': 'so it gives you some information here if you want to modify how things are debugged terminal, basically, how you want to deal with the terminal shell,', 'start': 1395.834, 'duration': 8.587}, {'end': 1407.843, 'text': 'how you want to deal with the shell, if you want to modify that, and then the assistant.', 'start': 1404.421, 'duration': 3.422}, {'end': 1410.404, 'text': "So the assistant, that's this window that opens up over here.", 'start': 1407.863, 'duration': 2.541}, {'end': 1416.585, 'text': 'So what I have is basically open assistant automatically when program crashes with an exception,', 'start': 1410.864, 'duration': 5.721}, {'end': 1420.065, 'text': 'and open assistant automatically when it has warnings for your code.', 'start': 1416.585, 'duration': 3.48}], 'summary': 'Customize terminal debugging and open assistant for program crashes and warnings.', 'duration': 24.231, 'max_score': 1395.834, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/xTIBG_KD8Bk/pics/xTIBG_KD8Bk1395834.jpg'}, {'end': 1523.116, 'src': 'embed', 'start': 1496.327, 'weight': 2, 'content': [{'end': 1505.652, 'text': "I don't want to have to teach you an entire freaking IDE suite, right? So this way, we can hyper focus just on Python on the Raspberry Pi.", 'start': 1496.327, 'duration': 9.325}, {'end': 1510.053, 'text': 'And then once you feel more comfortable with that, then we can use a better IDE.', 'start': 1506.132, 'duration': 3.921}, {'end': 1512.234, 'text': 'So this is just a little overview for you.', 'start': 1510.253, 'duration': 1.981}, {'end': 1514.354, 'text': 'Again a big thing to remember.', 'start': 1512.614, 'duration': 1.74}, {'end': 1523.116, 'text': "a big thing to remember is that if you're actually using the GPIO pins right, if the code is not running right?", 'start': 1514.354, 'duration': 8.762}], 'summary': 'Focus on python on the raspberry pi, then transition to a better ide for gpio pins.', 'duration': 26.789, 'max_score': 1496.327, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/xTIBG_KD8Bk/pics/xTIBG_KD8Bk1496327.jpg'}, {'end': 1572.036, 'src': 'embed', 'start': 1541.02, 'weight': 1, 'content': [{'end': 1543.321, 'text': 'i can see that being a problem with new people,', 'start': 1541.02, 'duration': 2.301}, {'end': 1551.943, 'text': "where you go and you write the fancy code and then you simply forget to actually run the script and then you're sitting there trying to figure out,", 'start': 1543.321, 'duration': 8.622}, {'end': 1553.603, 'text': 'um, what the issue is.', 'start': 1551.943, 'duration': 1.66}, {'end': 1556.424, 'text': "and the issue is simply that you don't have the script running.", 'start': 1553.603, 'duration': 2.821}, {'end': 1557.684, 'text': "so that's just something to keep in mind.", 'start': 1556.424, 'duration': 1.26}, {'end': 1559.266, 'text': 'So there you go.', 'start': 1558.686, 'duration': 0.58}, {'end': 1567.532, 'text': "Now you have a brief overview of the environment that we're going to be using at least initially in order to code Python scripts for our Raspberry Pi.", 'start': 1559.306, 'duration': 8.226}, {'end': 1572.036, 'text': 'Again, do remember that with the Raspberry Pi, you can use a lot of different programming languages,', 'start': 1567.893, 'duration': 4.143}], 'summary': 'New programmers may forget to run scripts, so always remember to execute the code to avoid issues. the environment for coding python scripts on raspberry pi supports multiple programming languages.', 'duration': 31.016, 'max_score': 1541.02, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/xTIBG_KD8Bk/pics/xTIBG_KD8Bk1541020.jpg'}], 'start': 1231.502, 'title': 'Raspberry pi tools, packages and thani ide overview', 'summary': 'Discusses raspberry pi tools and packages, highlighting gpio0 package for gpio pins, adding bob package, and provides an overview of thani ide for coding python scripts, emphasizing python 3 usage and flexibility to switch to other ides.', 'chapters': [{'end': 1336.374, 'start': 1231.502, 'title': 'Raspberry pi tools and packages', 'summary': 'Discusses the tools and packages available in raspberry pi os, emphasizing the use of gpio0 package for interacting with gpio pins and the capability to add and install additional packages, such as the bob package, to extend functionality and resources.', 'duration': 104.872, 'highlights': ['The GPIO0 package is essential for interacting with GPIO pins in Raspberry Pi OS. The GPIO0 package is a key resource for interacting with GPIO pins. It is built into the Raspberry Pi OS and allows the user to access functions and resources for GPIO interaction.', 'Users can add and install additional packages, such as the Bob package, to extend functionality. The chapter emphasizes the capability to add and install additional packages like the Bob package, providing the flexibility to extend functionality and resources in the Python environment of Raspberry Pi OS.', 'The chapter highlights the importance of packages for accessing functions and resources in the Python world. The chapter emphasizes the significance of packages in the Python world, indicating that functions and resources are accessed through the installation of packages into the Python environment.']}, {'end': 1754.566, 'start': 1336.714, 'title': 'Overview of thani ide for raspberry pi', 'summary': 'Provides an overview of using thani ide for coding python scripts for raspberry pi, emphasizing the importance of using python 3 and the flexibility to switch to other ides after mastering python coding, with a focus on simplicity and standardization.', 'duration': 417.852, 'highlights': ['Emphasizing the importance of using Python 3 The instructor stresses the importance of coding in Python 3 for Raspberry Pi projects due to the deprecation of Python 2 and the need to align with new technology standards.', 'Flexibility to switch to other IDEs after mastering Python coding The chapter encourages learners to start with Thani IDE for simplicity but highlights the flexibility to switch to other preferred IDEs once they have mastered Python coding.', 'Overview of Thani IDE for coding Python scripts for Raspberry Pi The chapter provides an overview of using Thani IDE for coding Python scripts for Raspberry Pi, emphasizing its simplicity and suitability for beginners to focus solely on Python coding.']}], 'duration': 523.064, 'thumbnail': 'https://coursnap.oss-ap-southeast-1.aliyuncs.com/video-capture/xTIBG_KD8Bk/pics/xTIBG_KD8Bk1231502.jpg', 'highlights': ['The GPIO0 package is essential for interacting with GPIO pins in Raspberry Pi OS.', 'Users can add and install additional packages, such as the Bob package, to extend functionality.', 'The chapter emphasizes the capability to add and install additional packages like the Bob package, providing the flexibility to extend functionality and resources in the Python environment of Raspberry Pi OS.', 'Emphasizing the importance of using Python 3 The instructor stresses the importance of coding in Python 3 for Raspberry Pi projects due to the deprecation of Python 2 and the need to align with new technology standards.', 'Overview of Thani IDE for coding Python scripts for Raspberry Pi The chapter provides an overview of using Thani IDE for coding Python scripts for Raspberry Pi, emphasizing its simplicity and suitability for beginners to focus solely on Python coding.', 'Flexibility to switch to other IDEs after mastering Python coding The chapter encourages learners to start with Thani IDE for simplicity but highlights the flexibility to switch to other preferred IDEs once they have mastered Python coding.']}], 'highlights': ['Python is the default standard programming language for Raspberry Pi, ideal for interacting with GPIO pins and starting programming.', 'Raspberry Pi projects for dummies books are recommended for project ideas, providing a better understanding and allowing for quick learning.', 'Raspberry Pi functions as a full-fledged computer with CPU, RAM, storage, and a complete network stack, enabling the use of multiple programming languages.', 'Python 3 is not backwards compatible to Python 2, so all new projects should be developed in Python 3.', 'Emphasizes the importance of using Python version 3 instead of version 2 for more advanced projects, with version 3.7.3 being recommended on a new Raspberry Pi OS installation.', 'The Thani Python IDE is introduced as the preferred choice for beginners due to its simplicity compared to Genie, which offers additional features and is more complex.', 'The PIR sensor is connected to GPIO pin 4, and the LED is connected to GPIO pin 16 for the Raspberry Pi project, enabling motion detection and LED activation.', 'The GPIO0 package is essential for interacting with GPIO pins in Raspberry Pi OS.', 'Users can add and install additional packages, such as the Bob package, to extend functionality.']}