Book Image

Mastering PyCharm

By : Nafiul Islam
Book Image

Mastering PyCharm

By: Nafiul Islam

Overview of this book

Table of Contents (18 chapters)
Mastering PyCharm
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

The PyCharm console


The PyCharm console is another fundamental part of PyCharm. In essence, it's the Python REPL with autocompletion and variable watch (which we will get into later). Right now, let's take a look at what the console offers us:

You can of course invoke the same action from the Find Action and Search Everywhere search boxes. This opens up the following:

Most buttons are self-explanatory, except for the two indicated by the arrows. The first is what I like to call variable watch; in essence, this shows you all the variables in your console (by pressing it, you toggle it):

New variables and the changes in variables are shown in blue:

The Variable Watch button is even more powerful, but that's a topic for Chapter 6, Debugging.

The second button after variable watch is actually pretty useful; it's a history of all the commands you've entered into your console throughout the project, so even if you close PyCharm or even shut down your system, the history will have dutifully recorded...