Output Capture has to replace FD 1 to work properly in Jupyter
This commit is contained in:
@ -34,7 +34,7 @@ from .core import lammps
|
|||||||
class OutputCapture(object):
|
class OutputCapture(object):
|
||||||
""" Utility class to capture LAMMPS library output """
|
""" Utility class to capture LAMMPS library output """
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.stdout_fd = sys.stdout.fileno()
|
self.stdout_fd = 1
|
||||||
self.captured_output = ""
|
self.captured_output = ""
|
||||||
|
|
||||||
def __enter__(self):
|
def __enter__(self):
|
||||||
|
|||||||
Reference in New Issue
Block a user