Skip to content

Commit baf9fc3

Browse files
committed
Update changelog; simplify; pass type checks
1 parent 71a55c7 commit baf9fc3

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/),
77
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
88
-->
99

10+
## [UNRELEASED]
11+
12+
### Bug fixes
13+
14+
* Fixed an issue where `.chat()` wasn't streaming output properly in (the latest build of) Positron's Jupyter notebook. (#131)
15+
1016
## [0.9.0] - 2025-07-02
1117

1218
### New features

chatlas/_chat.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2429,9 +2429,7 @@ def is_quarto():
24292429

24302430
def is_positron_notebook():
24312431
try:
2432-
get_ipython # type: ignore[name-defined]
2433-
except NameError:
2432+
mode = get_ipython().session_mode # noqa: F821 # type: ignore
2433+
return mode == "notebook"
2434+
except Exception:
24342435
return False
2435-
ipython = get_ipython() # type: ignore[name-defined]
2436-
session_mode = getattr(ipython, "session_mode", None)
2437-
return session_mode == "notebook"

0 commit comments

Comments
 (0)