code: def ipython_paste(*args, **kwargs):
      
      if WIN32:
          pass
      else:
          winhandle = 'joncrall@Hyrule'
          args1 = ['wmctrl', '-a', winhandle]
          args2 = ['xdotool', 'key', 'shift+5', 'p', 'a', 's', 't', 'e', 'enter']
          os.system(' '.join(args1))
          os.system(' '.join(args2))
docs: pastes for me FIXME: make something like this work on unix and windows