Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ class BubbleChartOpDesc extends PythonOperatorDescriptor {
def createPlotlyFigure(): PythonTemplateBuilder = {
assert(xValue.nonEmpty && yValue.nonEmpty && zValue.nonEmpty)
pyb"""
| if $enableColor == 'true':
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not just if '$enableColor' == 'true':?

Copy link
Contributor Author

@xuang7 xuang7 Feb 26, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the suggestion. I chose this approach to stay consistent with how other operator's boolean values are handled. Since the original code already uses the string comparison style, We could go with the one-line fix.

| if '$enableColor' == 'true':
| fig = go.Figure(px.scatter(table, x=$xValue, y=$yValue, size=$zValue, size_max=100, color=$colorCategory))
| else:
| fig = go.Figure(px.scatter(table, x=$xValue, y=$yValue, size=$zValue, size_max=100))
Expand Down