def clipboard_get(self):
 from IPython.lib.clipboard import osx_clipboard_get, tkinter_clipboard_get, win32_clipboard_get
 if (sys.platform == 'win32'):
  chain = [win32_clipboard_get, tkinter_clipboard_get]
 elif (sys.platform == 'darwin'):
  chain = [osx_clipboard_get, tkinter_clipboard_get]
 else:
  chain = [tkinter_clipboard_get]
 dispatcher = CommandChainDispatcher()
 for func in chain:
  dispatcher.add(func)
 text = dispatcher()
 return text

def clipboard_get ( self ) : from IPython . lib . clipboard import osx_clipboard_get , tkinter_clipboard_get , win32_clipboard_get if ( sys . platform == 'win32' ) : chain = [ win32_clipboard_get , tkinter_clipboard_get ] elif ( sys . platform == 'darwin' ) : chain = [ osx_clipboard_get , tkinter_clipboard_get ] else : chain = [ tkinter_clipboard_get ] dispatcher = CommandChainDispatcher ( ) for func in chain : dispatcher . add ( func ) text = dispatcher ( ) return text
get text from the clipboard .