When using %%timeit to get exec time of a code block, like below:
%%timeit
mean, var = 0., 0.
for i in range(1000000):
x = np.random.randn()
a = np.random.randn()
z = np.random.randn()
m = np.random.randn()
y = x * a * z * m
mean += y
var += y**2
mean / 1000000, math.sqrt(var / 1000000)
Get indent error when using SendLineToREPL(post below).
Screenshots
Additional context
From the Traceback like below, can find no spaces(indent) following each \n.
get_ipython().run_cell_magic('timeit', '', 'mean, var = 0., 0.\nfor i in range(1000000):\nx = np.random.randn()\na = np.random.randn()\nz =
Describe the bug
When using
%%timeit
to get exec time of a code block, like below:Get indent error when using
SendLineToREPL
(post below).Screenshots
Additional context
From the Traceback like below, can find no spaces(indent) following each
\n
.get_ipython().run_cell_magic('timeit', '', 'mean, var = 0., 0.\nfor i in range(1000000):\nx = np.random.randn()\na = np.random.randn()\nz =