[IPython-User] indentation on notebook?

Chao YUE chaoyuejoy@gmail....
Fri Jun 8 16:10:34 CDT 2012


I am using

Python 2.7.1+ (r271:86832, Apr 11 2011, 18:05:24)
Type "copyright", "credits" or "license" for more information.

IPython 0.12.1 -- An enhanced Interactive Python.

on ubuntu 11.04

thanks!

Chao

2012/6/8 Paul Hobson <pmhobson@gmail.com>

> Python 2.7.2, IPython 12.1 (32-bit), Windows 7 (64-bit):
> TAB key does not indent 1 line when cursor is at the start of the line
> TAB key does not indent 1 or more lines when they are hightlighted.
>
> Python 2.7.1+, IPython 13.dev, Linux Mint 12 (all 32-bit) works as
> expected.
>
> Hope this helps,
> -paul
>
> On Fri, Jun 8, 2012 at 12:09 PM, Brian Granger <ellisonbg@gmail.com>
> wrote:
> > Hmm, I am on FF 12 as well and I don't see this.  Can anyone else
> > confirm this issue?
> >
> > On Fri, Jun 8, 2012 at 11:27 AM, Chao YUE <chaoyuejoy@gmail.com> wrote:
> >> 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
> >>
> ************************************************************************************
> >>
> >>
> >> _______________________________________________
> >> 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
> _______________________________________________
> 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/12236259/attachment-0001.html 


More information about the IPython-User mailing list