| tags | Hack Week, IDE, 2022 |
|---|
This file covers the PyCharm IDE overview discussed on Day 1 of the 2022 Plasma Hack Week.
PyCharm is an IDE distributed by JetBrains that focuses around code development for Python projects. Even though PyCharm is Python centric, it does support development of many languages.
PyCharm provides several versions. There is a free open-source Community version and a pay-for Professional version. Both have an installer that can be downloaded directly from JetBrains. The Community version can also be found on GitHub (https://github.com/JetBrains/intellij-community/tree/master/python).
In additional to the Community and Professional versions, JetBrains provides an Educational version. This gives students and teachers free access to many of the Professional features. One can request an educational license with the following link: https://www.jetbrains.com/community/education/.
- PyCharm's YouTube Tour
- JetBrain's PyCharm YouTube playlist
- Open
plasmapyin PyCharm - Highlight Project Tab
- IDE is package development centric, not script centric
- There is a LightEdit mode for editing files without creating a project
- PyCharm Settings: Project Interpreter
- Defines Python environment for project
- Can create virtual environments
- can define several environments
- selectable in bottom right cornert
- Terminal integration
- utilizes project environment
- you can select which terminal flavor you like
- Python console integration
- IPython console
- utilizes project environment
- current project is appended to the PYTHONPATH
- Highlight Code Editor
- color highlighting
- line numbering and rules
- splitting windows
- code inspection and linters
- use
plasmapy/formulary/speeds.pyas example - PEP8
- can be configured in settings
- highlight gutter indicators/warnings
- use
- version control (
git) integration- Will cover in more detail on Day 2.
- can utilize many version control systems, but we'll focus on
git gitdropdown has many of the basic git commandsgittab- view local changes
- view git history
- GitHub integration
- Will cover in more detail on Day 2.
- go to
settings->Version Control->GitHub - allows you to communicat directly with GitHub
- View Pull Request
- Push and Pull changes
- Debugger and Test runners
- builtin debugging
- test runners for both
unittestsandpytest - support for code coverage
- can run debugger from Python Consol and from tests
- Extendable with Plugins
Settings->Plugins