Skip to content

Commit 9660b61

Browse files
authored
[THIS-1078] 🐝 Allow no client (#1580)
# Description In CDF notebooks, we do not need a Client as NeatSession creates it for you. Thus, we should set the default to `None`. This saves code lines creating a new session . <img width="660" height="321" alt="image" src="https://github.com/user-attachments/assets/c33a3dec-d273-4bba-908e-53b48a1224ff" /> ## Bump - [x] Patch - [ ] Skip ## Changelog ### Improved - When creating a `NeatSession` in a CDF notebook, you do not have to pass a `CogniteClient`.
1 parent 3be0ec6 commit 9660b61

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cognite/neat/_session/_session.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,9 @@ class NeatSession:
2828
"""A session is an interface for neat operations."""
2929

3030
def __init__(
31-
self, client: CogniteClient | ClientConfig | None, config: PredefinedProfile | NeatConfig = "legacy-additive"
31+
self,
32+
client: CogniteClient | ClientConfig | None = None,
33+
config: PredefinedProfile | NeatConfig = "legacy-additive",
3234
) -> None:
3335
"""Initialize a Neat session.
3436

0 commit comments

Comments
 (0)