Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions comm/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__ = [
Expand 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():
Expand Down