Skip to content

Pinning files for learners

You can pin important files to the editor working area in a particular order so that a learner has them in front of their eyes.

The following two fields are used in the exercise-config.json file to indicate that a file is pinned:

  • pinned — the specified file or files will be pinned in the editor. In this case a learner can unpin the file.
  • held — the specified file or files will be pinned in the editor. In this case a learner cannot unpin the file.

The syntax is the JSON format.

Example:

[Copy Code](javascript:void(0)) JSON
"pinned": [ "file1.py", "file2.py" ]
[Copy Code](javascript:void(0)) JSON
"held": [ "file1.py" ],