def inote(ip,arg):
    import time
    fname = ip.ipython_dir + '/notes.txt'
    
    try:
        entry = " === " + time.asctime() + ': ===\n' + arg.split(None,1)[1] + '\n'
        f= open(fname, 'a').write(entry)    
    except IndexError:
        ip.hooks.editor(fname)
inote Hello world
dataset/ETHPy150Open ipython/ipython-py3k/IPython/quarantine/ipy_fsops.py/inote