| Hosted by CoCalc | Download
from sage.plot.plot3d.shapes2 import Line Line([(i*math.sin(i), i*math.cos(i), i/3) for i in range(30)], arrow_head=True)
Error in lines 2-2 Traceback (most recent call last): File "/projects/sage/sage-7.3/local/lib/python2.7/site-packages/smc_sagews/sage_server.py", line 957, in execute exec compile(block+'\n', '', 'single') in namespace, locals File "", line 1, in <module> File "/projects/sage/sage-7.3/local/lib/python2.7/site-packages/smc_sagews/sage_salvus.py", line 3398, in displayhook show(obj) File "/projects/sage/sage-7.3/local/lib/python2.7/site-packages/smc_sagews/sage_salvus.py", line 2505, in show s = show0(objs, combine_all=True) File "/projects/sage/sage-7.3/local/lib/python2.7/site-packages/smc_sagews/sage_salvus.py", line 2474, in show0 b = show0(a) File "/projects/sage/sage-7.3/local/lib/python2.7/site-packages/smc_sagews/sage_salvus.py", line 2462, in show0 salvus.threed(obj, **kwds) File "/projects/sage/sage-7.3/local/lib/python2.7/site-packages/smc_sagews/sage_server.py", line 746, in threed blob = json.dumps(scene, separators=(',', ':')) File "/projects/sage/sage-7.3/local/lib/python/json/__init__.py", line 250, in dumps sort_keys=sort_keys, **kw).encode(obj) File "/projects/sage/sage-7.3/local/lib/python/json/encoder.py", line 207, in encode chunks = self.iterencode(o, _one_shot=True) File "/projects/sage/sage-7.3/local/lib/python/json/encoder.py", line 270, in iterencode return _iterencode(o, 0) File "/projects/sage/sage-7.3/local/lib/python/json/encoder.py", line 184, in default raise TypeError(repr(o) + " is not JSON serializable") TypeError: 0 is not JSON serializable
%python from sage.plot.plot3d.shapes2 import Line Line([(i*math.sin(i), i*math.cos(i), i/3) for i in range(30)], arrow_head=True)
3D rendering not yet implemented