I am trying to show the output from the jupyter notebook which is shown with print() or display() functions.
The sample code is below. I would like to show
cap with panel.
from IPython.utils import capture def test(): print(1) with capture.capture_output() as cap: test() cap.show()