MCPcopy Create free account
hub / github.com/ipython/ipython / paste

Method paste

IPython/core/tests/test_magic_terminal.py:82–85  ·  view source on GitHub ↗

Paste input text, by default in quiet mode

(self, txt, flags='-q')

Source from the content-addressed store, hash-verified

80 """Multiple tests for clipboard pasting"""
81
82 def paste(self, txt, flags='-q'):
83 """Paste input text, by default in quiet mode"""
84 ip.hooks.clipboard_get = lambda : txt
85 ip.magic('paste '+flags)
86
87 def setUp(self):
88 # Inject fake clipboard hook but save original so we can restore it later

Callers 8

test_pasteMethod · 0.95
test_paste_pypromptMethod · 0.95
test_paste_py_multiMethod · 0.95
test_paste_emailMethod · 0.95
test_paste_email2Method · 0.95
test_paste_email_pyMethod · 0.95
test_paste_echoMethod · 0.95

Calls 1

magicMethod · 0.45

Tested by

no test coverage detected