Okay, after seeing what the Python interpreter looks like and how it works on Windows, let's do the same on Mac OS. First of all, you access the Python interpreter right from the terminal by simply typing in Python, three, enter. At this point, the interpreter awaits your code, and you can work with this interface just fine. On the other hand, you might also want to use idle, which as I mentioned in the previous video, is pythons default ID meaning integrated development environment. In order to access idle on Mac OS, you can simply open it right from the terminal by typing in idle three. So let me exit the interpreter.
And now I'm going to type in idle, three, enter. Okay, so this is the version of idle designed for Python three under Mac OS, as in the command line version of the interpreter. You can notice some basic information being displayed right at the top of this window, such as the version of Python and some helpful commands, among other details. Also, you might see a warning message stating that the version of TCL TK in use may be unstable. TCL is a programming language and TK is an extension toolkit that provides a library of elements for building graphical user interfaces. an unstable version of TCL TK might trigger a crash for idle in some scenarios.
And of course, we want to avoid that. Now, you might not get this warning at all on your own Mac OS version, and that's great, you're ready to move on. However, if you do get this warning message, then you should go to pythons official website, which is python.org and then download the latest version of Python. Then simply install it as you would do with any other software package on a Mac OS. As soon as the package is installed, you can open up Though once again and you will see that the warning message is gone. Moreover, you have other options when it comes to running Python code.
Besides the command line interpreter and idle, you can use your own preferred IDE if you have one for instance by charm is very popular, as well as ipython, or Jupiter notebook. I will use idle throughout most of this course because it is instantly available when installing Python, thus simplifying your learning process and enabling you to focus on the code. However, you will also get to work with ipython and Jupiter notebook later in the course, when we're going to discuss data analysis and visualization. For now let's move on to the next lecture.