diff --git a/comm/__init__.py b/comm/__init__.py index ee9e76a..671f287 100644 --- a/comm/__init__.py +++ b/comm/__init__.py @@ -8,7 +8,7 @@ It also provides a base Comm implementation and a default CommManager for the IPython case. """ -from .base_comm import CommManager +from .base_comm import BaseComm, CommManager __version__ = "0.1.2" __all__ = [ @@ -20,12 +20,17 @@ _comm_manager = None +class DummyComm(BaseComm): + def publish_msg(self, msg_type, data=None, metadata=None, buffers=None, **keys): + pass + + def _create_comm(*args, **kwargs): """Create a Comm. This method is intended to be replaced, so that it returns your Comm instance. """ - raise NotImplementedError("Cannot ") + return DummyComm(*args, **kwargs) def _get_comm_manager():