Skip to content

Can't run Figure.export in an offscreen setting. #893

@jgleyze

Description

@jgleyze

I am running fastplotlib (v0.5.1) in a headless server and I'd like to export the render of my figure however I can't seem to make the Figure.export method work...

Here is a small reproduction of my problem:

import fastplotlib as fpl
import numpy as np

if __name__ == "__main__":
    fig = fpl.Figure(canvas="offscreen", size=(900, 600))
    fig[0, 0].add_image(np.random.rand(100, 100, 3))
    rgb = fig.export_numpy(rgb=True)

This throws AttributeError: 'Ordered2FragmentBlender' object has no attribute 'color_tex'

I might forget something, I am quite new to fpl !

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions