8/10/2023 0 Comments Gedit python interpreter two tabs![]() ![]() ![]() This is because the programs we installed with Anaconda are NOT known from the Windows command line, but must be manually included – that is, they are included in the Anaconda prompt. A white window will open with a different prompt from the terminal one.īEWARE!! If the idle invocation returns a “Command not found” error, then we have not executed the Anaconda command line. In this way, we ask the operating system to start the program under the name “idle.exe”. (C:\Users\Angelo\Anaconda3\) C:\Users\Angelo>idle To run the IDLE editor, we type the word idle followed by the Enter key and wait. The current directory is crucial as it determines how we can indicate which programs to run. This line is called the current directory of the command line. The command line includes a flashing cursor after a line similar to C:\Users\Angelo>, which indicates that it is ready to receive our commands. With that, we can make use of the same functionalities (and more) as those provided by the graphical interface – for example, starting applications, copying and handling files, changing the configuration of our system, and so on. In our context, we call “terminal” the interface that we use to interact with our operating system. machines of the early computer age, whose only purpose was to act as a link between the human operator and the main-frame, receiving commands (the input) from the operator to the mainframe, and getting the result of the command (the output) back from the mainframe to the operator. ![]() ![]() This window is called terminal and shows the command line (or prompt).ĭigression: the name “terminal” derives from the fact that this software performs the same function as the old physical terminals, i.e. This will open a black window in which we can insert text. However, before using them, we will introduce the concept of computer terminal.įrom the Windows menu, look for the Anaconda folder and select Anaconda prompt. Actually, Spyder is much more complex software than IDLE, since - as we will see - it includes many additional features than a simple text editor (like debugging, integrated help and console, performance estimator, and so on). Hopefully, everything should go straightforward, without any hassle.Īs mentioned, we will use the IDLE editor and the Spyder editor. However, any text editor is fine (notepad, notepad , gedit, atom, pycharm and similar).ĭepending on the version of our PC (32-bit or 64-bit) and our operating system (Windows, MacOS, Linux), we download the right package from and install it following the instructions provided. We will consider two different alternatives: IDLE (the editor included in the standard Python installation) and Spyder (the editor included in Anaconda). A text editor - NOT a document editor like Word - to write our programs in Python.Python 3 - in the version installed with the Anaconda manager that includes Python 3.7 (or newer).The PC we will use in labs should be already configured using a Windows 10 virtual machine. Typically this step should be necessary on a private machine, like your laptop or home personal computer. However, many of the steps are very similar to those for other operating systems, like MacOS or Linux. The guide is written considering a Windows 10 system, since it is the most common to find. In particular, it guides you in the first installation and through the configuration of your system so that you can follow and participate in the lab activities. This page tries to help you take your first steps with the Python programming language. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |