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 Oct 16, 2018
1 parent 5599a78 commit 2ab08ac
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 @@ -489,7 +489,7 @@ def run_cell(self, cell, cell_index=0):
cell_map[cell_index] = []
continue
elif msg_type.startswith('comm'):
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 2ab08ac

Please sign in to comment.