How to render LaTeX / HTML in Jupyter (R)?

后端 未结 5 534
感情败类
感情败类 2020-12-11 04:26

I just started using Jupyter with R, and I\'m wondering if there\'s a good way to display HTML or LaTeX output.

Here\'s some example code that I wish worked:

5条回答
  •  温柔的废话
    2020-12-11 04:56

    I found a simpler answer, for the initial, simple use case.

    If you call xtable without wrapping it in a call to print, then it totally works. E.g.,

    library(xtable)
    data(cars)
    model <- lm(speed ~ ., data = cars)
    xtable(model)
    

提交回复
热议问题