6 from IPython.core.magic
import Magics, magics_class, line_magic
7 from IPython.core.magic_arguments
import argument, magic_arguments, parse_argstring
15 super(JsMVAMagic, self).
__init__(shell)
20 @argument(
'arg', nargs=
"?", default=
"on", help=
'Enable/Disable JavaScript visualisation for TMVA')
22 from JPyInterface
import functions
23 args = parse_argstring(self.
jsmva, line)
26 elif args.arg ==
'off':
27 functions.unregister()
32 ipython.register_magics(JsMVAMagic)
def load_ipython_extension(ipython)
Function for registering the magic class.
def __init__(self, shell)
Standard constructor.