diff --git a/src/sql/cmd/snippets.py b/src/sql/cmd/snippets.py index fe80b3c36..88d5bf8d0 100644 --- a/src/sql/cmd/snippets.py +++ b/src/sql/cmd/snippets.py @@ -79,7 +79,6 @@ def snippets(others): raise UsageError(err_msg) args = parser.parse_args(others) - SNIPPET_ARGS = [args.delete, args.delete_force, args.delete_force_all] if SNIPPET_ARGS.count(None) == len(SNIPPET_ARGS): if len(all_snippets) == 0: diff --git a/src/sql/magic.py b/src/sql/magic.py index 2f25c4252..d9d4d6a82 100644 --- a/src/sql/magic.py +++ b/src/sql/magic.py @@ -43,6 +43,7 @@ from sql.error_handler import handle_exception from sql._current import _set_sql_magic + from ploomber_core.dependencies import check_installed diff --git a/src/sql/magic_plot.py b/src/sql/magic_plot.py index 8bf77836f..37150019f 100644 --- a/src/sql/magic_plot.py +++ b/src/sql/magic_plot.py @@ -82,7 +82,7 @@ def execute(self, line="", cell="", local_ns=None): Plot magic """ - util.expand_args(line, self.shell.user_ns.copy()) + line = util.expand_args(line, self.shell.user_ns.copy()) cmd = SQLPlotCommand(self, line)