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

Method set_next_input

IPython/core/interactiveshell.py:2297–2305  ·  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

2295
2296 @skip_doctest
2297 def set_next_input(self, s, replace=False):
2298 """ Sets the 'default' input string for the next command line.
2299
2300 Example::
2301
2302 In [1]: _ip.set_next_input("Hello Word")
2303 In [2]: Hello Word_ # cursor is here
2304 """
2305 self.rl_next_input = s
2306
2307 #-------------------------------------------------------------------------
2308 # Things related to text completion

Callers 2

recallMethod · 0.80
loadMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected