yt.funcs.
insert_ipython
(num_up=1)[source]¶Placed inside a function, this will insert an IPython interpreter at that current location. This will enabled detailed inspection of the current exeuction environment, as well as (optional) modification of that environment. num_up refers to how many frames of the stack get stripped off, and defaults to 1 so that this function itself is stripped off.