Plotly python table not showing in offline mode, but showing in offline jupyter notebook

This is working in a jupyter notebook, but the same code changing iplot to plot gives a blank HTML page when I run it through a python script., although the html file does get generated. Python scripts ends with no errors. Any help would be appreciated. Thanks

Did you ever find a resolution to your problem? Iā€™m trying to overcome an importerror that says plot from offline causes an init_notebook_mode