##// END OF EJS Templates
Apply @needs_local_scope to cell magics....
Apply @needs_local_scope to cell magics. While technically this will not be completely needed (at cell magics cannot be in nested scope), it make the API a tiny bit more consistent between line and cell magics. (Bug report I recieved personally that will be submitted later)

File last commit:

r15516:43a46eb6
r24895:43246e6d
Show More
test_decorators.py
9 lines | 170 B | text/x-python | PythonLexer
from IPython.utils import decorators
def test_flag_calls():
@decorators.flag_calls
def f():
pass
assert not f.called
f()
assert f.called