Skip to content

Commit 40a55ac

Browse files
committed
Scatter event fixes
1 parent a8d4e7a commit 40a55ac

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

bqplot/marks.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -522,17 +522,16 @@ class Scatter(Mark):
522522
update_on_move = Bool(False, sync=True)
523523

524524
def __init__(self, **kwargs):
525-
super(Scatter, self).__init__(**kwargs)
526525
self._drag_end_handlers = CallbackDispatcher()
527-
self.on_msg(self._handle_custom_msgs)
526+
super(Scatter, self).__init__(**kwargs)
528527

529528
def on_drag_end(self, callback, remove=False):
530529
self._drag_end_handlers.register_callback(callback, remove=remove)
531530

532531
def _handle_custom_msgs(self, _, content, buffers=None):
533-
super(Scatter, self)._handle_custom_msgs(self, content)
534532
if content.get('event', '') == 'drag_end':
535533
self._drag_end_handlers(self, content)
534+
super(Scatter, self)._handle_custom_msgs(self, content)
536535

537536
_view_name = Unicode('Scatter', sync=True)
538537
_view_module = Unicode('nbextensions/bqplot/Scatter', sync=True)

docs/source/conf.py

+1-6
Original file line numberDiff line numberDiff line change
@@ -42,19 +42,14 @@
4242
'sphinx.ext.autosummary',
4343
'sphinx.ext.viewcode',
4444
'sphinx.ext.napoleon',
45-
# 'numpydoc',
4645
]
4746

4847
autosummary_generate = True
49-
# numpydoc_show_class_members = False
50-
#autodoc_default_flags = ['members', 'no-inherited-members', 'show-inheritance']
5148

5249
# Add any paths that contain templates here, relative to this directory.
5350
templates_path = ['_templates']
5451

5552
# The suffix(es) of source filenames.
56-
# You can specify multiple suffix as a list of string:
57-
# source_suffix = ['.rst', '.md']
5853
source_suffix = '.rst'
5954

6055
# Add dev disclaimer.
@@ -76,7 +71,7 @@
7671
# General information about the project.
7772
project = u'bqplot'
7873
copyright = u'2015, Bloomberg LP'
79-
author= u'The BQplot Development Team'
74+
author = u'The BQplot Development Team'
8075

8176
# The version info for the project you're documenting, acts as replacement for
8277
# |version| and |release|, also used in various other places throughout the

0 commit comments

Comments
 (0)