Skip to content

Enforcing matplotlib.use("Agg") #2

Description

@StatisticianOne

Currently when importing any of the entropy calculator, _core is imported, which runs matplotlib.use("Agg") automatically, suppressing plots to show as per intended by this package.

However, in experimental environments (like working with notebooks during testing for example), users may want other upstream scripts to output plots automatically: e.g. running df['feature'].plot() to visually inspect the trend. With matplotlib.use("Agg"), pandas' Series.plot() doesn't work naively.

Perhaps should restrict the matplotlib.use("Agg") option to within the utils.plot module itself if users want a clean CI pipeline/Docker integration.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions