##// END OF EJS Templates
Fix cpaste documentation...
Samuel Gaist -
Show More
@@ -109,7 +109,7 b' class TerminalMagics(Magics):'
109 109 Just press enter and type -- (and press enter again) and the block
110 110 will be what was just pasted.
111 111
112 IPython statements (magics, shell escapes) are not supported (yet).
112 Shell escapes are not supported (yet).
113 113
114 114 See also
115 115 --------
@@ -122,9 +122,19 b' class TerminalMagics(Magics):'
122 122 In [8]: %cpaste
123 123 Pasting code; enter '--' alone on the line to stop.
124 124 :>>> a = ["world!", "Hello"]
125 :>>> print " ".join(sorted(a))
125 :>>> print(" ".join(sorted(a)))
126 126 :--
127 127 Hello world!
128
129 ::
130 In [8]: %cpaste
131 Pasting code; enter '--' alone on the line to stop.
132 :>>> %alias_magic t timeit
133 :>>> %t -n1 pass
134 :--
135 Created `%t` as an alias for `%timeit`.
136 Created `%%t` as an alias for `%%timeit`.
137 354 ns ± 224 ns per loop (mean ± std. dev. of 7 runs, 1 loop each)
128 138 """
129 139 opts, name = self.parse_options(parameter_s, 'rqs:', mode='string')
130 140 if 'r' in opts:
General Comments 0
You need to be logged in to leave comments. Login now