##// END OF EJS Templates
Backport PR #4008: Transform code before %prun/%%prun runs...
Backport PR #4008: Transform code before %prun/%%prun runs This makes it so that prun works with IPython-specific syntax (e.g., `%prun %logon`). This mirrors the change @fperez made in commit 3ac024c8b39300055bd515e9d88186049a30cdbe for the timeit magic.

File last commit:

r6183:26a70f4b
r12169:3fed8520
Show More
daft_extension.py
12 lines | 285 B | text/x-python | PythonLexer
# -*- coding: utf-8 -*-
"""
Useless IPython extension to test installing and loading extensions.
"""
some_vars = {'arq': 185}
def load_ipython_extension(ip):
# set up simplified quantity input
ip.push(some_vars)
def unload_ipython_extension(ip):
ip.drop_by_id(some_vars)