ginga
ginga copied to clipboard
cursession undefined in ImageViewBokeh.py
In the ImageViewBokeh2.update_image()
method, there is cursession().store_objects(d_src)
, where cursession
is not defined anywhere. Is this Bokeh magic or some oversight?
bokeh is not yet a fully supported back end, mostly because I haven't figured out a way yet to connect the event bindings. ImageViewBokeh2
class was one possible implementation of the ImageViewBokeh
class, so it is in there for reference, but not used. And probably the cursession()
is from that. That is some API call from the Bokeh library.
so it is in there for reference, but not used
Maybe it should be commented? Having a broken "live" code can cause some confusing traceback if someone tried to use this class. Just a thought.