[IPython-User] indentation on notebook?

Chao YUE chaoyuejoy@gmail....
Fri Jun 8 13:27:16 CDT 2012


Thanks Brian, then which browser are you using? I am using firefox 12.0 in
which select several lines then TAB doesn't work...

cheers,

Chao

2012/6/8 Brian Granger <ellisonbg@gmail.com>

> 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
> _______________________________________________
> IPython-User mailing list
> IPython-User@scipy.org
> http://mail.scipy.org/mailman/listinfo/ipython-user
>



-- 
***********************************************************************************
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
************************************************************************************
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/ipython-user/attachments/20120608/332d276e/attachment.html 


More information about the IPython-User mailing list