This documentation is for an old version of IPython. You can find docs for newer versions here.

Module: lib.clipboard

Utilities for accessing the platform’s clipboard.

1 Class

class IPython.lib.clipboard.ClipboardEmpty

Bases: ValueError

3 Functions


Get the current clipboard’s text on Windows.

Requires Mark Hammond’s pywin32 extensions.


Get the clipboard’s text on OS X.


Get the clipboard’s text using Tkinter.

This is the default on systems that are not Windows or OS X. It may interfere with other UI toolkits and should be replaced with an implementation that uses that toolkit.