Welcome to Pyra IDE! This guide will help you get started with our lightweight Python development environment.
- Open Pyra IDE - The application will start with a default test project
- Create Virtual Environment - If prompted, create a Python virtual environment for your project
- Explore the Interface - Familiarize yourself with the layout and tools
- File Explorer (Left): Browse and manage your project files
- Code Editor (Center): Write and edit your Python code
- Console (Bottom): View script output and error messages
- Project Panel (Right, toggleable): Manage Python packages and environment
- New File - Create a new Python file
- New Folder - Create a new directory
- Refresh - Refresh the file tree
- Run - Execute the current Python script
- Stop - Stop the running script
- Format - Format your code with Ruff
- Lint - Check code quality with Ruff
- Click New Project in the toolbar
- Choose from available templates:
- Basic Python Project - Simple structure
- Data Science Project - With Jupyter notebook support
- Web Framework Project - Flask/FastAPI setup
- Enter project name and location
- Click Create Project
- Click Open Project in the toolbar
- Navigate to your project folder
- Select the project directory
- Pyra will automatically detect Python files and configuration
- Automatic Detection: Pyra checks for existing
.venvfolders - Easy Creation: Prompted to create virtual environment if none exists
- Python Version Selection: Choose from Python 3.9, 3.10, 3.11, or 3.12
- Open Project Panel - Click the button or use "Show Panel"
- Install Packages:
- Type package name in the search box
- Click Install to add to your project
- Packages are installed via
uv pip
- View Installed Packages - See all packages in your virtual environment
- Update Dependencies - Keep your packages up to date
- Syntax Highlighting - Full Python syntax support
- Auto-completion - IntelliSense for Python keywords and functions
- Error Detection - Real-time error highlighting
- Multiple Files - Work with multiple Python files simultaneously
- Format Code (): Automatically format your code using Ruff
- Lint Code (): Check for code quality issues and potential bugs
- Real-time Feedback: See linting issues as you type
- Open a Python file in the editor
- Click Run () or use keyboard shortcut
- View Output in the console below
- Monitor Execution - See real-time output and errors
- Real-time Output - See print statements as they execute
- Error Messages - Clear error reporting with line numbers
- Clear Console - Reset output when needed
- Scrollable History - Review previous execution results
- Open a Python file (.py)
- Set Breakpoints - Click the line number gutter, red dots will appear
- Start Debugging - Click the debug button in toolbar ( orange bug icon)
- Select Debug Mode - Choose "Debug" from the dropdown menu
- Continue (F5) - Continue execution until next breakpoint
- Step Over (F10) - Execute current line without entering functions
- Step Into (F11) - Step into function calls
- Step Out (Shift+F11) - Exit current function
- Stop - Stop the debug session
When the program pauses at a breakpoint, the debug panel displays:
-
Call Stack:
- Shows function call hierarchy
- Click different stack frames to view corresponding code location
- Understand program execution path
-
Variables Viewer:
- Locals - Variables in current function scope
- Globals - Variables in global scope
- Expand nested objects to view details
- Real-time display of variable value changes
- Add Breakpoint - Click the line number gutter
- Remove Breakpoint - Click the red dot again
- Multiple Breakpoints - Set breakpoints at different locations
- Breakpoint Verification - Breakpoints are verified after debug starts
- Set breakpoints at key locations - Place breakpoints where errors might occur
- Use step execution - Track code execution line by line
- Check variable values - Verify variables match expectations
- Observe call stack - Understand function call sequence
First-time use of debugging requires installing debugpy:
-
Install via Package Manager:
- Open project panel ()
- Search for "debugpy"
- Click Install
-
Or use command line:
# Windows .venv\Scripts\pip install debugpy # Linux/macOS .venv/bin/pip install debugpy
Q: Debug fails to start
- A: Ensure debugpy is installed (via package manager)
- A: Ensure virtual environment is created
Q: Breakpoints not hit
- A: Ensure breakpoint is on executable code line (not empty or comment)
- A: Restart debug session
Q: Variables display incorrectly
- A: Ensure program is paused at breakpoint
- A: Click the correct stack frame in call stack
- Open Settings - Click Settings button
- Choose Theme:
- Catppuccin Mocha (Dark theme)
- Catppuccin Latte (Light theme)
- Apply Changes - Theme updates immediately
- Font Size - Adjust editor font size
- Tab Size - Configure indentation preferences
- Word Wrap - Enable/disable line wrapping
- Minimap - Show/hide code minimap
- Use Virtual Environments - Always create isolated environments for projects
- Organize Files - Keep related code in folders
- Version Control - Use git for tracking changes (external to Pyra)
- Format Regularly - Use the Format button to maintain consistent style
- Fix Linting Issues - Address warnings and errors highlighted by Ruff
- Test Your Code - Run scripts frequently to catch errors early
- Close Unused Files - Keep only necessary files open
- Clear Console - Reset output when it gets lengthy
- Restart if Needed - Refresh the application if it becomes unresponsive
Q: Virtual environment not found
- A: Click "Create Environment" when prompted, or use the Project Panel to set up Python environment
Q: Package installation fails
- A: Ensure you have an active virtual environment and internet connection
Q: Code doesn't run
- A: Check that your file is saved and has a
.pyextension
Q: Linting errors persist
- A: Use the Format button to auto-fix many style issues
Q: Console output is missing
- A: Ensure your script has print statements or output commands
- Check Console - Error messages often provide helpful details
- Review Code - Use the linting tools to identify issues
- Restart Application - Close and reopen Pyra if problems persist
- 中文用户手册 - Chinese version of this guide
- 项目文档 - Technical documentation in Chinese
- Main README - Project overview and development information
Happy coding with Pyra IDE!