bundles / IPython 9.10.0 / IPython / core / completer / IPCompleter / _is_in_string_or_comment
function
IPython.core.completer:IPCompleter._is_in_string_or_comment
source: /IPython/core/completer.py :2653
Signature
def _is_in_string_or_comment ( self , text ) Summary
Determine if the cursor is inside a string or comment. Returns (is_string, is_in_expression) tuple: - is_string: True if in any kind of string - is_in_expression: True if inside an f-string/t-string expression
Aliases
-
IPython.core.completer.IPCompleter._is_in_string_or_comment