3

I'd like to use ipython within a Python application. Does anyone have (or can point to) a minimal example that:

  1. Starts a kernel and..
  2. Communicates with it, i.e. sends and receives messages / code fragments?

There is an example in the source code docs ipkernel_qt.py, but this only shows how to start a kernel from within a script and how to modify the name space and does not show how to send code. I think I need to use a KernelManager, but is there a way to connect the kernel manager to a kernel without a configuration file?

Santosh Kumar
  • 26,475
  • 20
  • 67
  • 118
matthjes
  • 671
  • 7
  • 20

1 Answers1

0

I did this a while back and things have changed since, but it isn't difficult to do. There's an example in the docs for embedding IPython.

Carl Smith
  • 3,025
  • 24
  • 36