Show More
@@ -109,7 +109,7 b' class TerminalMagics(Magics):' | |||||
109 | Just press enter and type -- (and press enter again) and the block |
|
109 | Just press enter and type -- (and press enter again) and the block | |
110 | will be what was just pasted. |
|
110 | will be what was just pasted. | |
111 |
|
111 | |||
112 |
|
|
112 | Shell escapes are not supported (yet). | |
113 |
|
113 | |||
114 | See also |
|
114 | See also | |
115 | -------- |
|
115 | -------- | |
@@ -122,9 +122,19 b' class TerminalMagics(Magics):' | |||||
122 | In [8]: %cpaste |
|
122 | In [8]: %cpaste | |
123 | Pasting code; enter '--' alone on the line to stop. |
|
123 | Pasting code; enter '--' alone on the line to stop. | |
124 | :>>> a = ["world!", "Hello"] |
|
124 | :>>> a = ["world!", "Hello"] | |
125 |
:>>> print |
|
125 | :>>> print(" ".join(sorted(a))) | |
126 | :-- |
|
126 | :-- | |
127 | Hello world! |
|
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 | opts, name = self.parse_options(parameter_s, 'rqs:', mode='string') |
|
139 | opts, name = self.parse_options(parameter_s, 'rqs:', mode='string') | |
130 | if 'r' in opts: |
|
140 | if 'r' in opts: |
General Comments 0
You need to be logged in to leave comments.
Login now