Skip to content
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

IRdisplay::html_display not showing any output #53

Open
Abraham-newbie opened this issue May 9, 2021 · 1 comment
Open

IRdisplay::html_display not showing any output #53

Abraham-newbie opened this issue May 9, 2021 · 1 comment

Comments

@Abraham-newbie
Copy link

Abraham-newbie commented May 9, 2021

Hi, I am using IRdisplay in chrome on a jupyter notebook with conda, and it does not show any output or result in any error.
The lm* are linear regression models combined by stargazer. Stargazer returns a proper html file without any errors.

m <- capture.output(stargazer(lm_enroll,lm_grades,lm_score,
         digits = 3,
          header = FALSE,
          type = "html", 
          se = rob_se,
          title = "Linear Panel Regression Model",
          model.numbers = FALSE)

IRdisplay::display_html(paste("<center>","",m,"","</center>"))
@flying-sheep
Copy link
Member

flying-sheep commented May 11, 2021

Hi, please create a minimal reproducible example, i.e. the complete code necessary to reproduce. Just remove everything not strictly necessary to reproduce, and add everything that makes that run (library(stargazer), lm_enroll <- ..., …)

So m contains HTML code starting with <!doctype html> or so? In this case IRdisplay:::isolate_full_html(list(text/html' = m)) or so should return metadata with the isolate flag set, which should make it work for jupyter lab and so on:

isolate_full_html <- function(data, metadata = NULL) {

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants