neu_draw.backends

Renderer backends. Nothing here is imported by neu_draw itself.

A backend turns a Scene into something on screen. Importing one needs a canvas backend and a GPU adapter, which a cluster worker or CI lacks, so it is imported on demand:

from neu_draw.backends import get_backend
view = get_backend().show(scene)

pygfx is the only backend.

Submodules

Attributes

Functions

get_backend([name]) → Any

Import and return a backend module, with a useful error when it is missing.

Package Contents

neu_draw.backends.get_backend(name: str = 'pygfx') → Any

Import and return a backend module, with a useful error when it is missing.

neu_draw.backends.KNOWN = ('pygfx',)