2 from IPython.core.magic
import (Magics, magics_class, cell_magic)
3 from IPython.core.magic_arguments
import (argument, magic_arguments, parse_argstring)
11 @argument(
'-a',
'--aclic', action=
"store_true", help=
'Compile code with ACLiC.')
12 @argument(
'-d',
'--declare', action=
"store_true", help=
'Declare functions and/or classes.')
13 def cpp(self, line, cell):
14 '''Executes the content of the cell as C++ code.'''
15 args = parse_argstring(self.
cpp, line)
17 utils.invokeAclic(cell)
19 utils.declareCppCode(cell)
21 utils.processCppCode(cell)
24 ipython.register_magics(CppMagics)
def load_ipython_extension(ipython)
def cpp(self, line, cell)