MCPcopy
hub / github.com/AutoViML/AutoViz / save_html_data

Function save_html_data

autoviz/AutoViz_Holo.py:92–104  ·  view source on GitHub ↗
(hv_all, chart_format, plot_name, mk_dir, additional='')

Source from the content-addressed store, hash-verified

90
91############## This is where we save panels that we create to HTML ############
92def save_html_data(hv_all, chart_format, plot_name, mk_dir, additional=''):
93 ensure_hvplot_imported()
94 print('Saving %s in HTML format' % (plot_name + additional))
95 if not os.path.isdir(mk_dir):
96 os.mkdir(mk_dir)
97 if additional == '':
98 filename = os.path.join(mk_dir, plot_name + "." + chart_format)
99 else:
100 filename = os.path.join(mk_dir, plot_name + additional + "." + chart_format)
101 ## it is amazing you can save interactive plots ##
102 ## You don't need the resources = INLINE since it would consume too much space in HTML plots
103 # pn.panel(hv_all).save(filename, embed=True, resources=INLINE)
104 pn.panel(hv_all).save(filename, embed=True)
105
106
107############## This is where we append panels that we create ############

Callers 8

draw_cat_vars_hvFunction · 0.85
draw_kdeplot_hvFunction · 0.85
draw_scatters_hvFunction · 0.85
draw_pair_scatters_hvFunction · 0.85
draw_distplot_hvFunction · 0.85
draw_violinplot_hvFunction · 0.85
draw_date_vars_hvFunction · 0.85
draw_heatmap_hvFunction · 0.85

Calls 1

ensure_hvplot_importedFunction · 0.85

Tested by

no test coverage detected