Skip to content

Commit 3cd933a

Browse files
benfdkinggeorgesittas
authored andcommitted
fix: fix ipython import for new versions (#3927)
1 parent dcab142 commit 3cd933a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

sqlmesh/magics.py

+6-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,12 @@
88
from copy import deepcopy
99

1010
from hyperscript import h
11-
from IPython.core.display import display
11+
12+
try:
13+
from IPython.core.display import display # type: ignore
14+
except ImportError:
15+
from IPython.display import display
16+
1217
from IPython.core.magic import (
1318
Magics,
1419
cell_magic,

0 commit comments

Comments
 (0)