Skip to content

DOC: fix computation.rst #2567

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 24, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 3 additions & 4 deletions doc/computation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down