Skip to content

Override callbacks are not getting cleaned up when a callback is cleared #2864

Open
@jasongrout

Description

@jasongrout

Kernel.prototype.clear_callbacks_for_msg = function (msg_id) {
is not disposing any overrides registered for a given message id, so we are still finding the override callbacks at
var overrides = this._msg_callbacks_overrides[msg_id];
even if the original callbacks are gone.

We should delete the override array and remove every callback in it from the callbacks array.

(See jupyter/jupyter_client#297 (comment) for more context)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions