small comment on show() implementation

This commit is contained in:
hjoaquim
2023-07-28 10:00:39 +01:00
parent 849e6134ee
commit 379a5518fa

View File

@@ -20,6 +20,9 @@ class Chart(BaseModel):
def show(self):
"""Shows the chart in PyWry, browser or notebook."""
# TODO : this method should be handled by the ChartingManager so that
# this model class doesn't have specific knowledge on the charting extension
# pylint: disable=import-outside-toplevel
if self.format == ChartFormat.plotly:
from openbb_charting.core.openbb_figure import OpenBBFigure