|
4 | 4 | from collections import defaultdict |
5 | 5 |
|
6 | 6 | from IPython.core.display import HTML, display |
7 | | -from IPython.core.magic import Magics, line_cell_magic, line_magic, magics_class |
| 7 | +from IPython.core.magic import ( |
| 8 | + Magics, |
| 9 | + cell_magic, |
| 10 | + line_cell_magic, |
| 11 | + line_magic, |
| 12 | + magics_class, |
| 13 | +) |
8 | 14 | from IPython.core.magic_arguments import argument, magic_arguments, parse_argstring |
9 | 15 |
|
10 | 16 | from sqlmesh.core import constants as c |
@@ -32,7 +38,7 @@ def display(self) -> t.Callable: |
32 | 38 | from sqlmesh import runtime_env |
33 | 39 |
|
34 | 40 | if runtime_env.is_databricks: |
35 | | - # Use Databrick's special display instead of the normal IPython display |
| 41 | + # Use Databricks' special display instead of the normal IPython display |
36 | 42 | return self._shell.user_ns["display"] |
37 | 43 | return display |
38 | 44 |
|
@@ -271,7 +277,7 @@ def plan(self, line: str) -> None: |
271 | 277 | ) |
272 | 278 | @argument("--start", "-s", type=str, help="Start date to evaluate.") |
273 | 279 | @argument("--end", "-e", type=str, help="End date to evaluate.") |
274 | | - @argument("--skip-janitor", action="store_true", help="Skip the jantitor task.") |
| 280 | + @argument("--skip-janitor", action="store_true", help="Skip the janitor task.") |
275 | 281 | @line_magic |
276 | 282 | def run_dag(self, line: str) -> None: |
277 | 283 | """Evaluate the DAG of models using the built-in scheduler.""" |
@@ -349,7 +355,7 @@ def render(self, line: str) -> None: |
349 | 355 | type=str, |
350 | 356 | help="An optional variable name to store the resulting dataframe.", |
351 | 357 | ) |
352 | | - @line_cell_magic |
| 358 | + @cell_magic |
353 | 359 | def fetchdf(self, line: str, sql: str) -> None: |
354 | 360 | """Fetches a dataframe from sql, optionally storing it in a variable.""" |
355 | 361 | args = parse_argstring(self.fetchdf, line) |
|
0 commit comments