R Jupyter Kernel

apt-get update
apt-get install -y python-dev
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
python get-pip.py
pip 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
© 2018 Nextjournal GmbH