I am using pypptx & jupyter noteboook to automate presentations,
1st i imported the local png like this
import pyppt as ppt
from IPython.display import Image
Image(filename='op.png') # opening the image in jupyter notebook
but when i tried to display it in powerpoint using the below code, it is not being displayed in the ppt
ppt.add_figure('BottomLeft')
instead i am getting this outline of the image in the ppt,but not the image itself
please also suggest better libraries for achieving this & for better ppt automation in general.
EDIT 1 - below is the code that i used to create the image & export.
import plotly.graph_objects as go
headerColor = 'skyblue'
rowEvenColor = '#017dbb'
rowOddColor = 'white'
fig = go.Figure(data=[go.Table(header=dict(values=pivot.columns,line_color='darkslategray',fill_color=headerColor,align=['left','center'],font=dict(color='white', size=12) ),
cells=dict(values=[pivot[i] for i in pivot.columns],line_color='darkslategray',fill_color = [['white','#007680','white', '#017dbb','white']*5],align = ['left', 'center'],font = dict(color = 'darkslategray', size = 11)
))])
fig.show()
fig.write_image("op.png") #export