Skip to content

Commit

Permalink
fix plot
Browse files Browse the repository at this point in the history
  • Loading branch information
neelasha23 committed Jan 21, 2024
1 parent e280f63 commit b6412c8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/sql/cmd/snippets.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions src/sql/magic.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
2 changes: 1 addition & 1 deletion src/sql/magic_plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit b6412c8

Please sign in to comment.