Registry / devops / rendercanvas

rendercanvas

JSON →
library2.6.3pypypi✓ verified 82d ago

rendercanvas provides a unified canvas API for rendering with multiple backends (Wx, Qt, GLFW, Jupyter, Asyncio, Jupyter). Version 2.6.3, requires Python >=3.10, releases follow semver with monthly cadence.

pip install rendercanvas
INSTALL
IMPORT
SIG · RENDERCANVAS
R
rendercanvas
devopspythonv2.6.3
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

BaseRenderCanvas
from rendercanvas import BaseRenderCanvas
from rendercanvas import RenderCanvas
BaseLoop
from rendercanvas import BaseLoop
base
from rendercanvas import base

Create and run a simple canvas with default backend.

from rendercanvas import RenderCanvas, loop import os api_key = os.environ.get('RENDERCANVAS_API_KEY', '') # Just create a canvas with default backend canvas = RenderCanvas(title='Hello', size=(400,300)) canvas.draw(lambda: print('draw')) loop.run()
Debug
Known issues
breakingIn v2.0, the API was rewritten. Old imports like `from rendercanvas.backends import WxCanvas` no longer work. Use unified `RenderCanvas` class with backend selection via `backend` parameter.
fix
Replace with `from rendercanvas import RenderCanvas` and pass backend='wx' if needed.
affects: <2.0
breakingThe `loop.run()` call changed from `asyncio.run()` to internal event loop in v2.5. Existing asyncio code that manages its own loop may break.
fix
Use `loop.run()` provided by rendercanvas; for custom asyncio integration, see `loop.asyncio_event_loop`.
affects: >=2.5
gotchaBackend auto-detection depends on installed packages. If no backend is installed (e.g., `pip install rendercanvas` without extras), you get a RuntimeError. Always install a backend extra or check available backends.
fix
Install with e.g. `pip install rendercanvas[all]` or at least one of `[wx,qt,glfw,asyncio,jupyter]`.
affects: all
Upgrade
Version history
2.6.3latest on PyPI · released Mar 12, 2026
Audit
Dependencies

No dependency data recorded yet.

Agent activity
4 hits · last 30 days
node
4
Resources
rendercanvas — pip install rendercanvas · libregistry