TenjintShell.extract_input_lines

TenjintShell.extract_input_lines(range_str, raw=False)

Return as a string a set of input history slices.

Parameters
  • range_str (string) – The set of slices is given as a string, like “~5/6-~4/2 4:8 9”, since this function is for use by magic functions which get their arguments as strings. The number before the / is the session number: ~n goes n back from the current session.

  • raw (bool, optional) – By default, the processed input is used. If this is true, the raw input history is used instead.

Notes

Slices can be described with two notations:

  • N:M -> standard python form, means including items N…(M-1).

  • N-M -> include items N..M (closed endpoint).