IPython already is embedded in Jupyter! But if you want to use it like that in another notebook interface, probably the best way to use it is as a *kernel*. This is what Jupyter does: it launches a process which it can communicate with using a documented protocol [1] to execute code and get output. This interface is likely to be much more stable than any Python APIs to do the same things.
[1] http://jupyter-client.readthedocs.io/en/latest/messaging.html On 20 December 2017 at 01:10, Jeff Zhang <[email protected]> wrote: > > Thanks Thomas, I'd like to embed ipython into some kind of notebook like > jupyter. So I'd like to use Ipython advanced apis for capturing the output, > code completion and etc. > > 在 2017年12月19日星期二 UTC+8下午7:56:08,takowl写道: >> >> Hi Jeff, >> >> You could look at some IPython extensions to see how they use the API: >> https://github.com/ipython/ipython/wiki/Extensions-Index . >> >> What sort of project are you planning to embed IPython into? >> >> Thomas >> >> On 19 December 2017 at 11:51, Jeff Zhang <[email protected]> wrote: >> >>> >>> I'd like to embed IPython in my project, so I would use the internal api >>> of IPython. The only thing I can find for now is this link >>> https://ipython.readthedocs.io/en/stable/ >>> But what other materials that I can find for using IPython api. >>> >>> >>> >>> >>> -- >>> 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/ms >>> gid/jupyter/7a4b41df-4dab-401e-9c2e-d3dd05e180a1%40googlegroups.com >>> <https://groups.google.com/d/msgid/jupyter/7a4b41df-4dab-401e-9c2e-d3dd05e180a1%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/6972a613-6c64-401b-b56b-9e65fde619a1%40googlegroups.com > <https://groups.google.com/d/msgid/jupyter/6972a613-6c64-401b-b56b-9e65fde619a1%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/CAOvn4qjwoYg2x87PmjLw9Dfq8DVd%3DsWrGXXxoExYqThQt4k3oQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
