Skip to content

Commit

Permalink
jupyter#751 update widget state on execution
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukasz Mitusinski authored and maartenbreddels committed Mar 22, 2019
1 parent ad77716 commit 42d7821
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nbconvert/preprocessors/execute.py
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ def run_cell(self, cell, cell_index=0):
continue
elif msg_type.startswith('comm'):
self.handle_comm_msg(outs, msg, cell_index)
self.widget_state[content['comm_id']] = content['data']['state']
self.widget_state.setdefault(content['comm_id'], {}).update(content['data']['state'])
continue

display_id = None
Expand Down

0 comments on commit 42d7821

Please sign in to comment.