BrianIsaac commited on
Commit
fe8374d
·
1 Parent(s): 19221a0

fix: add missing logger import in plotly_charts module

Browse files

The correlation heatmap function referenced logger without importing it,
causing NameError at runtime. Added logging import and module-level logger
instance to resolve the issue.

backend/visualizations/plotly_charts.py CHANGED
@@ -14,9 +14,12 @@ from plotly.subplots import make_subplots
14
  import pandas as pd
15
  import numpy as np
16
  import os
 
17
  from typing import Dict, List, Any, Optional
18
  from decimal import Decimal
19
 
 
 
20
 
21
  def get_plotly_template() -> str:
22
  """Get Plotly template that supports light/dark mode.
 
14
  import pandas as pd
15
  import numpy as np
16
  import os
17
+ import logging
18
  from typing import Dict, List, Any, Optional
19
  from decimal import Decimal
20
 
21
+ logger = logging.getLogger(__name__)
22
+
23
 
24
  def get_plotly_template() -> str:
25
  """Get Plotly template that supports light/dark mode.