Commit aab134ca authored by Nikita Sirgienko's avatar Nikita Sirgienko

[Python] Improve Plotly graphic package handler

parent 96334a87
Pipeline #25718 passed with stage
in 18 minutes and 59 seconds
......@@ -60,8 +60,12 @@ def __cantor_plotly_show__(figure):
figure.write_image(__cantor_plt_filename__, scale=2)
print('\nINNER PLOT INFO CANTOR: ', __cantor_plt_filename__, sep='')
__cantor_plotly_original_show__ = __cantor_plotly__.basedatatypes.BaseFigure.show
__cantor_plotly__.basedatatypes.BaseFigure.show = __cantor_plotly_show__
if hasattr(__cantor_plotly__, 'basedatatypes'):
__cantor_plotly_original_show__ = __cantor_plotly__.basedatatypes.BaseFigure.show
__cantor_plotly__.basedatatypes.BaseFigure.show = __cantor_plotly_show__
else:
__cantor_plotly_original_show__ = __cantor_plotly__.graph_objects.Figure.show
__cantor_plotly__.graph_objects.Figure.show = __cantor_plotly_show__
</EnableCommand>
<DisableCommand>
__cantor_plotly__.basedatatypes.BaseFigure.show = __cantor_plotly_original_show__;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment