(hv_all, chart_format, plot_name, mk_dir, additional='')
| 90 | |
| 91 | ############## This is where we save panels that we create to HTML ############ |
| 92 | def 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 ############ |
no test coverage detected