Skip to content

Commit

Permalink
jupyter#751 handling widget metadata without model_name
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 48c6edd commit d513964
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nbconvert/preprocessors/execute.py
Original file line number Diff line number Diff line change
Expand Up @@ -569,8 +569,8 @@ def _serialize_widget_state(state):
TODO: Does not currently split binary buffers or remove default values.
"""
return {
'model_name': state['_model_name'],
'model_module': state['_model_module'],
'model_name': state.get('_model_name'),
'model_module': state.get('_model_module'),
'model_module_version': state.get('_model_module_version'),
'state': state,
}
Expand Down

0 comments on commit d513964

Please sign in to comment.