Skip to content

support transient field, update_display_data#204

Merged
rgbkrk merged 1 commit into
ipython:masterfrom
minrk:update-display-data
Nov 18, 2016
Merged

support transient field, update_display_data#204
rgbkrk merged 1 commit into
ipython:masterfrom
minrk:update-display-data

Conversation

@minrk

@minrk minrk commented Nov 8, 2016

Copy link
Copy Markdown
Member

API addition:

DisplayPublisher.publish accepts two new keyword-args: update: bool, transient: dict (new args, fully backward-compatible).

Message spec:

adds third transient dict next to data, metadata for data that shouldn't be persisted as part of files.

display_id will be added to this this transient dict by display(obj, display_id=...)

IPython PR: ipython/ipython#10048

This is the ipykernel piece of jupyter/jupyter_client#209

cc @rgbkrk

@rgbkrk

rgbkrk commented Nov 9, 2016

Copy link
Copy Markdown
Member

I've got an initial implementation that I'll start writing tests for in nteract and evaluating the implementation with direct action mocks. Looking forward to trying this out with the IPython kernel.

nteract/nteract#1162

@rgbkrk

rgbkrk commented Nov 16, 2016

Copy link
Copy Markdown
Member

What do you think the order of merging and shipping this + ipython/ipython#10048 is?

@minrk minrk changed the title [WIP] support transient field, update_display_data support transient field, update_display_data Nov 18, 2016
@minrk

minrk commented Nov 18, 2016

Copy link
Copy Markdown
Member Author

This one can go first, but I'll make sure that IPython behaves gracefully with ipykernel stable, so release order shouldn't matter too much. The main question that's relevant to both is deciding on the new signature for DisplayPublisher.publish, which is a common API in both packages.

This should be good to go now, in fact.

@rgbkrk rgbkrk merged commit 99bfb03 into ipython:master Nov 18, 2016
@minrk minrk deleted the update-display-data branch November 18, 2016 13:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants