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)
| 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""" |