On this page:
Whatever you do in PyCharm Edu, you do that in the context of a project. A project is an organizational unit that represents a complete software solution. It serves as a basis for coding assistance, bulk refactoring, coding style consistency, etc.
Such project directory contains the
.idea directory, with the following files:
*.imlfile that describes the project structure.
workspace.xmlfile that contains your workspace preferences.
- A number of
.xmlfile is responsible for its own set of settings, that can be recognized by its name:
Thus, for example, adding a new run/debug configuration and changing encoding will affect two different
.xmlfiles. This helps avoid merge conflicts when the project settings are stored in a version control system and modified by the different team members.
All the settings files in the
.idea directory should be put under version control except the
workspace.xml, which stores your local preferences. The
workspace.xml file should be marked as ignored by VCS.
.idea directory is not visible in the Project view of the Project tool window.
The directory structure of each project contains the
.idea directory for the PyCharm Edu-specific settings and the project file, and libraries.
PyCharm Edu suggests the following types of projects:
- Educational project is intended for students, who want to learn Python.
An educational project consists of the following entities:
- Lessons, marked . When a lesson is completed, its icon changes to .
- Tasks, marked . When a task is completed, its icon changes to .
- Python files, marked , and all other file types, supported by PyCharm Edu.
- Sandbox, where you can create files and folders of your choice.
- Course is intended for the educators.
A course consists of the following entities:
A course is just a project of a special type. It consists of lessons.
- Task description which you have to type in the Task Description tool window
- The file with the extension
.py, that contains the exercise code and can contain answer placeholders
- the test file
tests.pythat helps you make sure that the students have fulfilled your task correctly.
Also a task can contain more files required for fulfilling it.
- Answer placeholder
An answer placeholder is a frame shown to the students that replaces and hides a part of your initial code. These placeholders should contain descriptions of actions to be taken by the students to complete the tasks. You have to create descriptions of these actions yourself.
The first mouse click inside the answer placeholder selects the entire placeholder; the second mouse click removes selection.
Besides these groups of files, PyCharm Edu provides special file
test_helper.pythat contains useful functions, which a lecturer may use for writing tests.
- Empty project is intended for pure Python programming. The directory structure of such project contains the
.ideadirectory for the PyCharm Edu-specific settings and the project file, and libraries.