Skip to content

Commit

Permalink
Add missing ipython:: python directive in examples.rst (#315)
Browse files Browse the repository at this point in the history
  • Loading branch information
Spencer Hill committed Nov 20, 2018
1 parent cbc5d96 commit 7660b29
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
13 changes: 10 additions & 3 deletions doc/examples.rst
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@ with ``func`` and ``variables`` attributes) in terms of other computed
variables. For example we could equivalently express the
``precip_conv_frac`` more simply as the following:

.. ipython::
.. ipython:: python
precip_conv_frac = Var(
name='precip_conv_frac',
Expand Down Expand Up @@ -647,8 +647,15 @@ from your terminal.
:suppress:
from shutil import rmtree
rmtree('example-output')
rmtree('example-tar-output')
try:
rmtree('example-output')
except FileNotFoundError:
pass
try:
rmtree('example-tar-output')
except FileNotFoundError:
pass
.. rubric:: Footnotes

Expand Down
2 changes: 1 addition & 1 deletion doc/whats-new.rst
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ moving forward! Highlights (full changelog below these):
- Thanks to ``xarray.CFTimeIndex``, no longer require special logic/handling of
out-of-range datetimes
- Improved handling of region longitude bounds in ``Region`` via new
New ``Longitude`` class
``Longitude`` class

Breaking Changes
----------------
Expand Down

0 comments on commit 7660b29

Please sign in to comment.