ipython-sql icon indicating copy to clipboard operation
ipython-sql copied to clipboard

colorize failed cells

Open catherinedevlin opened this issue 7 years ago • 1 comments

Syntax colorization of SQL cells only fires after successful execution - not on cells that fail with a SQL error. Colorizing cells with errors would help with fixing those errors.

catherinedevlin avatar May 22 '17 16:05 catherinedevlin

@catherinedevlin instead of js = "IPython.CodeCell.config_defaults.highlight_modes['magic_sql'] = {'reg':[/^%%sql/]};" try this: js = "IPython.CodeCell.config_defaults.highlight_modes['magic_text/x-sql'] = {'reg':[/^%%sql/]};"

It works for me prior to executing and as you are typing

crawles avatar May 28 '17 12:05 crawles