Qudi
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
kernellogic.QudiKernelLogic Class Reference

Logic module providing a Jupyer-compatible kernel connected via ZMQ. More...

Inheritance diagram for kernellogic.QudiKernelLogic:
Inheritance graph
[legend]
Collaboration diagram for kernellogic.QudiKernelLogic:
Collaboration graph
[legend]

Public Member Functions

def __init__ (self, kwargs)
 Create logic object. More...
 
def on_activate (self)
 Prepare logic module for work.
 
def on_deactivate (self)
 Deactivate module.
 
def startKernel (self, config, external=None)
 Start a qudi inprocess jupyter kernel. More...
 
def stopKernel (self, kernelid)
 Tell kernel to close all sockets and stop hearteat thread. More...
 
def cleanupKernel (self, kernelid, external=None)
 Remove kernel reference and tell rpyc client for that kernel to exit. More...
 
def updateModuleList (self)
 Remove non-existing modules from namespace, add new modules to namespace, update reloaded modules.
 

Public Attributes

 kernellist
 
 modules
 

Static Public Attributes

 sigStartKernel = QtCore.Signal(str)
 
 sigStopKernel = QtCore.Signal(int)
 

Detailed Description

Logic module providing a Jupyer-compatible kernel connected via ZMQ.

Constructor & Destructor Documentation

◆ __init__()

def kernellogic.QudiKernelLogic.__init__ (   self,
  kwargs 
)

Create logic object.

Parameters
dictkwargs: additional parameters as a dict

Member Function Documentation

◆ cleanupKernel()

def kernellogic.QudiKernelLogic.cleanupKernel (   self,
  kernelid,
  external = None 
)

Remove kernel reference and tell rpyc client for that kernel to exit.

Parameters
strkernelid: uuid of kernel reference to remove
callableexternal: reference to rpyc client exit function

◆ startKernel()

def kernellogic.QudiKernelLogic.startKernel (   self,
  config,
  external = None 
)

Start a qudi inprocess jupyter kernel.

Parameters
dictconfig: connection information for kernel
callableexternal: function to call on exit of kernel
Returns
str: uuid of the started kernel

◆ stopKernel()

def kernellogic.QudiKernelLogic.stopKernel (   self,
  kernelid 
)

Tell kernel to close all sockets and stop hearteat thread.

Parameters
strkernelid: uuid of kernel to be stopped

The documentation for this class was generated from the following file: