Python 3 support in Google's CoLab

≡放荡痞女 提交于 2019-12-22 01:49:02

问题


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:


Yes! Python3 support is now live in Colab.

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

  • 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)



来源:https://stackoverflow.com/questions/46941308/python-3-support-in-googles-colab

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!