Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 03f9e3e

Browse filesBrowse files
author
scls19fr
authored
Python 2/3 compat
print as a function
1 parent 146fa24 commit 03f9e3e
Copy full SHA for 03f9e3e

File tree

Expand file treeCollapse file tree

1 file changed

+6
-6
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+6
-6
lines changed

‎specs/gridspec.md

Copy file name to clipboardExpand all lines: specs/gridspec.md
+6-6Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -100,24 +100,24 @@ py.file_ops.delete(file_path=None, fid=None, url=None)
100100
### Appearance and Access
101101

102102
```python
103-
>> print Column([1,2,3], 'column 1')
103+
>> print(Column([1,2,3], 'column 1'))
104104
<Column "column 1": [1, 2, 3]>
105105
```
106106

107107
```python
108-
>> print Grid(col1, col2)
108+
>> print(Grid(col1, col2))
109109
<Grid: [<Column "column 1": [1, 2, 3]>, <Column "column 2": ["a", "b", "c"]>]>
110110
```
111111

112112
```python
113113
>> grid = Grid(col1, col2)
114-
>> print grid[0]
114+
>> print(grid[0])
115115
<Column "column 1": [1, 2, 3]>
116116
```
117117

118118
```python
119119
>> grid = Grid(col1, col2)
120-
>> print grid.get_column('column 1')
120+
>> print(grid.get_column('column 1'))
121121
<Column "column 1": [1, 2, 3]>
122122
```
123123

@@ -130,7 +130,7 @@ If you have the grid
130130
>> grid.upload(grid, 'experimental data')
131131

132132
>> fig_data = [Scatter(xsrc=grid[0], ysrc=grid[0])]
133-
>> print Scatter(xsrc=grid[0], ysrc=grid[1])
133+
>> print(Scatter(xsrc=grid[0], ysrc=grid[1]))
134134
[{"xsrc": "chris/8:3dkb", "ysrc": "chris/8:cbk8", "type": "scatter"}]
135135
>> py.plot(fig_data)
136136

@@ -145,7 +145,7 @@ If you have the grid
145145
>> Scatter(x=grid[0], y=grid[1])
146146
"PlotlyTypeException: Yikes, column objects aren't currently supported here."
147147
"x must be an array of strings, numbers, or datetimes."
148-
>> print Scatter(xsrc=grid[0], yscr=grid[1])
148+
>> print(Scatter(xsrc=grid[0], yscr=grid[1]))
149149
{"xsrc": "chris/3:3dfbk", "ysrc": "chris/3:dk3c"}
150150
```
151151

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.