Answers for "use ipython magic in script"

0

use ipython magic in script

from IPython import get_ipython
ipython = get_ipython()
ipython.magic("timeit abs(-42)")
Posted by: Guest on November-23-2020

Python Answers by Framework

Browse Popular Code Answers by Language