ipython/ipython

%%timeit could use local scope.

Open

#10,556 建立於 2017年5月12日

在 GitHub 查看
 (16 留言) (2 反應) (0 負責人)Python (16,095 star) (4,400 fork)batch import
help wanted

描述

You can't use timeit in a function (which is useful to test variable inputs of several function doing the same things, and plot graphs.

I believe a well placed @needs_local_scope and modification to timeit should allow that.

貢獻者指南