diff --git a/ipyvolume/transferfunction.py b/ipyvolume/transferfunction.py index 1229ce49..bd6b1ffc 100644 --- a/ipyvolume/transferfunction.py +++ b/ipyvolume/transferfunction.py @@ -28,7 +28,7 @@ def array_to_json(a, obj=None): array_serialization = dict(to_json=array_to_json, from_json=array_from_json) -@widgets.register +@widgets.register() class TransferFunction(widgets.DOMWidget): _model_name = Unicode('TransferFunctionModel').tag(sync=True) _view_name = Unicode('TransferFunctionView').tag(sync=True) diff --git a/ipyvolume/widgets.py b/ipyvolume/widgets.py index 95570aab..39bb4862 100644 --- a/ipyvolume/widgets.py +++ b/ipyvolume/widgets.py @@ -20,7 +20,7 @@ import ipyvolume._version semver_range_frontend = "~" + ipyvolume._version.__version_js__ -@widgets.register +@widgets.register() class Mesh(widgets.DOMWidget): _view_name = Unicode('MeshView').tag(sync=True) _view_module = Unicode('ipyvolume').tag(sync=True) @@ -56,7 +56,7 @@ class Mesh(widgets.DOMWidget): side = traitlets.CaselessStrEnum(['front', 'back', 'both'], 'both').tag(sync=True) -@widgets.register +@widgets.register() class Scatter(widgets.DOMWidget): _view_name = Unicode('ScatterView').tag(sync=True) _view_module = Unicode('ipyvolume').tag(sync=True) @@ -90,7 +90,7 @@ class Scatter(widgets.DOMWidget): -@widgets.register +@widgets.register() class Figure(ipywebrtc.MediaStream): """Widget class representing a volume (rendering) using three.js""" _view_name = Unicode('FigureView').tag(sync=True)