且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何减少Ipython并行内存的使用

更新时间:2023-11-11 22:13:34

Ipython并行客户端和控制器存储过去的结果以及过去事务中的其他元数据.

Ipython parallel clients and controllers store past results and other metadata from past transactions.

IPython.parallel.Client类提供了一种清除此数据的方法:

The IPython.parallel.Client class provides a method for clearing this data:

Client.purge_everything()

documented here. There is also purge_results() and purge_local_results() methods that give you some control over what gets purged.