I have started using the package pivottablejs
to manipulate and visualize pivot tables in python.
from pivottablejs import pivot_ui
pivot_ui(df) # where df is a pandas dataframe
will produce an interactive pivot table/plot in a jupyter notebook.
Is there any pythonic way to save the figures produced by this package to (say) png
from within the jupyter notebook? I am looking for something similar to the classic plt.savefig('file.png')
. The front-end is essentially javascript
, and I do not know how (or if it is possible) to access a javascript figure through python.