Show More
@@ -261,7 +261,7 b' class CodeMagics(Magics):' | |||||
261 | -e: Pass number of days for the link to be expired. |
|
261 | -e: Pass number of days for the link to be expired. | |
262 | The default will be 7 days. |
|
262 | The default will be 7 days. | |
263 | """ |
|
263 | """ | |
264 |
opts, args = self.parse_options(parameter_s, |
|
264 | opts, args = self.parse_options(parameter_s, "d:e:") | |
265 |
|
265 | |||
266 | try: |
|
266 | try: | |
267 | code = self.shell.find_user_code(args) |
|
267 | code = self.shell.find_user_code(args) | |
@@ -285,7 +285,7 b' class CodeMagics(Magics):' | |||||
285 | "title": opts.get("d", "Pasted from IPython"), |
|
285 | "title": opts.get("d", "Pasted from IPython"), | |
286 | "syntax": "python", |
|
286 | "syntax": "python", | |
287 | "content": code, |
|
287 | "content": code, | |
288 | "expiry_days": expiry_days |
|
288 | "expiry_days": expiry_days, | |
289 | } |
|
289 | } | |
290 | ).encode("utf-8") |
|
290 | ).encode("utf-8") | |
291 |
|
291 |
General Comments 0
You need to be logged in to leave comments.
Login now