Google Colab

asked 0 years ago

tolga gravatar image

I know Google Colab does not support SageMath natively. However, I wonder if there is a way to use it on Google Colab with a Jupyter(-like?) notebook as on Cocalc (or a local installation)?

This page explains a method based on condacolab, but it does not provide an easy-to-use jupyter(-like) environment that one has on a local installation or Cocalc.

One needs to type

%%bash
source activate sage
sage -c 'SageMath code'

for each cell and this is not convenient.

So, is there a way to open a notebook for SageMath (maybe with some lines in the first cell to initialize SageMath) and use the notebook directly with the SageMath commands?

Preview: (hide)