You can copy/paste it, or you can run a cell containing "%load
some_file.py". Sorry, there's no more obvious way to import code from a .py
file.

On 5 May 2018 at 18:29, Paul Gureghian <[email protected]> wrote:

> How to open a .py file in a new notebook? I know how to create a new
> notebook from scratch. How to import a local .py file into a notebook?
> thanks
>
> --
> You received this message because you are subscribed to the Google Groups
> "Project Jupyter" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> To view this discussion on the web visit https://groups.google.com/d/
> msgid/jupyter/e899691a-c57d-4c78-b231-e614308a72c4%40googlegroups.com
> <https://groups.google.com/d/msgid/jupyter/e899691a-c57d-4c78-b231-e614308a72c4%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"Project Jupyter" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jupyter/CAOvn4qgHb_J-b%3DGggSOGhcD6_ZBq5_kZ%2BOzj_vgbBUa0hfHe7w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to