Note
This documentation is for a development version of IPython. There may be significant differences from the latest stable release.
Token-related utilities
wrap generate_tokens to catch EOF errors
Return the line in a cell at a given cursor position
Used for calling line-based APIs that don’t support multi-line input, yet.
| Parameters: | cell: text :
cursor_pos: integer :
|
|---|---|
| Returns: | (line, offset): (text, integer) :
|
Get the token at a given cursor
Used for introspection.
| Parameters: | cell : unicode
cursor_pos : int
|
|---|