Saving and sharing
Save Python projects, make lessons from your own code, and share them without losing current work.
Save a project
The quickest way to save is the Create stage (step 5) of the learning guide. Its Save your work card shows the file name first. The first save opens a save window filled in with "lesson title - my work.py"; you can change the name and folder there. After that, saving goes straight to the same file.
You can also use File → Save or Ctrl+S at any time. To keep a separate copy, use File → Save as or Ctrl+Shift+S and choose a new name or location. Korean filenames are supported.
Check the project name and Unsaved / Saved badge above the editor. A bundled lesson or one of your own lessons without a file badge is a reference; save a .py copy when you want a project file.
Use .py files to reopen your program. The virtual switch style is a session preference and is not saved in Python. Do not assume that a saved program also captures a live simulation's current input and execution state.
When the USB lock screen is open, use Save a copy there to save to the PC. Menus, editing, and lesson sharing stay locked until the original USB is validated again. See USB recovery. Keep a separate backup of important projects; the registered USB is also the application drive.
Open or replace a program
Use File → Open or Ctrl+O for an existing .py file. File → New or Ctrl+N starts a new project.
If you have unsaved work, choose Save, Don't save, or Cancel. Save keeps it before replacement, Don't save abandons the pending changes, and Cancel keeps the current project open. Canceling a file dialog also keeps your current project.
Unsupported Python text is preserved, but the program still has to meet the supported subset before it can be converted or executed. See Blocks and Python.
Recover interrupted work
After an interrupted session, choose File → Recover work… to look for a recovery draft. Startup and workspace reload do not open this prompt automatically. If there is no draft, No work to recover tells you so and your current program stays unchanged. If a draft is available, Restore your last work? offers Restore, Later, or Discard draft. Restore opens the captured blocks or Python as a new, unsaved project. Execution stays stopped. Inspect it, then use Save as to keep it under a chosen filename.
Recovery can replace the current program, so save any current changes first. Later keeps the draft available; Discard draft removes that recovery copy.
Recovery drafts are kept on that computer and are separate from your .py files. They may not include the latest edits and do not replace regular saves or backups. Restoring does not resume a simulation or restore the physical state of a board.
Create your own lesson
My lessons keeps lessons you make from your own code. When it is empty, it shows two steps: write code and create a lesson. The line under the heading explains that Share as file on a lesson card shares a lesson with a friend.
- Change a lesson or start a new project in the editor. Go to the editor takes you there.
- In My lessons, choose Create lesson from my code. The File → Create lesson from this code… menu item does the same.
- Check the code preview, then enter a Title. Only the title is required.
- Optionally enter a goal, an expected result, and missions (one per line), then choose Create lesson.
Each lesson card has Open lesson, Share as file, and a trash button. Use the search box to find one of your lessons. Your lessons supplement the bundled library; they do not replace the 83 built-in lessons.
The trash button removes a lesson from the list after you confirm. Saved lesson files and .py projects are not deleted.
Share and receive a lesson
On your lesson card, choose Share as file to save a .pava.json file, then give that file to a friend. To add a file you received, choose Add received lesson in My lessons. The app validates the file before adding it. A received lesson never runs automatically when you open it.
Keep .py backups for programs and .pava.json backups for your lessons. If adding a received lesson fails, keep the error text and ask the sender for the original shared file instead of changing its format manually.


