[IPython-User] indentation on notebook?

Brian Granger ellisonbg@gmail....
Fri Jun 8 13:18:16 CDT 2012


In the notebook:

* Hitting TAB will insert 4 spaces.
* Selecting multiple lines of text and hitting TAB will indent all of
then 4 spaces.  SHIFT-TAB will dedent.

Cheers,

Brian

On Fri, Jun 8, 2012 at 11:10 AM, Chao YUE <chaoyuejoy@gmail.com> wrote:
> Dear all,
>
> how do you do indentation in notebook? suppose write my code line by line in
> interactive way, now I finish testing and I want to indent them and
> give them a function name? Normally I adjust them manually by hitting
> whitespace key line by line. But I have to say, notebook is fantastic!
>
> cheers,
>
> Chao
> --
> ***********************************************************************************
> Chao YUE
> Laboratoire des Sciences du Climat et de l'Environnement (LSCE-IPSL)
> UMR 1572 CEA-CNRS-UVSQ
> Batiment 712 - Pe 119
> 91191 GIF Sur YVETTE Cedex
> Tel: (33) 01 69 08 29 02; Fax:01.69.08.77.16
> ************************************************************************************
>
>
> _______________________________________________
> IPython-User mailing list
> IPython-User@scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-user
>



-- 
Brian E. Granger
Cal Poly State University, San Luis Obispo
bgranger@calpoly.edu and ellisonbg@gmail.com


More information about the IPython-User mailing list