Open in CoCalc
G = Graph(1) G.layout(pos={0:(0,0)},save_pos=True) show(G) #This fails since <sage.rings.integer.Integer> is not serializable by python serializer
{0: (0, 0)}
d3-based renderer not yet implemented
G = Graph(1) G.layout(pos={0:(float(0),float(0))}) show(G) #This succeeds since python floats are serializable
{0: (0.0, 0.0)}
d3-based renderer not yet implemented