envisage.plugins.ipython_kernel.internal_ipkernel module

This code has been inspired from the IPython repository

https://github.com/ipython/ipython/blob/2.x/examples/Embedding/internal_ipkernel.py

class envisage.plugins.ipython_kernel.internal_ipkernel.InternalIPKernel[source]

Bases: traits.has_traits.HasStrictTraits

Represents an IPython kernel and the consoles attached to it.

cleanup_consoles()[source]

Kill all existing consoles.

consoles = List()

A list of connected Qt consoles.

init_ipkernel(gui_backend=None)[source]

Initialize the IPython kernel.

Parameters
  • -- string, optional (gui_backend) – The GUI mode used to initialize the GUI event loop integration. For options, see the ipython –gui help pages. If not given, no event loop integration is set up.

  • note: (.) – Use of this argument is deprecated!:

initial_namespace = List()

The values used to initialize the kernel namespace. This is a list of tuples (name, value).

ipkernel = Instance(IPKernelApp)

The IPython kernel.

namespace = Any()

The kernel namespace. Use Any instead of Dict because this is an IPython dictionary object.

new_qt_console()[source]

Start a new qtconsole connected to our kernel.

shutdown()[source]

Shut the kernel down.

Existing IPython consoles are killed first.