Skip to content

Commit

Permalink
[BEAM-9277] Fix exception when running in IPython notebook.
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesccychen committed Feb 14, 2020
1 parent 290bd9f commit 79a2327
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
### Bugfixes

* Fixed X (Java/Python) ([BEAM-X](https://issues.apache.org/jira/browse/BEAM-X)).
* Fixed exception when running in IPython notebook (Python) ([BEAM-X9277](https://issues.apache.org/jira/browse/BEAM-9277)).

### Known Issues

Expand Down
3 changes: 2 additions & 1 deletion sdks/python/apache_beam/utils/interactive_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,8 @@ def alter_label_if_ipython(transform, pvalueish):
_LOGGER.warning(
'Failed to alter the label of a transform with the '
'ipython prompt metadata. Cannot figure out the pipeline '
'that the given pvalueish %s belongs to. Thus noop.' % pvalueish)
'that the given pvalueish %s belongs to. Thus noop.',
pvalueish)
if (pipeline
# We only alter for transforms to be applied to user-defined pipelines
# at pipeline construction time.
Expand Down

0 comments on commit 79a2327

Please sign in to comment.