##// END OF EJS Templates
Add Julia to default script magics....
Add Julia to default script magics. I have been adding this line manually to my local copies of IPython/Jupyter and even suggest to do so in a Stack Overflow question, it would be nice if this worked by default. https://stackoverflow.com/questions/24091373/best-way-to-run-julia-code-in-an-ipython-notebook-or-python-code-in-an-ijulia-n/24106944#24106944 Should I also add R or any other language? Is this not the correct way to do it? Please let me know, cheers!

File last commit:

r15516:43a46eb6
r23958:4a26161a
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