IPython Operations: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
(Created page with "=Internal= * IPython")
 
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
=Internal=
=Internal=
* [[IPython#Subjects|IPython]]
* [[IPython#Subjects|IPython]]
=Commands=
==<tt>%run</tt>==
<syntaxhighlight lang='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>

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)