Python 3 support in Google's CoLab

2019-04-19 09:09发布

I have been experimenting with the Jupyter notebooks at https://colab.research.google.com, and it seems that by default they run Python 2.7.

Is there any way to enable Python 3 support on CoLab?

1条回答
来,给爷笑一个
2楼-- · 2019-04-19 09:43

Yes! Python3 support is now live in Colab.

  • When creating a new notebook, there's now an option for Python2 or Python3. py3colab

  • For an existing notebook, Runtime -> Change runtime type will let you switch.

We write the language info into the kernelspec in the notebook metadata, so switching runtime type isn't just per-session.

(updated with happiness and joy)

查看更多
登录 后发表回答