DT icon indicating copy to clipboard operation
DT copied to clipboard

No display for DT::datatable in Google Colab. No error either.

Open rohitfarmer opened this issue 3 years ago • 0 comments

Hi, I am working with an R runtime on Google Colab, and I am trying to display DT::datatable the way it works in a jupyter notebook. However, even though my code executes without an error, there is no display of the table. It is pushing the next cell to make space for the table, but still no display.

The code below works in a jupyter notebook but not on Google Colab.

library(DT)
DT::datatable(iris, options = list(pageLength = 5))

xfun::session_info('DT')

'R version 4.2.1 (2022-06-23)''Platform: x86_64-pc-linux-gnu (64-bit)''Running under: Ubuntu 18.04.6 LTS''''Locale:''  LC_CTYPE=en_US.UTF-8       LC_NUMERIC=C              ''  LC_TIME=en_US.UTF-8        LC_COLLATE=en_US.UTF-8    ''  LC_MONETARY=en_US.UTF-8    LC_MESSAGES=en_US.UTF-8   ''  LC_PAPER=en_US.UTF-8       LC_NAME=C                 ''  LC_ADDRESS=C               LC_TELEPHONE=C            ''  LC_MEASUREMENT=en_US.UTF-8 LC_IDENTIFICATION=C       ''''Package version:''  base64enc_0.1.3   crosstalk_1.2.0   digest_0.6.29     DT_0.25          ''  fastmap_1.1.0     graphics_4.2.1    grDevices_4.2.1   htmltools_0.5.3  ''  htmlwidgets_1.5.4 jquerylib_0.1.4   jsonlite_1.8.1    later_1.3.0      ''  lazyeval_0.2.2    magrittr_2.0.3    methods_4.2.1     promises_1.2.0.1 ''  R6_2.5.1          Rcpp_1.0.9        rlang_1.0.6       stats_4.2.1      ''  utils_4.2.1       yaml_2.3.5       '

Any suggestion would be helpful. Thanks!


By filing an issue to this repo, I promise that

  • [X] I have fully read the issue guide at https://yihui.name/issue/.
  • [X] I have provided the necessary information about my issue.
    • If I'm asking a question, I have already asked it on Stack Overflow or RStudio Community, waited for at least 24 hours, and included a link to my question there.
    • If I'm filing a bug report, I have included a minimal, self-contained, and reproducible example, and have also included xfun::session_info('DT'). I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version: remotes::install_github('rstudio/DT').
    • If I have posted the same issue elsewhere, I have also mentioned it in this issue.
  • [X] I have learned the Github Markdown syntax, and formatted my issue correctly.

I understand that my issue may be closed if I don't fulfill my promises.

rohitfarmer avatar Oct 14 '22 17:10 rohitfarmer