rlmesh.View
How to show a live eval. Pass to run / session as view=.
View(
backend: str = 'terminal',
port: int = 8008,
fps: int = 30,
source: str | None = None,
format: str = 'jpeg',
quality: int = 75,
)The common cases are the string shorthands "terminal" / "http" /
"http:9000" / "both"; construct a View directly only to tune.
Attributes
- backendWhere to draw --
"terminal"(in-place half-blocks),"http"(a local web page), or"both". - portHTTP port for the
"http"/"both"backends. - fpsTarget frame rate; frames produced faster are dropped.
- sourceWhich source to show first by label (a render label or an image role);
Noneshows the first available. - formatEncoding for HTTP frames,
"jpeg"or"png". - qualityJPEG quality 1..100 (ignored for PNG).
backend
attribute[source]backend: strWhere to draw – "terminal" (in-place half-blocks), "http" (a local web page), or "both".
port
attribute[source]port: intHTTP port for the "http" / "both" backends.
fps
attribute[source]fps: intTarget frame rate; frames produced faster are dropped.
source
attribute[source]source: str | NoneWhich source to show first by label (a render label or an image role); None shows the first available.
format
attribute[source]format: strEncoding for HTTP frames, "jpeg" or "png".
quality
attribute[source]quality: intJPEG quality 1..100 (ignored for PNG).