-
Notifications
You must be signed in to change notification settings - Fork 950
mathjax affects dropdown options inconsistently #1777
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
It looks like if |
You can use |
I'm testing this - and I'm not getting mathjax rendering dropdown options (notebook 5.2, though). I'm checking notebook 5.1 right now. |
Never mind, I just reproduced the issue. |
I think it has to do with the |
I tried that in notebook 5.1.0: I think this will reproduce my environment:
|
I just checked JupyterLab, and it doesn't have a problem at all. |
fwiw, this doesn't seem to affect |
I think this may be a bug in the notebook display logic. For example, see https://github.com/jupyter/notebook/blob/master/notebook/static/notebook/js/outputarea.js#L651 - you'll notice that the code just checks to see if there is an html mimetype in the message, and if so, it appears to typeset the entire output area. In contrast, the JupyterLab implementation explicitly just typesets the specific output if needed (IIRC), not the entire output area. |
Ah, nice find. probably related: jupyter/notebook#2444, jupyter/notebook#2450 |
I just traced this down in the Chrome debugger to the issue in the notebook. Let's track this at the notebook issue, where the real problem is. Note that we probably didn't trigger this until #1674, when we added an html mimetype to the widget display messages so we could have links to the documentation. It may make sense for us to roll back the #1674 because of this notebook bug. The purpose in having an html mimetype in the display message was so that one message could show up in a notebook, while a different message could show up in the terminal. |
@ssanderson - given the above (breaking things in the current notebook because of a bug in the current notebook), what do you think of reverting #1674 so that we don't have an html error message anymore? |
Moving to 7.x - I think we'll really need to change the html error message to work around this bug. |
@jasongrout is there somewhere else we can put that error message that will still be visible without causing this bug (e.g., in the regular text repr)? |
The text mimetype is already being used for a very simple rendering. We could probably put a small message there if we needed to. |
The notebook issue is at jupyter/notebook#2980. |
This reverts jupyter-widgets#1674, since we discovered some problems with the classic notebook and html outputs. Fixes jupyter-widgets#1777 Fixes jupyter-widgets#1951
I noticed some strange behavior where dropdown options get rendered (I think) as equations by mathjax, but only when multiple dropdowns are displayed at the same time.
As a workaround, is there a way to disable MathJax for a single dropdown?
versions:
The text was updated successfully, but these errors were encountered: