bundles / jupyter_client 8.10.0 / jupyter_client / client / KernelClient / complete
function
jupyter_client.client:KernelClient.complete
source: /jupyter_client/client.py:674
Signature
def complete(self, code: str, cursor_pos: int | None = None) → strSummary
Tab complete text in the kernel's namespace.
Parameters
code: strThe context in which completion is requested. Can be anything between a variable name and an entire cell.
cursor_pos: int, optionalThe position of the cursor in the block of code where the completion was requested. Default:
len(code)
Returns
: The msg_id of the message sent.
Aliases
jupyter_client.KernelClient.complete