Book Image

Hands-On Application Development with PyCharm

By : Quan Nguyen
Book Image

Hands-On Application Development with PyCharm

By: Quan Nguyen

Overview of this book

JetBrain’s PyCharm is the most popular Integrated Development Environment (IDE) used by the Python community thanks to its numerous features that facilitate faster, more accurate, and more productive programming practices. However, the abundance of options and customizations can make PyCharm seem quite intimidating. Hands-on Application Development with PyCharm starts with PyCharm’s installation and configuration process, and systematically takes you through a number of its powerful features that can greatly improve your productivity. You’ll explore code automation, version control, graphical debugging/testing, management of virtual environments, and much more. Finally, you’ll delve into specific PyCharm features that support web development and data science, two of the fastest growing applications in Python programming. These include the integration of the Django framework as well as the extensive support for IPython and Jupyter Notebook. By the end of this PyCharm book, you will have gained extensive knowledge of the tool and be able to implement its features and make the most of its support for your projects.
Table of Contents (23 chapters)
Free Chapter
1
Section 1: The Basics of PyCharm
4
Section 2: Improving Your Productivity
9
Section 3: Web Development in PyCharm
14
Section 4: Data Science with PyCharm
18
Section 5: Plugins and Conclusion

To get the most out of this book

  • Readers of this book should be familiar with the general syntax and practices found in Python programming, such as using variables, functions, and importing packages.
  • An up-to-date version of Python is required before installing PyCharm. Python 3.6 and 3.7 were the current versions at the time of writing. You are also encouraged to have a distribution of Anaconda installed.
  • A good internet connection is required for various parts of this book, where external tools and libraries are downloaded and used.

Download the example code files

You can download the example code files for this book from your account at www.packt.com. If you purchased this book elsewhere, you can visit www.packt.com/support and register to have the files emailed directly to you.

You can download the code files by following these steps:

  1. Log in or register at www.packt.com.
  2. Select the SUPPORT tab.
  3. Click on Code Downloads & Errata.
  4. Enter the name of the book in the Search box and follow the onscreen instructions.

Once the file is downloaded, please make sure that you unzip or extract the folder using the latest version of:

  • WinRAR/7-Zip for Windows
  • Zipeg/iZip/UnRarX for Mac
  • 7-Zip/PeaZip for Linux

The code bundle for the book is also hosted on GitHub at https://github.com/PacktPublishing/Hands-on-Application-Development-with-PyCharm. In case there's an update to the code, it will be updated on the existing GitHub repository.

We also have other code bundles from our rich catalog of books and videos available at https://github.com/PacktPublishing/. Check them out!

Download the color images

Code in Action

Conventions used

There are a number of text conventions used throughout this book.

CodeInText: Indicates code words in text, database table names, folder names, filenames, file extensions, pathnames, dummy URLs, user input, and Twitter handles. Here is an example: "To follow this example, import the Chapter04/Inspection project into your workspace and open the main.py file, or copy and paste the following code into a PyCharm project."

A block of code is set as follows:

def main():
print(math.sqrt(4))

if __name__ == '__main__':
main()

When we wish to draw your attention to a particular part of a code block, the relevant lines or items are set in bold:

def distance(self, p):
diff = self - p
distance = sqrt(diff.x**2 + diff.y**2)
return distance

Any command-line input or output is written as follows:

python manage.py runserver

Bold: Indicates a new term, an important word, or words that you see on screen. For example, words in menus or dialog boxes appear in the text like this. Here is an example: "PyCharm also provides a customized view that optimally organizes workspaces in a scientific project called the SciView."

Warnings or important notes appear like this.
Tips and tricks appear like this.