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

Method set_next_input

IPython/core/interactiveshell.py:2119–2127  ·  view source on GitHub ↗

Sets the 'default' input string for the next command line. Example:: In [1]: _ip.set_next_input("Hello Word") In [2]: Hello Word_ # cursor is here

(self, s, replace=False)

Source from the content-addressed store, hash-verified

2117
2118 @skip_doctest
2119 def set_next_input(self, s, replace=False):
2120 """ Sets the 'default' input string for the next command line.
2121
2122 Example::
2123
2124 In [1]: _ip.set_next_input("Hello Word")
2125 In [2]: Hello Word_ # cursor is here
2126 """
2127 self.rl_next_input = s
2128
2129 def _indent_current_str(self):
2130 """return the current level of indentation as a string"""

Callers 2

recallMethod · 0.80
loadMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected