Skip to content

Commit a60af14

Browse files
author
evieira
committed
add ipython None check in accordance with new iPython 9.16 release
Signed-off-by: evieira <t01etvi@tryg.dk>
1 parent e4b4867 commit a60af14

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎sqlmesh/core/console.py‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2920,7 +2920,10 @@ def __init__(
29202920

29212921
super().__init__(console, **kwargs)
29222922

2923-
self.display = display or get_ipython().user_ns.get("display", ipython_display)
2923+
ipython = get_ipython()
2924+
self.display = display or (
2925+
ipython.user_ns.get("display", ipython_display) if ipython else ipython_display
2926+
)
29242927
self.missing_dates_output = widgets.Output()
29252928
self.dynamic_options_after_categorization_output = widgets.VBox()
29262929

0 commit comments

Comments
 (0)