Skip to content

Commit

Permalink
Fix print outputs in Jupyter notebook (deephaven#4324)
Browse files Browse the repository at this point in the history
Fixes deephaven#4277

Essentially, the parent needs to be updated so that Jupyter's OutputStream can redirect the output properly
More info here: StanfordLegion/legion#1393

Tested with code at deephaven#4277
  • Loading branch information
jnumainville committed Aug 18, 2023
1 parent 89969b5 commit 7e709b1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions py/server/deephaven_internal/stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,3 +93,7 @@ def close(self):
def __del__(self):
# Do nothing, override superclass which would call close()
pass

def set_parent(self, parent):
# Parent needs to be set on the original stream so that output shows in proper cell
self._stream.set_parent(parent)

0 comments on commit 7e709b1

Please sign in to comment.