{ } Raw JSON

bundles / ipykernel 7.3.0 / ipykernel / kernelbase / Kernel / get_parent

function

ipykernel.kernelbase:Kernel.get_parent

source: /ipykernel/kernelbase.py:707

Signature

def get_parent(self, channel = None)

Summary

Get the parent request associated with a channel.

Extended Summary

Parameters

channel : str

the name of the channel ('shell' or 'control')

Returns

message : dict

the parent message for the most recent request on the channel.

Aliases

  • ipykernel.kernelbase.Kernel.get_parent