On Wed, Jan 18, 2017 at 4:36 AM, <[email protected]>
wrote:

> Hi all,
> Is there a way to insert a new cell below the current cell from python?
> The idea would be to mimic what the '+' button (or Esc-B sequence) does
> from the notebook page.
>

This should do the trick for you:

contents = "hello"

shell = get_ipython()
shell.set_next_input(contents, replace=False)

###

Cheers,

f

-- 
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/CAHAreOrnuFaPb2es4B8NVFcWmF005MWbrR7D%2BZKttL67hPe78w%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to