-
Notifications
You must be signed in to change notification settings - Fork 335
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
coexistence of R and Python gives me inconsistent table renderings #3457
Comments
This is probably an inconsistency between the table rendering choices among the jupyter and knitr engines, especially in the presence of multiple-language configurations. If you must have perfectly consistent table rendering output, make sure your table libraries all emit pure markdown. (You can check by |
No they do not emit pure markdown. The first one, the python output, it's simply text. In my opinion this inconsistency is a bug. Unfortunately I don't know how to help you with coding, otherwise I would try to do it Thank you @cscheid
|
The issue here is that python, in a a page with two languages (python+r), gets executed through reticulate+knitr, while a page with a single language gets executed through jupyter. In order for this to be fixed, reticulate needs to change the way they produce output from the default printing method from Pandas. It appears that right now they're emitting pure text, but it should emit markdown if inside knitr. |
This is currently an open issue for this in |
Thank you very much. For this kind of issues probably I have created some noise here and in discussions. And I'm happy that it has some sense. Please forgive me for the confusion I made |
Just an update on how reticulate behave: Regarding how pandas table are handled, they do catch Pandas table and print them asis without processing. Changing that in reticulate would produce the same table in the intermediate |
Bug description
Hi,
I have really strange table rendering problems.
My code is the one below. If I render it, the python ouput table is printed as plain text
If I change
{r}
in{{r}}
, and render again the file, I have the correct rendering of the python ouput tableIt seems to me that something does not work properly, but it seems to me that the code has no errors.
I'm using quarto 1.3.21, in debian 11 (inside WSL2).
Thank you
Checklist
The text was updated successfully, but these errors were encountered: