R Jupyter Kernel

1.
Setup

apt-get -qq update
apt-get install python3-dev python3-pip
pip3 install jupyter
install.packages(c('repr', 
                   'IRdisplay', 
                   'evaluate', 
                   'crayon', 
                   'pbdZMQ', 
                   'devtools', 
                   'uuid', 
                   'digest'))

devtools::install_github('IRkernel/IRkernel')
IRkernel::installspec(user = FALSE)
jupyter kernelspec list
cat /usr/local/share/jupyter/kernels/ir/kernel.json
cp /usr/local/share/jupyter/kernels/ir/logo-64x64.png /results/logo.png

2.
Test

l <- installed.packages()
l["IRkernel", "Version"]
© 2018 Nextjournal GmbH