-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: _repr_latex is called in jupyter qtconsole #12182
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
hmm, is this on master? |
There are some issues at IPython/Jupyter for this: jupyter/qtconsole#65, jupyter/qtconsole#56 (IRkernel has the same problem for the display of their dataframes) @chris-b1 Would you be able to test if this is solved in qtconsole master? |
I think this is a reason to consider reverting #11778 |
cc @nbonnotte |
Or, another option is making the use of the |
so we could have an option |
Yeah, this also happens on qtconsole master. If there was a way to make this But since they've restructured all the ipython/jupyter stuff, I don't know how (if it's possible) to do that. |
This goes beyond my current use of pandas or jupyter, so I'm not really qualified to say anything. That being said, I like the idea of being able to nicely export my notebooks containing dataframes to LaTeX. And, if I understand correctly, this is more a bug of the jupyter qtconsole rather than pandas, right? So, if anything, my current understanding of the situation does not convince me that reverting #11778 is absolutely necessary. But maybe it's just because I use jupyter notebooks, and I feel closer to exporting them to LaTeX rather than using the qtconsole. |
The qtconsole is used in eg Spyder, which I suppose quite some pandas users will use. |
A possible idea is to do something similar as what |
Would it still be possible to convert a notebook to LaTeX? And a naive question: what prevents in_qtconsole from working? Is it because jupyter does not want us to know to which front-end it is connected? |
Yes, but you will just have call this function in the beginning of your notebook that you want to convert to latex to activate the latex repr
As far as I understand, yes, the kernel does not know in which frontend it is run (notebook or qtconsole or ... are all |
@jorisvandenbossche so what should we do about this, revert the actual The other changes are fine. |
I think the best would be something like the following: Have a new |
It doesn't even need to be a callback, |
Ah, yes, that seems also to work. Even simpler! |
xref #11778
The text was updated successfully, but these errors were encountered: