MCPcopy Index your code
hub / github.com/ipython/ipython / paste

Method paste

tests/test_magic_terminal.py:103–106  ·  view source on GitHub ↗

Paste input text, by default in quiet mode

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

Source from the content-addressed store, hash-verified

101 """Multiple tests for clipboard pasting"""
102
103 def paste(self, txt, flags="-q"):
104 """Paste input text, by default in quiet mode"""
105 ip.hooks.clipboard_get = lambda: txt
106 ip.run_line_magic("paste", flags)
107
108 def setUp(self):
109 # 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

run_line_magicMethod · 0.80

Tested by

no test coverage detected