Output Capture has to replace FD 1 to work properly in Jupyter

This commit is contained in:
Richard Berger
2022-02-03 15:37:27 -05:00
parent 050ce421e9
commit 22efbaf977

View File

@ -34,7 +34,7 @@ from .core import lammps
class OutputCapture(object):
""" Utility class to capture LAMMPS library output """
def __init__(self):
self.stdout_fd = sys.stdout.fileno()
self.stdout_fd = 1
self.captured_output = ""
def __enter__(self):