Skip to content

Commit e8e3564

Browse files
committed
DOC: fix computation.rst (#2567)
1 parent c93eaaf commit e8e3564

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

doc/computation.rst

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -164,9 +164,8 @@ Note that rolling window aggregations are faster when bottleneck_ is installed.
164164

165165
We can also manually iterate through ``Rolling`` objects:
166166

167-
.. ipython:: python
167+
.. code:: python
168168
169-
@verbatim
170169
for label, arr_window in r:
171170
# arr_window is a view of x
172171
@@ -298,9 +297,9 @@ operations. The default result of a binary operation is by the *intersection*
298297
If coordinate values for a dimension are missing on either argument, all
299298
matching dimensions must have the same size:
300299

301-
.. ipython:: python
300+
.. ipython::
301+
:verbatim:
302302

303-
@verbatim
304303
In [1]: arr + xr.DataArray([1, 2], dims='x')
305304
ValueError: arguments without labels along dimension 'x' cannot be aligned because they have different dimension size(s) {2} than the size of the aligned dimension labels: 3
306305

0 commit comments

Comments
 (0)