Contact
CoCalc Logo Icon
StoreFeaturesDocsShareSupport News AboutSign UpSign In
| Download

Attaching a sage script - Sage worksheet works, but its Jupyter notebook version no.

Project: ZMF2018
Views: 123
Kernel: SageMath (stable)

Attaching Sage script in Sage worksheet

In a file RoundList.sage is the simple following code

def roundlist(xlist, digits): return map(lambda element: round(element,digits), xlist)
# attach, load the Sage script %attach RoundList.sage
UsageError: Invalid GUI request 'sage', valid ones are:['osx', 'widget', 'qt5', None, 'qt', 'nbagg', 'gtk', 'qt4', 'gtk3', 'notebook', 'tk', 'ipympl', 'inline', 'asyncio', 'wx']
da = 1/3.0; da a = [0, da..2]; a
b = roundlist(a,3) b