在SageMath Cloud上,我如何使用Python 3笔记本?

时间:2015-04-19 13:18:29

标签: ipython ipython-notebook sage

我使用精彩的SageMath Cloud服务与合作伙伴进行远程协作。特别是,我使用的是IPython笔记本。不幸的是,该语言似乎默认为Python 2;我更喜欢Python 3。

SSH进入我的项目,我可以看到IPython 3实际安装完毕。有没有办法强制SMC将Python 3用于笔记本电脑?

我尝试了instructions mentioned in the FAQ,即

ln -s /usr/bin/python3 ~/bin/python
ln -s /usr/bin/ipython3 ~/bin/ipython

虽然这适用于从SSH命令行调用Python,但它似乎不会影响从Web GUI创建的IPython笔记本所使用的内核。

1 个答案:

答案 0 :(得分:1)

在SageMathCloud上打开一个IPython Notebook后,你可以将内核切换到各种选择,包括Python 3.为此,使用'Kernel'菜单,然后'Change kernel',然后'Python 3'。< / p>

this discussion the sage-cloud mailing list中讨论了在SageMathCloud上切换到IPython Notebook中的Python 3内核。

这是您的问题所在,或者您是否在SageMathCloud上打开新的IPython Notebook时询问如何将该选项作为默认选项?

要获得SageMathCloud问题的最快答案,请使用the sage-cloud mailing list