You are viewing an older version (9.12.0). Go to latest (9.13.0)
{ } Raw JSON

bundles / IPython 9.12.0 / IPython / core / interactiveshell / InteractiveShell / set_next_input

function

IPython.core.interactiveshell:InteractiveShell.set_next_input

source: /IPython/core/interactiveshell.py :2295

Signature

def   set_next_input ( self s replace = False )

Summary

Sets the 'default' input string for the next command line.

Extended Summary

Example

In [1]: _ip.set_next_input("Hello Word")
In [2]: Hello Word_  # cursor is here

Aliases

  • IPython.InteractiveShell.set_next_input