[IPython-dev] magics in blocks

Frédéric Mantegazza mantegazza at ill.fr
Fri Apr 8 01:37:22 CDT 2005


Le Jeudi 7 Avril 2005 19:22, Fernando Perez a écrit :

> > Or it could be default to 1, and must be forced to 0 to remove this
> > feature...
>
> Look at CVS :)

# multi_line_specials: if true, allow magics, aliases and shell escapes (via
# !cmd) to be used in multi-line input (like for loops).  For example, if
# you have this active, the following is valid in IPython:
#
#In [17]: for i in range(3):
#   ....:     mkdir $i
#   ....:     !touch $i/hello
#   ....:     ls -l $i

multi_line_specials 1

Good !

-- 
   Frédéric




More information about the IPython-dev mailing list