You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
647 B
Python
22 lines
647 B
Python
2 years ago
|
"""Base class to manage comms"""
|
||
|
|
||
|
# Copyright (c) IPython Development Team.
|
||
|
# Distributed under the terms of the Modified BSD License.
|
||
|
|
||
|
|
||
|
import comm.base_comm
|
||
|
import traitlets
|
||
|
import traitlets.config
|
||
|
|
||
|
|
||
|
class CommManager(comm.base_comm.CommManager, traitlets.config.LoggingConfigurable):
|
||
|
|
||
|
kernel = traitlets.Instance("ipykernel.kernelbase.Kernel")
|
||
|
comms = traitlets.Dict()
|
||
|
targets = traitlets.Dict()
|
||
|
|
||
|
def __init__(self, **kwargs):
|
||
|
# CommManager doesn't take arguments, so we explicitly forward arguments
|
||
|
comm.base_comm.CommManager.__init__(self)
|
||
|
traitlets.config.LoggingConfigurable.__init__(self, **kwargs)
|