Open, create or clone a project
A project is a folder. Use the launcher to create one, open one from disk, clone a repository or return to work you opened before.
Open the project launcher
- Choose File → Show Project Launcher (⇧⌘L).
- Read RECENTLY OPENED for the projects you used last.
The Welcome to Py Editor window lists up to six recent project cards.
Create a project in a new folder
- In the launcher, click New Python Project.
- Enter the project name in Save As.
- Check Where and change the destination folder if you want.
- Click Create.
The project opens in its own window with main.py and pyproject.toml in the Project panel. Creating a project does not close other project windows.
Open a folder that is not in the launcher yet
- Click Open Project in the launcher, or choose File → Open Project… (⌘O).
- Select the folder in the macOS chooser. Press Command-Shift-G and enter a path if you know it.
- Click Open.
The folder opens in a new project window and its files appear in Project. The folder then appears in the launcher list. Opening a folder does not create a Python environment or run anything, so a folder of documents opens the same way.
Find a project you opened before
- Choose File → Show Project Launcher.
- Type part of the project name, its
pyproject.tomldescription or its path into Search a workspace, or type a path…. Press Command-K to return focus to the field. - Use the Up and Down arrow keys to select a result under RESULTS.
- Press Return to open it.
Click Clear workspace search at the end of the field to return to the recent list. The search covers projects the launcher already knows; use Open Project the first time you open a folder.
Reopen a recent project from the menu
Choose File → Recent Projects and pick a project name. The toolbar's project chip menu also lists up to six recent projects.
Clone a repository
Cloning needs Helper.
- Click Clone Repository in the launcher, or choose Git → Clone….
- Enter the repository address in Repository URL.
- Check Save in, and click Choose… to pick a different parent folder.
- Click Clone.
Clone stays unavailable until the URL supplies a usable repository name. Py Editor clones the repository and opens it as a project.
Switch between open project windows
Choose the project name from the macOS Window menu to bring an already-open project forward. Its files and panel arrangement are as you left them. This switches existing windows; it does not create a project.
Remove a project from the launcher list
- Control-click the project card in the launcher.
- Choose Remove from Projects.
The card disappears from the list. The folder stays on disk, and you can open it again with Open Project.