I have just removed the whole paragraph, which was supposed to be a comment.

If the `.py` had been previously extracted from an `.ipynb` then it will
magically work
(and the user will probably be surprised, as I was!) If not, then with the
`Ctrl-m -` shortcut it is easy enough to do by hand.



On Mon, Aug 5, 2013 at 2:37 AM, Matthias Bussonnier <
notifications@github.com> wrote:

> In docs/source/interactive/notebook.rst:
>
> > @@ -575,7 +564,7 @@ individual cells using the ``Edit | Split Cell`` menu option, or the
> >  :kbd:`Ctrl-m -` keyboard shortcut.
> >
> >  .. Alternatively, prior to importing the ``.py``, you can manually add ``# <
> > -nbformat>2</nbformat>`` at the start of the file, and then add separators for
> > -text and code cells, to get a cleaner import with the file already broken into
> > -individual cells.
> > +.. nbformat>2</nbformat>`` at the start of the file, and then add separators for
>
> does this works with the open tag on previous line ?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/ipython/ipython/pull/3902/files#r5573706>
> .
>



-- 
Dr. David P. Sanders

Profesor Titular "A" / Associate Professor
Departamento de Física, Facultad de Ciencias
Universidad Nacional Autónoma de México (UNAM)

dpsanders@gmail.com
http://sistemas.fciencias.unam.mx/~dsanders

Cubículo / office: #414, 4o. piso del Depto. de Física

Tel.: +52 55 5622 4965