so I am currently transitioning from R Markdown back to jupyter notebooks. One problem I simply cannot wrap my head around is getting tables to display both in the actual notebook (while interactively writing it) and my final .pdf output that I create using
pandoc works fine, so the problem must lie with nbconvert. In R Markdown, I just use knitr::kable or pander, but even if I create markdown output, that is not properly translated in a latex table (instead it shows the raw markdown output…). How do you do that properly?
This isn’t exactly a solution to your problem, but just a note that pandoc now supports ipynb as a native format, so maybe you’d get a different result just doing pandoc myntbk.ipynb --to markdown myntbk.md?
thanks, unfortunately doesn’t seem to solve my problem. Is there really no way of doing what the results='asis' option in R Mrkdown + knitr does (https://bookdown.org/yihui/rmarkdown/r-code.html)?
Can you share an example of a notebook that you’re trying to convert in this way? (and another question to clarify: you’re talking about writing your own Markdown tables in the notebook, or outputting a markdown table using code?
unfortunately not, but sorry, my bad - should’ve provided a minimal (not) working example anyway. I’ll try to get something together, might be a lil while though.
The latter, by code!