问题描述
Google Colaboratory 支持 Python 2.7 和 3.6 版
Google Colaboratory supports Python version 2.7 and 3.6
我不久前看到了一个如何在 Colab 中使用 Swift 的示例.
I saw an example how to use Swift in Colab a while ago.
今天碰巧跑了
!jupyter-kernelspec list
并发现了一个新内核:IRkernel
And found a new kernel: IRkernel
Available kernels:
ir /usr/local/share/jupyter/kernels/ir
python2 /usr/local/share/jupyter/kernels/python2
python3 /usr/local/share/jupyter/kernels/python3
swift /usr/local/share/jupyter/kernels/swift
现在是否也可以在 Colab 中使用 R?安装 R 内核不麻烦?
Is it now possible to use R in Colab as well? No hassle in installing R kernel?
推荐答案
是.
对于新的 R-notebook,请使用此链接.(简写是 colab.to/r )
For a new R-notebook, use this link. (shorthand is colab.to/r )
您可以从 IRkernel 演示中学习,例如demo.ipynb
You can learn from IRkernel demos, e.g. demo.ipynb
在您的 Google 云端硬盘中保存一份副本,然后根据需要进行任何更改.
Save a copy in your Google Drive, and make any changes you need.
另外 2 个演示:
- Display.ipynb 展示了如何显示 HTML、图像.
- Comm_Demo.ipynb 展示了如何在 R 和 JavaScript 之间进行通信.
- Display.ipynb shows how to display HTML, images.
- Comm_Demo.ipynb shows how to communicate between R and JavaScript.
在 IRkernel Github 中查看更多详细信息.
See more details in IRkernel Github.
这篇关于如何将 R 与 Google Colaboratory 结合使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!