From 9d692c86edcbaac459ac1c32b485416a800eb37b Mon Sep 17 00:00:00 2001 From: Stephan Hoyer Date: Fri, 23 Nov 2018 19:27:05 -0500 Subject: [PATCH] DOC: fix computation.rst --- doc/computation.rst | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/doc/computation.rst b/doc/computation.rst index 759c87a6cc7..3eec891494b 100644 --- a/doc/computation.rst +++ b/doc/computation.rst @@ -164,9 +164,8 @@ Note that rolling window aggregations are faster when bottleneck_ is installed. We can also manually iterate through ``Rolling`` objects: -.. ipython:: python +.. code:: python - @verbatim for label, arr_window in r: # arr_window is a view of x @@ -298,9 +297,9 @@ operations. The default result of a binary operation is by the *intersection* If coordinate values for a dimension are missing on either argument, all matching dimensions must have the same size: -.. ipython:: python +.. ipython:: + :verbatim: - @verbatim In [1]: arr + xr.DataArray([1, 2], dims='x') 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