Show More
@@ -69,7 +69,6 b' except ImportError:' | |||
|
69 | 69 | from IPython.core.displaypub import publish_display_data |
|
70 | 70 | from IPython.core.magic import (Magics, magics_class, line_magic, |
|
71 | 71 | line_cell_magic, needs_local_scope) |
|
72 | from IPython.testing.skipdoctest import skip_doctest | |
|
73 | 72 | from IPython.core.magic_arguments import ( |
|
74 | 73 | argument, magic_arguments, parse_argstring |
|
75 | 74 | ) |
@@ -234,7 +233,6 b' class RMagics(Magics):' | |||
|
234 | 233 | self.Rstdout_cache = [] |
|
235 | 234 | return value |
|
236 | 235 | |
|
237 | @skip_doctest | |
|
238 | 236 | @needs_local_scope |
|
239 | 237 | @line_magic |
|
240 | 238 | def Rpush(self, line, local_ns=None): |
@@ -275,7 +273,6 b' class RMagics(Magics):' | |||
|
275 | 273 | |
|
276 | 274 | self.r.assign(input, self.pyconverter(val)) |
|
277 | 275 | |
|
278 | @skip_doctest | |
|
279 | 276 | @magic_arguments() |
|
280 | 277 | @argument( |
|
281 | 278 | '-d', '--as_dataframe', action='store_true', |
@@ -327,7 +324,6 b' class RMagics(Magics):' | |||
|
327 | 324 | for output in outputs: |
|
328 | 325 | self.shell.push({output:self.Rconverter(self.r(output),dataframe=args.as_dataframe)}) |
|
329 | 326 | |
|
330 | @skip_doctest | |
|
331 | 327 | @magic_arguments() |
|
332 | 328 | @argument( |
|
333 | 329 | '-d', '--as_dataframe', action='store_true', |
@@ -370,7 +366,6 b' class RMagics(Magics):' | |||
|
370 | 366 | return self.Rconverter(self.r(output[0]),dataframe=args.as_dataframe) |
|
371 | 367 | |
|
372 | 368 | |
|
373 | @skip_doctest | |
|
374 | 369 | @magic_arguments() |
|
375 | 370 | @argument( |
|
376 | 371 | '-i', '--input', action='append', |
@@ -28,7 +28,6 b' import inspect, os, sys, textwrap' | |||
|
28 | 28 | # Our own |
|
29 | 29 | from IPython.core.error import UsageError |
|
30 | 30 | from IPython.core.magic import Magics, magics_class, line_magic |
|
31 | from IPython.testing.skipdoctest import skip_doctest | |
|
32 | 31 | from IPython.utils.traitlets import Bool |
|
33 | 32 | from IPython.utils.py3compat import string_types |
|
34 | 33 | |
@@ -87,7 +86,6 b' class StoreMagics(Magics):' | |||
|
87 | 86 | if self.autorestore: |
|
88 | 87 | restore_data(self.shell) |
|
89 | 88 | |
|
90 | @skip_doctest | |
|
91 | 89 | @line_magic |
|
92 | 90 | def store(self, parameter_s=''): |
|
93 | 91 | """Lightweight persistence for python variables. |
@@ -7,7 +7,6 b' Propagate changes between widgets on the javascript side' | |||
|
7 | 7 | # Distributed under the terms of the Modified BSD License. |
|
8 | 8 | |
|
9 | 9 | from .widget import Widget |
|
10 | from IPython.testing.skipdoctest import skip_doctest | |
|
11 | 10 | from IPython.utils.traitlets import Unicode, Tuple, List,Instance, TraitError |
|
12 | 11 | |
|
13 | 12 | class WidgetTraitTuple(Tuple): |
@@ -51,7 +50,6 b' class Link(Widget):' | |||
|
51 | 50 | self.close() |
|
52 | 51 | |
|
53 | 52 | |
|
54 | @skip_doctest | |
|
55 | 53 | def jslink(*args): |
|
56 | 54 | """Link traits from different widgets together on the frontend so they remain in sync. |
|
57 | 55 | |
@@ -92,7 +90,6 b' class DirectionalLink(Widget):' | |||
|
92 | 90 | def unlink(self): |
|
93 | 91 | self.close() |
|
94 | 92 | |
|
95 | @skip_doctest | |
|
96 | 93 | def jsdlink(source, *targets): |
|
97 | 94 | """Link the trait of a source widget with traits of target widgets in the frontend. |
|
98 | 95 |
@@ -10,10 +10,8 b' from .widget import DOMWidget' | |||
|
10 | 10 | import sys |
|
11 | 11 | from IPython.utils.traitlets import Unicode, List |
|
12 | 12 | from IPython.display import clear_output |
|
13 | from IPython.testing.skipdoctest import skip_doctest | |
|
14 | 13 | from IPython.kernel.zmq.session import Message |
|
15 | 14 | |
|
16 | @skip_doctest | |
|
17 | 15 | class Output(DOMWidget): |
|
18 | 16 | """Widget used as a context manager to display output. |
|
19 | 17 |
@@ -44,7 +44,6 b' from pygments.token import (' | |||
|
44 | 44 | from pygments.util import get_bool_opt |
|
45 | 45 | |
|
46 | 46 | # Local |
|
47 | from IPython.testing.skipdoctest import skip_doctest | |
|
48 | 47 | |
|
49 | 48 | line_re = re.compile('.*?\n') |
|
50 | 49 | |
@@ -190,7 +189,6 b' class IPythonTracebackLexer(DelegatingLexer):' | |||
|
190 | 189 | DelegatingLexer.__init__(self, IPyLexer, |
|
191 | 190 | IPythonPartialTracebackLexer, **options) |
|
192 | 191 | |
|
193 | @skip_doctest | |
|
194 | 192 | class IPythonConsoleLexer(Lexer): |
|
195 | 193 | """ |
|
196 | 194 | An IPython console lexer for IPython code-blocks and doctests, such as: |
@@ -11,7 +11,6 b' import random' | |||
|
11 | 11 | |
|
12 | 12 | # Our own |
|
13 | 13 | from IPython.core.error import UsageError |
|
14 | from IPython.testing.skipdoctest import skip_doctest | |
|
15 | 14 | from IPython.utils.py3compat import cast_bytes, str_to_bytes |
|
16 | 15 | |
|
17 | 16 | #----------------------------------------------------------------------------- |
@@ -26,7 +25,6 b' salt_len = 12' | |||
|
26 | 25 | # Functions |
|
27 | 26 | #----------------------------------------------------------------------------- |
|
28 | 27 | |
|
29 | @skip_doctest | |
|
30 | 28 | def passwd(passphrase=None, algorithm='sha1'): |
|
31 | 29 | """Generate hashed password and salt for use in notebook configuration. |
|
32 | 30 |
@@ -25,7 +25,6 b' from IPython.core.inputsplitter import IPythonInputSplitter' | |||
|
25 | 25 | from IPython.core.interactiveshell import InteractiveShell, InteractiveShellABC |
|
26 | 26 | from IPython.core.magic import Magics, magics_class, line_magic |
|
27 | 27 | from IPython.lib.clipboard import ClipboardEmpty |
|
28 | from IPython.testing.skipdoctest import skip_doctest | |
|
29 | 28 | from IPython.utils.encoding import get_stream_enc |
|
30 | 29 | from IPython.utils import py3compat |
|
31 | 30 | from IPython.utils.terminal import toggle_set_term_title, set_term_title |
@@ -130,7 +129,6 b' class TerminalMagics(Magics):' | |||
|
130 | 129 | self.shell.set_autoindent() |
|
131 | 130 | print("Automatic indentation is:",['OFF','ON'][self.shell.autoindent]) |
|
132 | 131 | |
|
133 | @skip_doctest | |
|
134 | 132 | @line_magic |
|
135 | 133 | def cpaste(self, parameter_s=''): |
|
136 | 134 | """Paste & execute a pre-formatted code block from clipboard. |
@@ -12,7 +12,6 b' import nose.tools as nt' | |||
|
12 | 12 | |
|
13 | 13 | # Our own |
|
14 | 14 | from IPython.testing import decorators as dec |
|
15 | from IPython.testing.skipdoctest import skip_doctest | |
|
16 | 15 | |
|
17 | 16 | #----------------------------------------------------------------------------- |
|
18 | 17 | # Utilities |
@@ -61,7 +60,6 b' def test_deliberately_broken2():' | |||
|
61 | 60 | |
|
62 | 61 | # Verify that we can correctly skip the doctest for a function at will, but |
|
63 | 62 | # that the docstring itself is NOT destroyed by the decorator. |
|
64 | @skip_doctest | |
|
65 | 63 | def doctest_bad(x,y=1,**k): |
|
66 | 64 | """A function whose doctest we need to skip. |
|
67 | 65 | |
@@ -109,7 +107,6 b' class FooClass(object):' | |||
|
109 | 107 | 2 |
|
110 | 108 | """ |
|
111 | 109 | |
|
112 | @skip_doctest | |
|
113 | 110 | def __init__(self,x): |
|
114 | 111 | """Make a FooClass. |
|
115 | 112 | |
@@ -121,7 +118,6 b' class FooClass(object):' | |||
|
121 | 118 | print('Making a FooClass.') |
|
122 | 119 | self.x = x |
|
123 | 120 | |
|
124 | @skip_doctest | |
|
125 | 121 | def bar(self,y): |
|
126 | 122 | """Example: |
|
127 | 123 |
@@ -16,7 +16,6 b' import glob' | |||
|
16 | 16 | from warnings import warn |
|
17 | 17 | from hashlib import md5 |
|
18 | 18 | |
|
19 | from IPython.testing.skipdoctest import skip_doctest | |
|
20 | 19 | from IPython.utils.process import system |
|
21 | 20 | from IPython.utils import py3compat |
|
22 | 21 | from IPython.utils.decorators import undoc |
@@ -32,7 +31,6 b' def _writable_dir(path):' | |||
|
32 | 31 | return os.path.isdir(path) and os.access(path, os.W_OK) |
|
33 | 32 | |
|
34 | 33 | if sys.platform == 'win32': |
|
35 | @skip_doctest | |
|
36 | 34 | def _get_long_path_name(path): |
|
37 | 35 | """Get a long path name (expand ~) on Windows using ctypes. |
|
38 | 36 |
@@ -646,7 +646,6 b' def _get_or_default(mylist, i, default=None):' | |||
|
646 | 646 | return mylist[i] |
|
647 | 647 | |
|
648 | 648 | |
|
649 | @skip_doctest | |
|
650 | 649 | def compute_item_matrix(items, empty=None, *args, **kwargs) : |
|
651 | 650 | """Returns a nested list, and info to columnize items |
|
652 | 651 |
@@ -38,7 +38,6 b' from ipython_kernel.inprocess.socket import SocketABC' | |||
|
38 | 38 | from ipython_kernel import ( |
|
39 | 39 | get_connection_file, get_connection_info, connect_qtconsole |
|
40 | 40 | ) |
|
41 | from IPython.testing.skipdoctest import skip_doctest | |
|
42 | 41 | from IPython.utils import openpy |
|
43 | 42 | from jupyter_client.jsonutil import json_clean, encode_images |
|
44 | 43 | from IPython.utils.process import arg_split |
@@ -105,7 +104,6 b' class KernelMagics(Magics):' | |||
|
105 | 104 | |
|
106 | 105 | _find_edit_target = CodeMagics._find_edit_target |
|
107 | 106 | |
|
108 | @skip_doctest | |
|
109 | 107 | @line_magic |
|
110 | 108 | def edit(self, parameter_s='', last_call=['','']): |
|
111 | 109 | """Bring up an editor and execute the resulting code. |
@@ -45,7 +45,6 b' import re' | |||
|
45 | 45 | from IPython.core.error import UsageError |
|
46 | 46 | from IPython.core.magic import Magics |
|
47 | 47 | from IPython.core import magic_arguments |
|
48 | from IPython.testing.skipdoctest import skip_doctest | |
|
49 | 48 | from IPython.utils.text import dedent |
|
50 | 49 | |
|
51 | 50 | #----------------------------------------------------------------------------- |
@@ -190,7 +189,6 b' class ParallelMagics(Magics):' | |||
|
190 | 189 | |
|
191 | 190 | @magic_arguments.magic_arguments() |
|
192 | 191 | @output_args |
|
193 | @skip_doctest | |
|
194 | 192 | def result(self, line=''): |
|
195 | 193 | """Print the result of the last asynchronous %px command. |
|
196 | 194 | |
@@ -218,7 +216,6 b' class ParallelMagics(Magics):' | |||
|
218 | 216 | self.last_result.get() |
|
219 | 217 | self.last_result.display_outputs(groupby=args.groupby) |
|
220 | 218 | |
|
221 | @skip_doctest | |
|
222 | 219 | def px(self, line=''): |
|
223 | 220 | """Executes the given python command in parallel. |
|
224 | 221 | |
@@ -269,7 +266,6 b' class ParallelMagics(Magics):' | |||
|
269 | 266 | @magic_arguments.magic_arguments() |
|
270 | 267 | @exec_args |
|
271 | 268 | @output_args |
|
272 | @skip_doctest | |
|
273 | 269 | def cell_px(self, line='', cell=None): |
|
274 | 270 | """Executes the cell in parallel. |
|
275 | 271 | |
@@ -316,7 +312,6 b' class ParallelMagics(Magics):' | |||
|
316 | 312 | if not block: |
|
317 | 313 | return ar |
|
318 | 314 | |
|
319 | @skip_doctest | |
|
320 | 315 | def autopx(self, line=''): |
|
321 | 316 | """Toggles auto parallel mode. |
|
322 | 317 |
@@ -9,7 +9,6 b' import sys' | |||
|
9 | 9 | import warnings |
|
10 | 10 | |
|
11 | 11 | from decorator import decorator |
|
12 | from IPython.testing.skipdoctest import skip_doctest | |
|
13 | 12 | |
|
14 | 13 | from . import map as Map |
|
15 | 14 | from .asyncresult import AsyncMapResult |
@@ -18,7 +17,6 b' from .asyncresult import AsyncMapResult' | |||
|
18 | 17 | # Functions and Decorators |
|
19 | 18 | #----------------------------------------------------------------------------- |
|
20 | 19 | |
|
21 | @skip_doctest | |
|
22 | 20 | def remote(view, block=None, **flags): |
|
23 | 21 | """Turn a function into a remote function. |
|
24 | 22 | |
@@ -33,7 +31,6 b' def remote(view, block=None, **flags):' | |||
|
33 | 31 | return RemoteFunction(view, f, block=block, **flags) |
|
34 | 32 | return remote_function |
|
35 | 33 | |
|
36 | @skip_doctest | |
|
37 | 34 | def parallel(view, dist='b', block=None, ordered=True, **flags): |
|
38 | 35 | """Turn a function into a parallel remote function. |
|
39 | 36 |
@@ -13,7 +13,6 b' from types import ModuleType' | |||
|
13 | 13 | |
|
14 | 14 | import zmq |
|
15 | 15 | |
|
16 | from IPython.testing.skipdoctest import skip_doctest | |
|
17 | 16 | from IPython.utils import pickleutil |
|
18 | 17 | from IPython.utils.traitlets import ( |
|
19 | 18 | HasTraits, Any, Bool, List, Dict, Set, Instance, CFloat, Integer |
@@ -69,7 +68,6 b' def spin_after(f, self, *args, **kwargs):' | |||
|
69 | 68 | # Classes |
|
70 | 69 | #----------------------------------------------------------------------------- |
|
71 | 70 | |
|
72 | @skip_doctest | |
|
73 | 71 | class View(HasTraits): |
|
74 | 72 | """Base View class for more convenint apply(f,*args,**kwargs) syntax via attributes. |
|
75 | 73 | |
@@ -377,7 +375,6 b' class View(HasTraits):' | |||
|
377 | 375 | block = self.block if block is None else block |
|
378 | 376 | return parallel(self, dist=dist, block=block, **flags) |
|
379 | 377 | |
|
380 | @skip_doctest | |
|
381 | 378 | class DirectView(View): |
|
382 | 379 | """Direct Multiplexer View of one or more engines. |
|
383 | 380 | |
@@ -845,7 +842,6 b' class DirectView(View):' | |||
|
845 | 842 | ip.magics_manager.register(M) |
|
846 | 843 | |
|
847 | 844 | |
|
848 | @skip_doctest | |
|
849 | 845 | class LoadBalancedView(View): |
|
850 | 846 | """An load-balancing View that only executes via the Task scheduler. |
|
851 | 847 |
@@ -58,7 +58,6 b' from IPython.utils import eventful' | |||
|
58 | 58 | from IPython.utils.getargspec import getargspec |
|
59 | 59 | from IPython.utils.importstring import import_item |
|
60 | 60 | from IPython.utils.py3compat import iteritems, string_types |
|
61 | from IPython.testing.skipdoctest import skip_doctest | |
|
62 | 61 | |
|
63 | 62 | from .sentinel import Sentinel |
|
64 | 63 | SequenceTypes = (list, tuple, set, frozenset) |
@@ -189,7 +188,6 b' def _validate_link(*tuples):' | |||
|
189 | 188 | if not trait_name in obj.traits(): |
|
190 | 189 | raise TypeError("%r has no trait %r" % (obj, trait_name)) |
|
191 | 190 | |
|
192 | @skip_doctest | |
|
193 | 191 | class link(object): |
|
194 | 192 | """Link traits from different objects together so they remain in sync. |
|
195 | 193 | |
@@ -244,7 +242,6 b' class link(object):' | |||
|
244 | 242 | (obj, attr) = key |
|
245 | 243 | obj.on_trait_change(callback, attr, remove=True) |
|
246 | 244 | |
|
247 | @skip_doctest | |
|
248 | 245 | class directional_link(object): |
|
249 | 246 | """Link the trait of a source object with traits of target objects. |
|
250 | 247 |
General Comments 0
You need to be logged in to leave comments.
Login now