Skip to content

Perform async task before saving notebook #9764

@maartenbreddels

Description

@maartenbreddels

Hi all,

I am trying to implement saving extra content in mime bundle in cell output on document saving in jupyter-widgets/ipywidgets#3107 . For this I was planning to use context.saveState.connect((sender, saveState) => ... but looking at

this._saveState.emit('started');
I see that the event is emitted, and not awaited for.

This makes it impossible to do async tasks before saving the document. I was wondering if this is a design decision or a possible oversight, or simply not implemented.

cheers,

Maarten

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions