From 03f9e3e7968c97f3b8b4923b5f357381e5c053a4 Mon Sep 17 00:00:00 2001 From: scls19fr Date: Sat, 22 Jul 2017 11:37:34 +0200 Subject: [PATCH] Python 2/3 compat print as a function --- specs/gridspec.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/specs/gridspec.md b/specs/gridspec.md index 22aec17cac3..43179d705a4 100644 --- a/specs/gridspec.md +++ b/specs/gridspec.md @@ -100,24 +100,24 @@ py.file_ops.delete(file_path=None, fid=None, url=None) ### Appearance and Access ```python ->> print Column([1,2,3], 'column 1') +>> print(Column([1,2,3], 'column 1')) ``` ```python ->> print Grid(col1, col2) +>> print(Grid(col1, col2)) , ]> ``` ```python >> grid = Grid(col1, col2) ->> print grid[0] +>> print(grid[0]) ``` ```python >> grid = Grid(col1, col2) ->> print grid.get_column('column 1') +>> print(grid.get_column('column 1')) ``` @@ -130,7 +130,7 @@ If you have the grid >> grid.upload(grid, 'experimental data') >> fig_data = [Scatter(xsrc=grid[0], ysrc=grid[0])] ->> print Scatter(xsrc=grid[0], ysrc=grid[1]) +>> print(Scatter(xsrc=grid[0], ysrc=grid[1])) [{"xsrc": "chris/8:3dkb", "ysrc": "chris/8:cbk8", "type": "scatter"}] >> py.plot(fig_data) @@ -145,7 +145,7 @@ If you have the grid >> Scatter(x=grid[0], y=grid[1]) "PlotlyTypeException: Yikes, column objects aren't currently supported here." "x must be an array of strings, numbers, or datetimes." ->> print Scatter(xsrc=grid[0], yscr=grid[1]) +>> print(Scatter(xsrc=grid[0], yscr=grid[1])) {"xsrc": "chris/3:3dfbk", "ysrc": "chris/3:dk3c"} ```