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
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)andgc.collect(1)are instant unlikegc.collect()orgc.collect(2).I've fired a related issue to the IPython bug tracker: ipython/ipython#5795