file based plotting wasn't working properly because every time a plot was serialized it was trying to form inject_snippet(server=True)