##// END OF EJS Templates
Misc. typo fixes...
luzpaz -
Show More
@@ -360,7 +360,7 b' class Completion:'
360 360 need user facing information.
361 361
362 362 - Which range should be replaced replaced by what.
363 - Some metadata (like completion type), or meta informations to displayed to
363 - Some metadata (like completion type), or meta information to displayed to
364 364 the use user.
365 365
366 366 For debugging purpose we can also store the origin of the completion (``jedi``,
@@ -1873,7 +1873,7 b' class IPCompleter(Completer):'
1873 1873 start_offset = before.rfind(matched_text)
1874 1874
1875 1875 # TODO:
1876 # Supress this, right now just for debug.
1876 # Suppress this, right now just for debug.
1877 1877 if jedi_matches and matches and self.debug:
1878 1878 yield Completion(start=start_offset, end=offset, text='--jedi/ipython--',
1879 1879 _origin='debug', type='none', signature='')
@@ -101,7 +101,7 b' def fix_error_editor(self,filename,linenum,column,msg):'
101 101 `fix_error_editor` is deprecated as of IPython 6.0 and will be removed
102 102 in future versions. It appears to be used only for automatically fixing syntax
103 103 error that has been broken for a few years and has thus been removed. If you
104 happend to use this function and still need it please make your voice heard on
104 happened to use this function and still need it please make your voice heard on
105 105 the mailing list ipython-dev@python.org , or on the GitHub Issue tracker:
106 106 https://github.com/ipython/ipython/issues/9649 """, UserWarning)
107 107
@@ -1899,7 +1899,7 b' class InteractiveShell(SingletonConfigurable):'
1899 1899 # Not the format we expect; leave it alone
1900 1900 pass
1901 1901
1902 # If the error occured when executing compiled code, we should provide full stacktrace.
1902 # If the error occurred when executing compiled code, we should provide full stacktrace.
1903 1903 elist = traceback.extract_tb(last_traceback) if running_compiled_code else []
1904 1904 stb = self.SyntaxTB.structured_traceback(etype, value, elist)
1905 1905 self._showtraceback(etype, value, stb)
@@ -406,7 +406,7 b' Currently the magic system has the following functions:""",'
406 406 The Python package manager (pip) can only be used from outside of IPython.
407 407 Please reissue the `pip` command in a separate terminal or command prompt.
408 408
409 See the Python documentation for more informations on how to install packages:
409 See the Python documentation for more information on how to install packages:
410 410
411 411 https://docs.python.org/3/installing/'''.format(args=args)))
412 412
@@ -369,14 +369,14 b' class CodeMagics(Magics):'
369 369
370 370 l = len(contents)
371 371
372 # 200 000 is ~ 2500 full 80 caracter lines
372 # 200 000 is ~ 2500 full 80 character lines
373 373 # so in average, more than 5000 lines
374 374 if l > 200000 and 'y' not in opts:
375 375 try:
376 376 ans = self.shell.ask_yes_no(("The text you're trying to load seems pretty big"\
377 377 " (%d characters). Continue (y/[N]) ?" % l), default='n' )
378 378 except StdinNotImplementedError:
379 #asume yes if raw input not implemented
379 #assume yes if raw input not implemented
380 380 ans = True
381 381
382 382 if ans is False :
@@ -591,9 +591,9 b' class Inspector(Colorable):'
591 591 Name of the variable pointing to `obj`.
592 592 formatter: callable
593 593 info:
594 already computed informations
594 already computed information
595 595 detail_level: integer
596 Granularity of detail level, if set to 1, give more informations.
596 Granularity of detail level, if set to 1, give more information.
597 597 """
598 598
599 599 info = self._info(obj, oname=oname, info=info, detail_level=detail_level)
@@ -679,7 +679,7 b' class Inspector(Colorable):'
679 679
680 680 The formatter is a callable that takes a string as an input
681 681 and returns either a formatted string or a mime type bundle
682 in the form of a dictionnary.
682 in the form of a dictionary.
683 683
684 684 Although the support of custom formatter returning a string
685 685 instead of a mime type bundle is deprecated.
@@ -43,7 +43,7 b" re_fun_name = re.compile(r'[a-zA-Z_]([a-zA-Z0-9_.]*) *$')"
43 43 # particular, all binary operators should be excluded, so that if foo is
44 44 # callable, foo OP bar doesn't become foo(OP bar), which is invalid. The
45 45 # characters '!=()' don't need to be checked for, as the checkPythonChars
46 # routine explicitely does so, to catch direct calls and rebindings of
46 # routine explicitly does so, to catch direct calls and rebindings of
47 47 # existing names.
48 48
49 49 # Warning: the '-' HAS TO BE AT THE END of the first group, otherwise
@@ -56,7 +56,7 b' def test_underscore_no_overrite_builtins():'
56 56
57 57 def test_interactivehooks_ast_modes():
58 58 """
59 Test that ast nodes can be triggerd with different modes
59 Test that ast nodes can be triggered with different modes
60 60 """
61 61 saved_mode = ip.ast_node_interactivity
62 62 ip.ast_node_interactivity = 'last_expr_or_assign'
@@ -83,7 +83,7 b' def test_interactivehooks_ast_modes():'
83 83
84 84 def test_interactivehooks_ast_modes_semi_supress():
85 85 """
86 Test that ast nodes can be triggerd with different modes and supressed
86 Test that ast nodes can be triggered with different modes and suppressed
87 87 by semicolon
88 88 """
89 89 saved_mode = ip.ast_node_interactivity
@@ -106,7 +106,7 b' def test_magic_error_status():'
106 106 def test_config():
107 107 """ test that config magic does not raise
108 108 can happen if Configurable init is moved too early into
109 Magics.__init__ as then a Config object will be registerd as a
109 Magics.__init__ as then a Config object will be registered as a
110 110 magic.
111 111 """
112 112 ## should not raise.
@@ -587,7 +587,7 b' def test_timeit_special_syntax():'
587 587
588 588 def test_timeit_return():
589 589 """
590 test wether timeit -o return object
590 test whether timeit -o return object
591 591 """
592 592
593 593 res = _ip.run_line_magic('timeit','-n10 -r10 -o 1')
@@ -298,7 +298,7 b' System commands:'
298 298 !cp a.txt b/ : System command escape, calls os.system()
299 299 cp a.txt b/ : after %rehashx, most system commands work without !
300 300 cp ${f}.txt $bar : Variable expansion in magics and system commands
301 files = !ls /usr : Capture sytem command output
301 files = !ls /usr : Capture system command output
302 302 files.s, files.l, files.n: "a b c", ['a','b','c'], 'a\nb\nc'
303 303
304 304 History:
@@ -273,7 +273,7 b' def deep_reload_hook(m):'
273 273 """Replacement for reload()."""
274 274 # Hardcode this one as it would raise a NotImplemeentedError from the
275 275 # bowels of Python and screw up the import machinery after.
276 # unlike other imports the `exclude` list aleady in place is not enough.
276 # unlike other imports the `exclude` list already in place is not enough.
277 277
278 278 if m is types:
279 279 return m
@@ -231,7 +231,7 b' class Demo(object):'
231 231 value.
232 232
233 233 - format_rst(False): a bool to enable comments and doc strings
234 formating with pygments rst lexer
234 formatting with pygments rst lexer
235 235
236 236 - formatter('terminal'): a string of pygments formatter name to be
237 237 used. Useful values for terminals: terminal, terminal256,
@@ -508,7 +508,7 b' class FileLinks(FileLink):'
508 508 # Working on a platform where the path separator is "\", so
509 509 # must convert these to "/" for generating a URI
510 510 def fp_cleaner(fp):
511 # Replace all occurences of backslash ("\") with a forward
511 # Replace all occurrences of backslash ("\") with a forward
512 512 # slash ("/") - this is necessary on windows when a path is
513 513 # provided as input, but we must link to a URI
514 514 return fp.replace('\\','/')
@@ -96,7 +96,7 b" def idle(exe=u'idle'):"
96 96 import idlelib
97 97 p = os.path.dirname(idlelib.__filename__)
98 98 # i'm not sure if this actually works. Is this idle.py script
99 # guarenteed to be executable?
99 # guaranteed to be executable?
100 100 exe = os.path.join(p, 'idle.py')
101 101 install_editor(exe + u' {filename}')
102 102
@@ -34,7 +34,7 b' Wrapper around the eventloop that gives some time to the Tkinter GUI to process'
34 34 events when it's loaded and while we are waiting for input at the REPL. This
35 35 way we don't block the UI of for instance ``turtle`` and other Tk libraries.
36 36
37 (Normally Tkinter registeres it's callbacks in ``PyOS_InputHook`` to integrate
37 (Normally Tkinter registers it's callbacks in ``PyOS_InputHook`` to integrate
38 38 in readline. ``prompt-toolkit`` doesn't understand that input hook, but this
39 39 will fix it for Tk.)
40 40 """
@@ -55,7 +55,7 b' class IPython2PythonConverter(object):'
55 55 """Convert IPython 'syntax' to valid Python.
56 56
57 57 Eventually this code may grow to be the full IPython syntax conversion
58 implementation, but for now it only does prompt convertion."""
58 implementation, but for now it only does prompt conversion."""
59 59
60 60 def __init__(self):
61 61 self.rps1 = re.compile(r'In\ \[\d+\]: ')
@@ -166,7 +166,7 b' try:'
166 166 """Split a command line's arguments in a shell-like manner.
167 167
168 168 This is a special version for windows that use a ctypes call to CommandLineToArgvW
169 to do the argv splitting. The posix paramter is ignored.
169 to do the argv splitting. The posix parameter is ignored.
170 170
171 171 If strict=False, process_common.arg_split(...strict=False) is used instead.
172 172 """
@@ -115,7 +115,7 b' def filefind(filename, path_dirs=None):'
115 115 """Find a file by looking through a sequence of paths.
116 116
117 117 This iterates through a sequence of paths looking for a file and returns
118 the full, absolute path of the first occurence of the file. If no set of
118 the full, absolute path of the first occurrence of the file. If no set of
119 119 path dirs is given, the filename is tested as is, after running through
120 120 :func:`expandvars` and :func:`expanduser`. Thus a simple call::
121 121
@@ -192,7 +192,7 b' def test_get_xdg_dir_0():'
192 192
193 193 @with_environment
194 194 def test_get_xdg_dir_1():
195 """test_get_xdg_dir_1, check nonexistant xdg_dir"""
195 """test_get_xdg_dir_1, check nonexistent xdg_dir"""
196 196 reload(path)
197 197 path.get_home_dir = lambda : HOME_TEST_DIR
198 198 os.name = "posix"
@@ -667,7 +667,7 b' def compute_item_matrix(items, row_first=False, empty=None, *args, **kwargs) :'
667 667 separator_size : int (default=2)
668 668 How much caracters will be used as a separation between each columns.
669 669 displaywidth : int (default=80)
670 The width of the area onto wich the columns should enter
670 The width of the area onto which the columns should enter
671 671
672 672 Returns
673 673 -------
@@ -675,7 +675,7 b' def compute_item_matrix(items, row_first=False, empty=None, *args, **kwargs) :'
675 675 strings_matrix
676 676
677 677 nested list of string, the outer most list contains as many list as
678 rows, the innermost lists have each as many element as colums. If the
678 rows, the innermost lists have each as many element as columns. If the
679 679 total number of elements in `items` does not equal the product of
680 680 rows*columns, the last element of some lists are filled with `None`.
681 681
@@ -86,7 +86,7 b' Using virtualenv or conda envs, you can make your IPython kernel in one env avai'
86 86
87 87 /path/to/kernel/env/bin/python -m ipykernel install --prefix=/path/to/jupyter/env --name 'python-my-env'
88 88
89 Note that this command will create a new configuration for the kernel in one of the prefered location (see ``jupyter --paths`` command for more details):
89 Note that this command will create a new configuration for the kernel in one of the preferred location (see ``jupyter --paths`` command for more details):
90 90
91 91 * system-wide (e.g. /usr/local/share),
92 92 * in Jupyter's env (sys.prefix/share),
@@ -34,7 +34,7 b' Pull requests (226):'
34 34 * `574 <https://github.com/ipython/ipython/issues/574>`_: Getcwdu
35 35 * `565 <https://github.com/ipython/ipython/issues/565>`_: don't move old config files, keep nagging the user
36 36 * `575 <https://github.com/ipython/ipython/issues/575>`_: Added more docstrings to IPython.zmq.session.
37 * `567 <https://github.com/ipython/ipython/issues/567>`_: fix trailing whitespace from reseting indentation
37 * `567 <https://github.com/ipython/ipython/issues/567>`_: fix trailing whitespace from resetting indentation
38 38 * `564 <https://github.com/ipython/ipython/issues/564>`_: Command line args in docs
39 39 * `560 <https://github.com/ipython/ipython/issues/560>`_: reorder qt support in kernel
40 40 * `561 <https://github.com/ipython/ipython/issues/561>`_: command-line suggestions
@@ -445,7 +445,7 b' Regular issues (285):'
445 445 * `46 <https://github.com/ipython/ipython/issues/46>`_: Input to %timeit is not preparsed
446 446 * `285 <https://github.com/ipython/ipython/issues/285>`_: ipcluster local -n 4 fails
447 447 * `205 <https://github.com/ipython/ipython/issues/205>`_: In the Qt console, Tab should insert 4 spaces when not completing
448 * `145 <https://github.com/ipython/ipython/issues/145>`_: Bug on MSW sytems: idle can not be set as default IPython editor. Fix Suggested.
448 * `145 <https://github.com/ipython/ipython/issues/145>`_: Bug on MSW systems: idle can not be set as default IPython editor. Fix Suggested.
449 449 * `77 <https://github.com/ipython/ipython/issues/77>`_: ipython oops in cygwin
450 450 * `121 <https://github.com/ipython/ipython/issues/121>`_: If plot windows are closed via window controls, no more plotting is possible.
451 451 * `111 <https://github.com/ipython/ipython/issues/111>`_: Iterator version of TaskClient.map() that returns results as they become available
@@ -494,7 +494,7 b' Regular issues (285):'
494 494 * `161 <https://github.com/ipython/ipython/issues/161>`_: make ipythonqt exit without dialog when exit() is called
495 495 * `263 <https://github.com/ipython/ipython/issues/263>`_: [ipython + numpy] Some test errors
496 496 * `256 <https://github.com/ipython/ipython/issues/256>`_: reset docstring ipython 0.10
497 * `258 <https://github.com/ipython/ipython/issues/258>`_: allow caching to avoid matplotlib object referrences
497 * `258 <https://github.com/ipython/ipython/issues/258>`_: allow caching to avoid matplotlib object references
498 498 * `248 <https://github.com/ipython/ipython/issues/248>`_: Can't open and read files after upgrade from 0.10 to 0.10.0
499 499 * `247 <https://github.com/ipython/ipython/issues/247>`_: ipython + Stackless
500 500 * `245 <https://github.com/ipython/ipython/issues/245>`_: Magic save and macro missing newlines, line ranges don't match prompt numbers.
@@ -284,7 +284,7 b' Pull requests (257):'
284 284 * `798 <https://github.com/ipython/ipython/issues/798>`_: pexpect & Python 3
285 285 * `804 <https://github.com/ipython/ipython/issues/804>`_: Magic 'range' crash if greater than len(input_hist)
286 286 * `821 <https://github.com/ipython/ipython/issues/821>`_: update tornado dependency to 2.1
287 * `807 <https://github.com/ipython/ipython/issues/807>`_: Faciliate ssh tunnel sharing by announcing ports
287 * `807 <https://github.com/ipython/ipython/issues/807>`_: Facilitate ssh tunnel sharing by announcing ports
288 288 * `795 <https://github.com/ipython/ipython/issues/795>`_: Add cluster-id for multiple cluster instances per profile
289 289 * `742 <https://github.com/ipython/ipython/issues/742>`_: Glut
290 290 * `668 <https://github.com/ipython/ipython/issues/668>`_: Greedy completer
@@ -581,7 +581,7 b' Pull Requests (793):'
581 581 * :ghpull:`3575`: tweak `run -d` message to 'continue execution'
582 582 * :ghpull:`3569`: add PYTHONSTARTUP to startup files
583 583 * :ghpull:`3567`: Trigger a single event on js app initilized
584 * :ghpull:`3565`: style.min.css shoudl always exist...
584 * :ghpull:`3565`: style.min.css should always exist...
585 585 * :ghpull:`3531`: allow markdown in heading cells
586 586 * :ghpull:`3577`: Simplify codemirror ipython-mode
587 587 * :ghpull:`3495`: Simplified regexp, and suggestions for clearer regexps.
@@ -666,7 +666,7 b' Pull Requests (793):'
666 666 * :ghpull:`3373`: make cookie_secret configurable
667 667 * :ghpull:`3307`: switch default ws_url logic to js side
668 668 * :ghpull:`3392`: Restore anchor link on h2-h6
669 * :ghpull:`3369`: Use different treshold for (auto)scroll in output
669 * :ghpull:`3369`: Use different threshold for (auto)scroll in output
670 670 * :ghpull:`3370`: normalize unicode notebook filenames
671 671 * :ghpull:`3372`: base default cookie name on request host+port
672 672 * :ghpull:`3378`: disable CodeMirror drag/drop on Safari
@@ -1476,7 +1476,7 b' Issues (691):'
1476 1476 * :ghissue:`3374`: ipython qtconsole does not display the prompt on OSX
1477 1477 * :ghissue:`3380`: simple call to kernel
1478 1478 * :ghissue:`3379`: TaskRecord key 'started' not set
1479 * :ghissue:`3241`: notebook conection time out
1479 * :ghissue:`3241`: notebook connection time out
1480 1480 * :ghissue:`3334`: magic interpreter interpretes non magic commands?
1481 1481 * :ghissue:`3326`: python3.3: Type error when launching SGE cluster in IPython notebook
1482 1482 * :ghissue:`3349`: pip3 doesn't run 2to3?
@@ -1802,7 +1802,7 b' Issues (691):'
1802 1802 * :ghissue:`2351`: Multiple Notebook Apps: cookies not port specific, clash with each other
1803 1803 * :ghissue:`2350`: running unittest from qtconsole prints output to terminal
1804 1804 * :ghissue:`2303`: remote tracebacks broken since 952d0d6 (PR #2223)
1805 * :ghissue:`2330`: qtconsole does not hightlight tab-completion suggestion with custom stylesheet
1805 * :ghissue:`2330`: qtconsole does not highlight tab-completion suggestion with custom stylesheet
1806 1806 * :ghissue:`2325`: Parsing Tex formula fails in Notebook
1807 1807 * :ghissue:`2324`: Parsing Tex formula fails
1808 1808 * :ghissue:`1474`: Add argument to `run -n` for custom namespace
@@ -1422,7 +1422,7 b' Issues (434):'
1422 1422 * :ghissue:`3402`: Feature Request: Save As (latex, html,..etc) as a menu option in Notebook rather than explicit need to invoke nbconvert
1423 1423 * :ghissue:`3224`: Revisit layout of notebook area
1424 1424 * :ghissue:`2746`: rerunning a cell with long output (exception) scrolls to much (html notebook)
1425 * :ghissue:`2667`: can't save opened notebook if accidently delete the notebook in the dashboard
1425 * :ghissue:`2667`: can't save opened notebook if accidentally delete the notebook in the dashboard
1426 1426 * :ghissue:`3026`: Reporting errors from _repr_<type>_ methods
1427 1427 * :ghissue:`1844`: Notebook does not exist and permalinks
1428 1428 * :ghissue:`2450`: [closed PR] Prevent jumping of window to input when output is clicked.
@@ -34,7 +34,7 b' Highlights of this release:'
34 34 (such as a linux text console without X11).
35 35
36 36 For this release we merged 24 commits, contributed by the following people
37 (please let us know if we ommitted your name and we'll gladly fix this in the
37 (please let us know if we omitted your name and we'll gladly fix this in the
38 38 notes for the future):
39 39
40 40 * Fernando Perez
@@ -190,7 +190,7 b' Smaller Changes'
190 190 (`#6990 <https://github.com/ipython/ipython/pull/6990>`__).
191 191 - A warning was added that shows on widget import because it's expected
192 192 that the API will change again by IPython 4.0. This warning can be
193 supressed (`#7107 <https://github.com/ipython/ipython/pull/7107>`__,
193 suppressed (`#7107 <https://github.com/ipython/ipython/pull/7107>`__,
194 194 `#7200 <https://github.com/ipython/ipython/pull/7200>`__,
195 195 `#7201 <https://github.com/ipython/ipython/pull/7201>`__,
196 196 `#7204 <https://github.com/ipython/ipython/pull/7204>`__).
@@ -87,7 +87,7 b' Define ``_repr_mimebundle_``'
87 87 Object can now define `_repr_mimebundle_` in place of multiple `_repr_*_`
88 88 methods and return a full mimebundle. This greatly simplify many implementation
89 89 and allow to publish custom mimetypes (like geojson, plotly, dataframes....).
90 See the ``Cutom Display Logic`` example notebook for more informations.
90 See the ``Custom Display Logic`` example notebook for more information.
91 91
92 92 Execution Heuristics
93 93 --------------------
@@ -739,7 +739,7 b''
739 739 " \n",
740 740 " def _repr_mimebundle_(self, include, exclude, **kwargs):\n",
741 741 " \"\"\"\n",
742 " repr_mimebundle shoudl accept include, exclude and **kwargs\n",
742 " repr_mimebundle should accept include, exclude and **kwargs\n",
743 743 " \"\"\"\n",
744 744 " if self._png_data is None:\n",
745 745 " self._png_data = self._figure_data('png')\n",
@@ -777,7 +777,7 b''
777 777 }
778 778 ],
779 779 "source": [
780 "# that is deffinitively wrong as it shoudl show the PNG. \n",
780 "# that is deffinitively wrong as it should show the PNG. \n",
781 781 "display(Gaussian())"
782 782 ]
783 783 },
@@ -2602,7 +2602,7 b''
2602 2602 " // Register the callback with on_msg.\n",
2603 2603 " comm.on_msg(function(msg) {\n",
2604 2604 " //console.log('receiving', msg['content']['data'], msg);\n",
2605 " // Pass the mpl event to the overriden (by mpl) onmessage function.\n",
2605 " // Pass the mpl event to the overridden (by mpl) onmessage function.\n",
2606 2606 " ws.onmessage(msg['content']['data'])\n",
2607 2607 " });\n",
2608 2608 " return ws;\n",
@@ -3,7 +3,7 b''
3 3 # This script autogenerates `IPython.core.latex_symbols.py`, which contains a
4 4 # single dict , named `latex_symbols`. The keys in this dict are latex symbols,
5 5 # such as `\\alpha` and the values in the dict are the unicode equivalents for
6 # those. Most importantly, only unicode symbols that are valid identifers in
6 # those. Most importantly, only unicode symbols that are valid identifiers in
7 7 # Python 3 are included.
8 8
9 9 #
@@ -23,7 +23,7 b' def merge_branch(repo, branch ):'
23 23
24 24 If something does not goes smoothly, merge is aborted
25 25
26 Returns True if merge sucessfull, False otherwise
26 Returns True if merge successful, False otherwise
27 27 """
28 28 # Delete the branch first
29 29 try :
General Comments 0
You need to be logged in to leave comments. Login now