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 Oct 16, 2018
1 parent ddda9c3 commit 95683ad
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 @@ -552,8 +552,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 95683ad

Please sign in to comment.