Skip to content

Commit 1aecdbc

Browse files
authored
Merge pull request #1314 from HuilinWu2/main
fix: bugfix of failed to register notebook magic with python SDK
2 parents 2e7fb76 + 2f8f771 commit 1aecdbc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

python/openmldb/sql_magic/sql_magic.py

+1
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ def sql(self, line, cell=None):
4444
print("Success to execute sql")
4545

4646
def register(db, test=False):
47+
global get_ipython
4748
if test:
4849
from IPython.testing.globalipapp import get_ipython
4950
ip = get_ipython()

0 commit comments

Comments
 (0)