bundles / jupyter_client latest / jupyter_client / adapter / code_to_line
function
jupyter_client.adapter:code_to_line
source: /jupyter_client/adapter.py:12
Signature
def code_to_line(code: str, cursor_pos: int) → tuple[str, int]Summary
Turn a multiline code block and cursor position into a single line and new cursor position.
Extended Summary
For adapting complete_ and object_info_request.
Aliases
jupyter_client.adapter.code_to_line