Skip to content

Commit 1edd37f

Browse files
committed
chore: Use emoji markup as proposed in rich
1 parent b177651 commit 1edd37f

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

skore/src/skore/sklearn/_estimator/metrics_accessor.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class _MetricsAccessor(_BaseAccessor, DirNamesMixin):
4242
}
4343

4444
def __init__(self, parent):
45-
super().__init__(parent, icon="📏")
45+
super().__init__(parent, icon=":straight_ruler:")
4646

4747
# TODO: should build on the `add_scorers` function
4848
def report_metrics(
@@ -796,7 +796,7 @@ def _create_help_tree(self):
796796
tree = super()._create_help_tree()
797797

798798
# Add plot methods in a separate branch
799-
plot_branch = tree.add("[bold cyan].plot 🎨[/bold cyan]")
799+
plot_branch = tree.add("[bold cyan].plot :art:[/bold cyan]")
800800
plot_methods = self.plot._get_methods_for_help()
801801
plot_methods = self.plot._sort_methods_for_help(plot_methods)
802802

@@ -829,7 +829,7 @@ class _PlotMetricsAccessor(_BaseAccessor):
829829
"""Plotting methods for the metrics accessor."""
830830

831831
def __init__(self, parent):
832-
super().__init__(parent._parent, icon="🎨")
832+
super().__init__(parent._parent, icon=":art:")
833833
self._metrics_parent = parent
834834

835835
def _get_display(

skore/src/skore/sklearn/_estimator/report.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -67,10 +67,10 @@ class EstimatorReport(_HelpMixin, DirNamesMixin):
6767
"""
6868

6969
_ACCESSOR_CONFIG = {
70-
"metrics": {"icon": "📏", "name": "metrics"},
70+
"metrics": {"icon": ":straight_ruler:", "name": "metrics"},
7171
# Add other accessors as they're implemented
72-
# "inspection": {"icon": "🔍", "name": "inspection"},
73-
# "linting": {"icon": "✔️", "name": "linting"},
72+
# "inspection": {"icon": ":magnifying_glass:", "name": "inspection"},
73+
# "linting": {"icon": ":check:", "name": "linting"},
7474
}
7575

7676
@staticmethod
@@ -338,7 +338,7 @@ def _get_cached_response_values(
338338

339339
def _get_help_panel_title(self):
340340
return (
341-
f"[bold cyan]📓 Tools to diagnose estimator "
341+
f"[bold cyan]:notebook: Tools to diagnose estimator "
342342
f"{self.estimator_name}[/bold cyan]"
343343
)
344344

skore/src/skore/sklearn/_plot/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ def _create_help_panel(self):
6666
return Panel(
6767
self._create_help_tree(),
6868
title=(
69-
f"[bold cyan]📊 {self.__class__.__name__} for {self.estimator_name}"
70-
"[/bold cyan]"
69+
f"[bold cyan]:bar_chart: {self.__class__.__name__} for "
70+
f"{self.estimator_name}[/bold cyan]"
7171
),
7272
border_style="orange1",
7373
expand=False,

0 commit comments

Comments
 (0)