def to_html(self):
        '''
        Returns
        -------
        str, the html file representation

        '''
        javascript_to_insert = '\n'.join([
            PackedDataUtils.full_content_of_javascript_files(),
            self.category_scatterplot_structure._visualization_data.to_javascript('getCategoryDataAndInfo'),
            self.category_scatterplot_structure.get_js_to_call_build_scatterplot(self.category_plot_interface),
            self.term_scatterplot_structure._visualization_data.to_javascript('getTermDataAndInfo'),
            self.term_scatterplot_structure.get_js_to_call_build_scatterplot(self.term_plot_interface),
        ])
        html_template = self._get_html_template()
        html_content = (
            html_template
                .replace('<!-- INSERT SCRIPT -->', javascript_to_insert, 1)
                .replace('<!--D3URL-->', self.d3_url_struct.get_d3_url(), 1)
                .replace('<!--D3SCALECHROMATIC-->', self.d3_url_struct.get_d3_scale_chromatic_url())
            # .replace('<!-- INSERT D3 -->', self._get_packaged_file_content('d3.min.js'), 1)
        )
        html_content = (html_content.replace('http://', self.protocol + '://'))
        if self.show_halo:
            axes_labels = self.category_projection.get_nearest_terms(
                num_terms=self.num_terms
            )
            for position, terms in axes_labels.items():
                html_content = html_content.replace('{%s}' % position, self._get_lexicon_html(terms))
        return html_content.replace('{width}', str(self.category_width)).replace('{height}', str(self.category_height))
def to_html ( self ) : javascript_to_insert = '\n' . join ( [ PackedDataUtils . full_content_of_javascript_files ( ) , self . category_scatterplot_structure . _visualization_data . to_javascript ( 'getCategoryDataAndInfo' ) , self . category_scatterplot_structure . get_js_to_call_build_scatterplot ( self . category_plot_interface ) , self . term_scatterplot_structure . _visualization_data . to_javascript ( 'getTermDataAndInfo' ) , self . term_scatterplot_structure . get_js_to_call_build_scatterplot ( self . term_plot_interface ) , ] ) html_template = self . _get_html_template ( ) html_content = ( html_template . replace ( '<!-- INSERT SCRIPT -->' , javascript_to_insert , 1 ) . replace ( '<!--D3URL-->' , self . d3_url_struct . get_d3_url ( ) , 1 ) . replace ( '<!--D3SCALECHROMATIC-->' , self . d3_url_struct . get_d3_scale_chromatic_url ( ) ) ) html_content = ( html_content . replace ( 'http://' , self . protocol + '://' ) ) if self . show_halo : axes_labels = self . category_projection . get_nearest_terms ( num_terms = self . num_terms ) for position , terms in axes_labels . items ( ) : html_content = html_content . replace ( '{%s}' % position , self . _get_lexicon_html ( terms ) ) return html_content . replace ( '{width}' , str ( self . category_width ) ) . replace ( '{height}' , str ( self . category_height ) )
Returns
        -------
        str, the html file representation