Skip to content

matplotlib shouldn't call gc.collect() #3044

Closed
@kmike

Description

@kmike

Hi,

I'm working with a big IPython notebook with inline matplotlib charts and a lot of objects in memory. When a chart is drawn IPython closes the matplotlib figure; when this happens matplotlib calls gc.collect() here (there is an another possible gc.collect call here). This causes 5-10s delays, making interactive work uncomfortable.

What do you think about removing these calls, or maybe using less aggressive settings, like generation 0 or 1? In my case gc.collect(0) and gc.collect(1) are instant unlike gc.collect() or gc.collect(2).

I've fired a related issue to the IPython bug tracker: ipython/ipython#5795

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions