2 ms·
Python using IPython: import IPython IPython.embed() Or, using only the Python standard library: import code namespace = globals().copy() namespace
by teddyh 4y ago
Python using IPython:
import IPython
IPython.embed()
Or, using only the Python standard library:
import code
namespace = globals().copy()
namespace.update(locals())
code.interact("", None, namespace)