'Returns html suitable for embedding visualizations in another page.'

def _get_embedded_visualization_html(self, trans, id):

    visualization = self.get_visualization(trans, id, False, True)
    visualization.annotation = self.get_item_annotation_str(trans.sa_session, visualization.user, visualization)
    if (not visualization):
        return None
    if ((trans.app.visualizations_registry and (visualization.type in trans.app.visualizations_registry.plugins)) and (visualization.type not in trans.app.visualizations_registry.BUILT_IN_VISUALIZATIONS)):
        encoded_visualization_id = trans.security.encode_id(visualization.id)
        return trans.fill_template('visualization/embed_in_frame.mako', item=visualization, encoded_visualization_id=encoded_visualization_id, content_only=True)
    return trans.fill_template('visualization/embed.mako', item=visualization, item_data=None)
