[IPython-User] [IPython-user] can't define magic for "cls"
Wed Sep 21 17:20:31 CDT 2011
On Tue, Sep 20, 2011 at 9:15 AM, Dr. Phillip M. Feldman
> I would like to define a "magic" that clears the screen. I added the
> following to my ipy_user_conf.py file, to no avail:
> ip.expose_magic("cls", os.system("cls")
> Any suggestions will be appreciated.
ip.expose_magic("cls", lambda self, s: os.system("cls"))
should do for ipython 0.10.x that you are using.
More information about the IPython-User