{ } Raw JSON

bundles / IPython 9.17.0 / IPython / core / interactiveshell / InteractiveShell / set_next_input

function

IPython.core.interactiveshell:InteractiveShell.set_next_input

source: /dev/ipython/IPython/core/interactiveshell.py:2354

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