如何将 R 与 Google Colaboratory 结合使用? [英] How to use R with Google Colaboratory?

查看:44
本文介绍了如何将 R 与 Google Colaboratory 结合使用?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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 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 结合使用?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆