{"action":"created","issue":{"url":"https://api.github.com/repos/ContinuumIO/anaconda-issues/issues/3902","repository_url":"https://api.github.com/repos/ContinuumIO/anaconda-issues","labels_url":"https://api.github.com/repos/ContinuumIO/anaconda-issues/issues/3902/labels{/name}","comments_url":"https://api.github.com/repos/ContinuumIO/anaconda-issues/issues/3902/comments","events_url":"https://api.github.com/repos/ContinuumIO/anaconda-issues/issues/3902/events","html_url":"https://github.com/ContinuumIO/anaconda-issues/issues/3902","id":247946190,"number":3902,"title":"htmlwidgets not working rendering in Jupyter with IRKernel","user":{"login":"kushukla","id":25129339,"avatar_url":"https://avatars0.githubusercontent.com/u/25129339?v=4","gravatar_id":"","url":"https://api.github.com/users/kushukla","html_url":"https://github.com/kushukla","followers_url":"https://api.github.com/users/kushukla/followers","following_url":"https://api.github.com/users/kushukla/following{/other_user}","gists_url":"https://api.github.com/users/kushukla/gists{/gist_id}","starred_url":"https://api.github.com/users/kushukla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kushukla/subscriptions","organizations_url":"https://api.github.com/users/kushukla/orgs","repos_url":"https://api.github.com/users/kushukla/repos","events_url":"https://api.github.com/users/kushukla/events{/privacy}","received_events_url":"https://api.github.com/users/kushukla/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2017-08-04T09:05:49Z","updated_at":"2017-08-04T09:31:58Z","closed_at":null,"body":"Hi,\r\n\r\nI did a fresh installation of following on \"OS X El Capitan version 10.11.6\"\r\n- miniconda installation \r\n- installed irkernel's repr, IRkernel, IRdisplay using `devtools::install_github` (to enable R kernel) \r\n- conda install pandoc\r\n- other R packages as complained from Jupyter\r\n- Also had to increase stack size to 16MB (`ulimit -s 16384` from shell) as Kernel was dying every time I was trying to datatable widget, `DT::datatable(iris)`\r\n\r\nAlthough `DT::datatable(iris)` works fine on RStudio, but on Jupyter it silently breaks. Nothing happens, any print statement after that doesn't work.\r\n\r\nNext, I tried PivotTable, using `rpivotTable::rpivotTable(data = mtcars)` this also renders nicely in RStudio but on Jupyter it displays **HTML widgets cannot be represented in plain text (need html)**. The class of this object was `'rpivotTable' 'htmlwidget'`.\r\n\r\nSome more debugging stuff:\r\n\r\nBoth the below statements returns **TRUE**\r\n```\r\n'text/html' %in% getOption('jupyter.display_mimetypes')\r\ngetOption(\"jupyter.rich_display\")\r\n```\r\n\r\nHere are the packages:\r\n```\r\n$ conda list --show-channel-urls\r\n# packages in environment at /Users/kushukla/miniconda3:\r\n#\r\nappnope                   0.1.0                    py36_0    defaults\r\nasn1crypto                0.22.0                   py36_0    defaults\r\nbleach                    1.5.0                    py36_0    defaults\r\ncffi                      1.10.0                   py36_0    defaults\r\nconda                     4.3.23                   py36_0    defaults\r\nconda-env                 2.6.0                         0    defaults\r\ncryptography              1.8.1                    py36_0    defaults\r\ndecorator                 4.1.2                    py36_0    defaults\r\nentrypoints               0.2.3                    py36_0    defaults\r\nhtml5lib                  0.999                    py36_0    defaults\r\nicu                       54.1                          0    defaults\r\nidna                      2.5                      py36_0    defaults\r\nipykernel                 4.6.1                    py36_0    defaults\r\nipython                   6.1.0                    py36_0    defaults\r\nipython_genutils          0.2.0                    py36_0    defaults\r\nipywidgets                6.0.0                    py36_0    defaults\r\njedi                      0.10.2                   py36_2    defaults\r\njinja2                    2.9.6                    py36_0    defaults\r\njsonschema                2.6.0                    py36_0    defaults\r\njupyter                   1.0.0                    py36_3    defaults\r\njupyter_client            5.1.0                    py36_0    defaults\r\njupyter_console           5.1.0                    py36_0    defaults\r\njupyter_core              4.3.0                    py36_0    defaults\r\nmarkupsafe                0.23                     py36_2    defaults\r\nmistune                   0.7.4                    py36_0    defaults\r\nnbconvert                 5.2.1                    py36_0    defaults\r\nnbformat                  4.3.0                    py36_0    defaults\r\nnotebook                  5.0.0                    py36_0    defaults\r\nopenssl                   1.0.2l                        0    defaults\r\npackaging                 16.8                     py36_0    defaults\r\npandoc                    1.19.2.1                      0    defaults\r\npandocfilters             1.4.1                    py36_0    defaults\r\npath.py                   10.3.1                   py36_0    defaults\r\npexpect                   4.2.1                    py36_0    defaults\r\npickleshare               0.7.4                    py36_0    defaults\r\npip                       9.0.1                    py36_1    defaults\r\nprompt_toolkit            1.0.14                   py36_0    defaults\r\nptyprocess                0.5.2                    py36_0    defaults\r\npycosat                   0.6.2                    py36_0    defaults\r\npycparser                 2.17                     py36_0    defaults\r\npygments                  2.2.0                    py36_0    defaults\r\npyopenssl                 17.0.0                   py36_0    defaults\r\npyparsing                 2.1.4                    py36_0    defaults\r\npyqt                      5.6.0                    py36_2    defaults\r\npython                    3.6.1                         2    defaults\r\npython-dateutil           2.6.1                    py36_0    defaults\r\npyzmq                     16.0.2                   py36_0    defaults\r\nqt                        5.6.2                         2    defaults\r\nqtconsole                 4.3.0                    py36_0    defaults\r\nreadline                  6.2                           2    defaults\r\nrequests                  2.14.2                   py36_0    defaults\r\nruamel_yaml               0.11.14                  py36_1    defaults\r\nsetuptools                27.2.0                   py36_0    defaults\r\nsimplegeneric             0.8.1                    py36_1    defaults\r\nsip                       4.18                     py36_0    defaults\r\nsix                       1.10.0                   py36_0    defaults\r\nsqlite                    3.13.0                        0    defaults\r\nterminado                 0.6                      py36_0    defaults\r\ntestpath                  0.3.1                    py36_0    defaults\r\ntk                        8.5.18                        0    defaults\r\ntornado                   4.5.1                    py36_0    defaults\r\ntraitlets                 4.3.2                    py36_0    defaults\r\nwcwidth                   0.1.7                    py36_0    defaults\r\nwheel                     0.29.0                   py36_0    defaults\r\nwidgetsnbextension        2.0.0                    py36_0    defaults\r\nxz                        5.2.2                         1    defaults\r\nyaml                      0.1.6                         0    defaults\r\nzlib                      1.2.8                         3    defaults\r\n```\r\nHere is another one:\r\n```\r\n$ conda list -e\r\n# This file may be used to create an environment using:\r\n# $ conda create --name <env> --file <this file>\r\n# platform: osx-64\r\nappnope=0.1.0=py36_0\r\nasn1crypto=0.22.0=py36_0\r\nbleach=1.5.0=py36_0\r\ncffi=1.10.0=py36_0\r\nconda=4.3.23=py36_0\r\nconda-env=2.6.0=0\r\ncryptography=1.8.1=py36_0\r\ndecorator=4.1.2=py36_0\r\nentrypoints=0.2.3=py36_0\r\nhtml5lib=0.999=py36_0\r\nicu=54.1=0\r\nidna=2.5=py36_0\r\nipykernel=4.6.1=py36_0\r\nipython=6.1.0=py36_0\r\nipython_genutils=0.2.0=py36_0\r\nipywidgets=6.0.0=py36_0\r\njedi=0.10.2=py36_2\r\njinja2=2.9.6=py36_0\r\njsonschema=2.6.0=py36_0\r\njupyter=1.0.0=py36_3\r\njupyter_client=5.1.0=py36_0\r\njupyter_console=5.1.0=py36_0\r\njupyter_core=4.3.0=py36_0\r\nmarkupsafe=0.23=py36_2\r\nmistune=0.7.4=py36_0\r\nnbconvert=5.2.1=py36_0\r\nnbformat=4.3.0=py36_0\r\nnotebook=5.0.0=py36_0\r\nopenssl=1.0.2l=0\r\npackaging=16.8=py36_0\r\npandoc=1.19.2.1=0\r\npandocfilters=1.4.1=py36_0\r\npath.py=10.3.1=py36_0\r\npexpect=4.2.1=py36_0\r\npickleshare=0.7.4=py36_0\r\npip=9.0.1=py36_1\r\nprompt_toolkit=1.0.14=py36_0\r\nptyprocess=0.5.2=py36_0\r\npycosat=0.6.2=py36_0\r\npycparser=2.17=py36_0\r\npygments=2.2.0=py36_0\r\npyopenssl=17.0.0=py36_0\r\npyparsing=2.1.4=py36_0\r\npyqt=5.6.0=py36_2\r\npython=3.6.1=2\r\npython-dateutil=2.6.1=py36_0\r\npyzmq=16.0.2=py36_0\r\nqt=5.6.2=2\r\nqtconsole=4.3.0=py36_0\r\nreadline=6.2=2\r\nrequests=2.14.2=py36_0\r\nruamel_yaml=0.11.14=py36_1\r\nsetuptools=27.2.0=py36_0\r\nsimplegeneric=0.8.1=py36_1\r\nsip=4.18=py36_0\r\nsix=1.10.0=py36_0\r\nsqlite=3.13.0=0\r\nterminado=0.6=py36_0\r\ntestpath=0.3.1=py36_0\r\ntk=8.5.18=0\r\ntornado=4.5.1=py36_0\r\ntraitlets=4.3.2=py36_0\r\nwcwidth=0.1.7=py36_0\r\nwheel=0.29.0=py36_0\r\nwidgetsnbextension=2.0.0=py36_0\r\nxz=5.2.2=1\r\nyaml=0.1.6=0\r\nzlib=1.2.8=3\r\n```\r\n\r\nHere is R Session:\r\n```\r\nR version 3.4.1 (2017-06-30)\r\nPlatform: x86_64-apple-darwin15.6.0 (64-bit)\r\nRunning under: OS X El Capitan 10.11.6\r\n\r\nMatrix products: default\r\nBLAS: /Library/Frameworks/R.framework/Versions/3.4/Resources/lib/libRblas.0.dylib\r\nLAPACK: /Library/Frameworks/R.framework/Versions/3.4/Resources/lib/libRlapack.dylib\r\n\r\nlocale:\r\n[1] C/UTF-8/C/C/C/C\r\n\r\nattached base packages:\r\n[1] stats     graphics  grDevices utils     datasets  methods   base     \r\n\r\nother attached packages:\r\n[1] plotly_4.7.1      ggplot2_2.2.1     repr_0.12.0       DT_0.2           \r\n[5] rpivotTable_0.2.0\r\n\r\nloaded via a namespace (and not attached):\r\n [1] Rcpp_0.12.12        compiler_3.4.1      plyr_1.8.4         \r\n [4] bindr_0.1           tools_3.4.1         digest_0.6.12      \r\n [7] uuid_0.1-2          viridisLite_0.2.0   jsonlite_1.5       \r\n[10] evaluate_0.10.1     tibble_1.3.3        gtable_0.2.0       \r\n[13] pkgconfig_2.0.1     rlang_0.1.1         shiny_1.0.3        \r\n[16] IRdisplay_0.4.4     crosstalk_1.0.0     IRkernel_0.8.7.9000\r\n[19] yaml_2.1.14         bindrcpp_0.2        stringr_1.2.0      \r\n[22] dplyr_0.7.2         httr_1.2.1          htmlwidgets_0.9    \r\n[25] grid_3.4.1          glue_1.1.1          data.table_1.10.4  \r\n[28] R6_2.2.2            pbdZMQ_0.2-6        tidyr_0.6.3        \r\n[31] purrr_0.2.2.2       magrittr_1.5        scales_0.4.1       \r\n[34] htmltools_0.3.6     assertthat_0.2.0    xtable_1.8-2       \r\n[37] mime_0.5            colorspace_1.3-2    httpuv_1.3.5       \r\n[40] stringi_1.1.5       lazyeval_0.2.0      munsell_0.4.3      \r\n[43] crayon_1.3.2  \r\n```\r\nI wonder what could be cause of this issue. \r\n\r\nThanks,\r\nKunal\r\n"},"comment":{"url":"https://api.github.com/repos/ContinuumIO/anaconda-issues/issues/comments/320204107","html_url":"https://github.com/ContinuumIO/anaconda-issues/issues/3902#issuecomment-320204107","issue_url":"https://api.github.com/repos/ContinuumIO/anaconda-issues/issues/3902","id":320204107,"user":{"login":"kushukla","id":25129339,"avatar_url":"https://avatars0.githubusercontent.com/u/25129339?v=4","gravatar_id":"","url":"https://api.github.com/users/kushukla","html_url":"https://github.com/kushukla","followers_url":"https://api.github.com/users/kushukla/followers","following_url":"https://api.github.com/users/kushukla/following{/other_user}","gists_url":"https://api.github.com/users/kushukla/gists{/gist_id}","starred_url":"https://api.github.com/users/kushukla/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kushukla/subscriptions","organizations_url":"https://api.github.com/users/kushukla/orgs","repos_url":"https://api.github.com/users/kushukla/repos","events_url":"https://api.github.com/users/kushukla/events{/privacy}","received_events_url":"https://api.github.com/users/kushukla/received_events","type":"User","site_admin":false},"created_at":"2017-08-04T09:31:58Z","updated_at":"2017-08-04T09:31:58Z","body":"No, Chrome ad-blocker doesn't show any blocked pages. "}}
{"actor":{"display_login":"kushukla"}}