From 1a754661354c7339b7bea1c6b6c13324b110d03f Mon Sep 17 00:00:00 2001 From: Jacob Stoebel Date: Fri, 28 Jul 2017 21:06:26 -0400 Subject: [PATCH] commenting out code that dies in some browsers confirmed failure in firefox and chrome for os x --- src/sql/magic.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/sql/magic.py b/src/sql/magic.py index 382331e0d..0a041428d 100644 --- a/src/sql/magic.py +++ b/src/sql/magic.py @@ -154,6 +154,10 @@ def _persist_dataframe(self, raw, conn, user_ns): def load_ipython_extension(ip): """Load the extension in IPython.""" - js = "IPython.CodeCell.config_defaults.highlight_modes['magic_sql'] = {'reg':[/^%%sql/]};" - display_javascript(js, raw=True) + + # this fails in both Firefox and Chrome for OS X. + # I get the error: TypeError: IPython.CodeCell.config_defaults is undefined + + # js = "IPython.CodeCell.config_defaults.highlight_modes['magic_sql'] = {'reg':[/^%%sql/]};" + # display_javascript(js, raw=True) ip.register_magics(SqlMagic)