UNPKG

magicpatch

Version:

Adds IPython / Jupyter magic commands to IJavascript

16 lines (13 loc) 293 B
/* global $$ */ function ls(cmd, ... args) { return this.exec("ls", args); } let {decorateMagic} = $$.addMagic.utils; decorateMagic( ls, __filename, "Runs `ls` in the shell with the specified arguments.", ["name", "%ls"], ); delete ls.argsParser; $$.addMagic("%ls", ls);