Camelot Matplotlib window suddenly closes

Viewed 70
import camelot
import pandas as pd
import matplotlib

file = 'foo.pdf'
tables = camelot.read_pdf(file, pages='all', flavor='stream')
camelot.plot(tables[0], kind='text').show()

The matplot window opens and suddenly closes in a flash without any user input whatsoever.

I want the window to remain open to examine the contents.

Edit: I am using Windows 11 and Python 3.9, running the code on Pycharm and it's the system interpreter rather than a virtual environment.

0 Answers
Related