Package Management Overview¶
XPyCode includes a built-in package manager that lets you install and manage Python packages per workbook with automatic dependency resolution.
Key Features¶
- Per-Workbook Isolation - Each workbook has its own packages
- Out of Python Environment - Your python environment is not impacted by packages features
- PyPI Integration - Search and install from PyPI or another repository
- Dependency Resolution - Automatic dependency handling
- Version Control - Choose specific package versions
- Extras Support - Install with optional dependencies
- Python Paths - Manual addition of modules locations
- Cache - Local cache for all packages and versions
Package Manager Panel¶
Access the Package Manager from the left dock:
- Click the Packages tab
- Search for packages
- Select version and extras
- Click Install/Update
Searching Packages¶
- Type package name in search box
- Click Search
- Browse results
- Select a package version and potential extras
- Click Add to List to update the Packages list
Installing Packages¶
- Click Install/Update in Packages sub-widget
- Wait for installation to complete
Batch Package Resolution
The entire packages list is resolved and updated at once. Nothing is installed or changed until the Install/Update button is clicked. This allows you to queue multiple package changes before applying them.
Installation progress appears in the Console.
Updating Packages¶
- Find the installed package or double click on the package in the list
- Select a newer version
- Click Add to List
- Click Install/Update
Uninstalling Packages¶
- Find the installed package in the list
- Click Remove
- Click Install/Update
Configuring Package URLs¶
To configure custom package repositories:
- Navigate to File → Settings
- Select Package Management section
- Configure the following options:
- Pip Settings: Set custom repository URLs and proxy configuration
- API Mappings: Configure API URLs for package repositories (optional). PyPI provides an API that facilitates metadata retrieval. You can add additional API URLs if they comply with the PyPI format.
Next Steps¶
- Packages Algorithm - Detailed package installation logic