How to use .show_batch() to print in terminal?

I am sorry to bother a simple question.

I use Python and run code in VSCode. How to print .show_batch() result into Terminal?
Thank you in advance.

I use VSCode as well, I put pyplot.show() after show_batch and it shows the plot.

e.g.
data.show_batch(rows=3, figsize=(7,6))
from matplotlib import pyplot
pyplot.show()