Show More
@@ -1,7 +1,7 b'' | |||
|
1 | 1 | # -*- coding: utf-8 -*- |
|
2 | 2 | """Magic functions for InteractiveShell. |
|
3 | 3 | |
|
4 |
$Id: Magic.py 138 |
|
|
4 | $Id: Magic.py 1386 2006-07-08 09:32:30Z vivainio $""" | |
|
5 | 5 | |
|
6 | 6 | #***************************************************************************** |
|
7 | 7 | # Copyright (C) 2001 Janko Hauser <jhauser@zscout.de> and |
@@ -2915,8 +2915,10 b' Defaulting color scheme to \'NoColor\'"""' | |||
|
2915 | 2915 | is the new sentinel for this operation) |
|
2916 | 2916 | |
|
2917 | 2917 | The block is dedented prior to execution to enable execution of |
|
2918 | method definitions. The executed block is also assigned to variable | |
|
2919 | named 'pasted_block' for later editing with '%edit pasted_block'. | |
|
2918 | method definitions. '>' characters at the beginning of a line is | |
|
2919 | ignored, to allow pasting directly from e-mails. The executed block | |
|
2920 | is also assigned to variable named 'pasted_block' for later editing | |
|
2921 | with '%edit pasted_block'. | |
|
2920 | 2922 | |
|
2921 | 2923 | You can also pass a variable name as an argument, e.g. '%cpaste foo'. |
|
2922 | 2924 | This assigns the pasted block to variable 'foo' as string, without |
@@ -2939,7 +2941,7 b' Defaulting color scheme to \'NoColor\'"""' | |||
|
2939 | 2941 | l = iplib.raw_input_original(':') |
|
2940 | 2942 | if l ==sentinel: |
|
2941 | 2943 | break |
|
2942 | lines.append(l) | |
|
2944 | lines.append(l.lstrip('>')) | |
|
2943 | 2945 | block = "\n".join(lines) + '\n' |
|
2944 | 2946 | #print "block:\n",block |
|
2945 | 2947 | if not par: |
@@ -1,3 +1,9 b'' | |||
|
1 | 2006-07-08 Ville Vainio <vivainio@gmail.com> | |
|
2 | ||
|
3 | * Magic.py: %cpaste now strips > from the beginning of lines | |
|
4 | to ease pasting quoted code from emails. Contributed by | |
|
5 | Stefan van der Walt. | |
|
6 | ||
|
1 | 7 | 2006-06-29 Ville Vainio <vivainio@gmail.com> |
|
2 | 8 | |
|
3 | 9 | * ipmaker.py, Shell.py: qt4agg matplotlib backend support for pylab |
General Comments 0
You need to be logged in to leave comments.
Login now