UNPKG

magicpatch

Version:

Adds IPython / Jupyter magic commands to IJavascript

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