Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

use ipython magic in script

from IPython import get_ipython
ipython = get_ipython()
ipython.magic("timeit abs(-42)")
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #ipython #magic #script
ADD COMMENT
Topic
Name
7+2 =