Skip to content

Commit 1a75466

Browse files
committed
commenting out code that dies in some browsers
confirmed failure in firefox and chrome for os x
1 parent 17b3a8d commit 1a75466

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/sql/magic.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,10 @@ def _persist_dataframe(self, raw, conn, user_ns):
154154

155155
def load_ipython_extension(ip):
156156
"""Load the extension in IPython."""
157-
js = "IPython.CodeCell.config_defaults.highlight_modes['magic_sql'] = {'reg':[/^%%sql/]};"
158-
display_javascript(js, raw=True)
157+
158+
# this fails in both Firefox and Chrome for OS X.
159+
# I get the error: TypeError: IPython.CodeCell.config_defaults is undefined
160+
161+
# js = "IPython.CodeCell.config_defaults.highlight_modes['magic_sql'] = {'reg':[/^%%sql/]};"
162+
# display_javascript(js, raw=True)
159163
ip.register_magics(SqlMagic)

0 commit comments

Comments
 (0)