IPython Operations: Difference between revisions
Jump to navigation
Jump to search
(→help()) |
|||
(2 intermediate revisions by the same user not shown) | |||
Line 6: | Line 6: | ||
<syntaxhighlight lang='py'> | <syntaxhighlight lang='py'> | ||
%run some_file.py | %run some_file.py | ||
</syntaxhighlight> | |||
==<tt>%timeit</tt>== | |||
Times the operation: | |||
<syntaxhighlight lang='py'> | |||
%timeit a2 = a * 2 | |||
</syntaxhighlight> | |||
<font size=-2> | |||
1.88 ms ± 43.3 µs per loop (mean ± std. dev. of 7 runs, 100 loops each) | |||
</font> | |||
==<tt>help()</tt>== | |||
<syntaxhighlight lang='py'> | |||
help(np.array) | |||
</syntaxhighlight> | </syntaxhighlight> |
Latest revision as of 20:21, 20 May 2024
Internal
Commands
%run
%run some_file.py
%timeit
Times the operation:
%timeit a2 = a * 2
1.88 ms ± 43.3 µs per loop (mean ± std. dev. of 7 runs, 100 loops each)
help()
help(np.array)