Skip to content

Commit e8d62c6

Browse files
committed
Fix cell output wrapping and update default to wrap by default
1 parent ce5d03a commit e8d62c6

File tree

2 files changed

+18
-2
lines changed

2 files changed

+18
-2
lines changed

CHANGELOG.rst

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,17 @@ Added
1515

1616
- Add ability for local Python kernels to run inside virtual environments without euporie being installed in that virtual environment
1717

18+
Changed
19+
=======
20+
21+
- Wrap cell outputs be default
22+
23+
Fixed
24+
=====
25+
26+
- Fix wrapping of cell outputs in euporie-console
27+
28+
----
1829

1930
********************
2031
v2.8.10 (2025-04-02)

euporie/core/widgets/_settings.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
from euporie.core.app.current import get_app
66
from euporie.core.config import add_setting
7+
from euporie.core.filters import tab_type_has_focus
78

89
# euporie.core.widgets.cell_outputs:CellOutputArea
910

@@ -14,12 +15,16 @@
1415
flags=["--wrap-cell-outputs"],
1516
type_=bool,
1617
help_="Wrap cell output text.",
17-
default=False,
18+
default=True,
1819
schema={"type": "boolean"},
1920
description="""
2021
Whether text-based cell outputs should be wrapped.
2122
""",
22-
cmd_filter=~buffer_has_focus,
23+
cmd_filter=(
24+
~buffer_has_focus
25+
& tab_type_has_focus("euporie.notebook.tabs.notebook.Notebook")
26+
)
27+
| ~tab_type_has_focus("euporie.notebook.tabs.notebook.Notebook"),
2328
)
2429

2530
add_setting(

0 commit comments

Comments
 (0)