-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Plotly introduces errors with magic syntax highlighting in Jupyter #427
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Running plotly 1.9.6, BTW |
Hi @msftristew the commit you referenced should fix it, and that commit has been merged into plotly master |
Thanks @jdfreder. When will the next version of plotly be released that will have this fix? |
Hello, I am new to Jupyter as of this week and ran into the same error message. What does "ERROR: Cell magic 'sql' not found." indicate? This syntax based on previous inputs should work: %%sql Any ideas? |
In my screenshot, the %%sql magic doesn't actually exist, I'm just using it as an example to show how this function breaks syntax highlighting. |
Ping :) Is there an ETA on the new version which will fix this? |
updated with: #432 Should work now! |
It does! Thank you. |
It looks like the
init_notebook_mode()
function introduces some conflicts with Jupyter that causes magics syntax highlighting in IPython to not work correctly. The issue is that Plotly seems to conflict with the mechanism that Jupyter uses for magics syntax highlighting.Repro steps:
%%sql
magicinit_notebook_mode
in a cell%%sql
magic; syntax highlighting will not work and errors will be logged to the JS consoleHere are some screenshots for my machine. Syntax highlighting gets turned off after I run
init_notebook_mode
:When I type
%%sql
in the cell, these errors get logged:... so it looks like the call to
init_notebook_mode
is interfering with Jupyter'srequire.js
machinery in some way.I am wondering if this issue is related to issue 90 or if it happens to have been solved in this commit.
The text was updated successfully, but these errors were encountered: