That works. Thanks Fernando. Le mercredi 18 janvier 2017 21:05:26 UTC+1, Fernando Perez a écrit : > > On Wed, Jan 18, 2017 at 4:36 AM, <[email protected] > <javascript:>> 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/61a92cae-4146-44e0-915d-1696127b94b0%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
