| 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/4a5f0542-5873-4eed-a85c-a18c706e8bcd/.sagemathcloud/sage_server.py", line 879, in execute exec compile(block+'\n', '', 'single') in namespace, locals File "", line 1, in <module> File "/projects/4a5f0542-5873-4eed-a85c-a18c706e8bcd/.sagemathcloud/sage_salvus.py", line 3284, in displayhook show(obj) File "/projects/4a5f0542-5873-4eed-a85c-a18c706e8bcd/.sagemathcloud/sage_salvus.py", line 2429, in show s = show0(objs, combine_all=True) File "/projects/4a5f0542-5873-4eed-a85c-a18c706e8bcd/.sagemathcloud/sage_salvus.py", line 2414, in show0 b = show0(a) File "/projects/4a5f0542-5873-4eed-a85c-a18c706e8bcd/.sagemathcloud/sage_salvus.py", line 2402, in show0 salvus.threed(obj, **kwds) File "/projects/4a5f0542-5873-4eed-a85c-a18c706e8bcd/.sagemathcloud/sage_server.py", line 681, in threed blob = json.dumps(scene, separators=(',', ':')) File "/projects/sage/sage-6.9/local/lib/python/json/__init__.py", line 250, in dumps sort_keys=sort_keys, **kw).encode(obj) File "/projects/sage/sage-6.9/local/lib/python/json/encoder.py", line 207, in encode chunks = self.iterencode(o, _one_shot=True) File "/projects/sage/sage-6.9/local/lib/python/json/encoder.py", line 270, in iterencode return _iterencode(o, 0) File "/projects/sage/sage-6.9/local/lib/python/json/encoder.py", line 184, in default raise TypeError(repr(o) + " is not JSON serializable") TypeError: 0 is not JSON serializable

Note that line works fine:

line([(i*math.sin(i), i*math.cos(i), i/3) for i in range(30)], arrow_head=True)
3D rendering not yet implemented