##// END OF EJS Templates
better docstring for the -r option
Martín Gaitán -
Show More
@@ -212,7 +212,11 b' class CodeMagics(Magics):'
212
212
213 Options:
213 Options:
214 --------
214 --------
215 -r : specify ranges of lines to load from the source
215 -r <lines>: Specify lines or ranges of lines to load from the source.
216 Ranges could be specified as x-y (x..y) or in python-style x:y
217 (x..(y-1)). Both limits x and y can be left blank (meaning the
218 beginning and end of the file, respectively).
219
216 -y : Don't ask confirmation for loading source above 200 000 characters.
220 -y : Don't ask confirmation for loading source above 200 000 characters.
217
221
218 This magic command can either take a local filename, a URL, an history
222 This magic command can either take a local filename, a URL, an history
@@ -225,7 +229,7 b' class CodeMagics(Magics):'
225 %load myMacro
229 %load myMacro
226 %load http://www.example.com/myscript.py
230 %load http://www.example.com/myscript.py
227 %load -r 5-10 myscript.py
231 %load -r 5-10 myscript.py
228 %load -r 10-20,30,40-50 foo.py
232 %load -r 10-20,30,40: foo.py
229 """
233 """
230 opts,args = self.parse_options(arg_s,'yr:')
234 opts,args = self.parse_options(arg_s,'yr:')
231
235
General Comments 0
You need to be logged in to leave comments. Login now