hover does not work after session store

Hi, all,

I have a problem in hover.
As following simple example, I figured an object and then changed a property.
After session.store_objects() or session.store_document(), hover does not work.

Could you comment what I’m doing wrong? Or Is it a kind of bug?

Thanks in advance.

Connor.

from collections import OrderedDict
from bokeh.plotting import *
from bokeh.models import HoverTool
from bokeh.document import Document
from bokeh.session import Session

doc = Document()
ses = Session()
ses.use_doc(‘test’)
ses.load_document(doc)

x = [1]
y = [2]
radii = [0.5]
colors = [‘red’]

source = ColumnDataSource(
data=dict(
x=x,
y=y,
radius=radii,
colors=colors,
)
)

p = figure(title=“Test 1”, tools=“hover”)

p.circle(x, y, radius=radii, source=source,
fill_color=colors, fill_alpha=0.6, line_color=None)

hover =p.select(dict(type=HoverTool))
hover.tooltips = OrderedDict([
("(x,y)", “($x, $y)”),
(“radius”, “@radius”),
])

doc.add§
ses.store_document(doc)

import time
time.sleep(10)

p.title=“Test 2”
#ses.store_document(doc)
ses.store_objects(p, dirty_only=False)

``

Ah… In addition, I’m doing on

  • python 2.7.9 from conda
  • bokeh 0.8.2
  • on Ubuntu 14.10

2015년 3월 27일 금요일 오후 5시 56분 20초 UTC+9, Connor Park 님의 말:

···

Hi, all,

I have a problem in hover.
As following simple example, I figured an object and then changed a property.
After session.store_objects() or session.store_document(), hover does not work.

Could you comment what I’m doing wrong? Or Is it a kind of bug?

Thanks in advance.

Connor.

Hi Connor,

Mmm… this seems like a bug. Could you please add a related issue on github so we can track and try to address it?

Thank you!

Fabio

···

On Friday, March 27, 2015 at 9:56:20 AM UTC+1, Connor Park wrote:

Hi, all,

I have a problem in hover.
As following simple example, I figured an object and then changed a property.
After session.store_objects() or session.store_document(), hover does not work.

Could you comment what I’m doing wrong? Or Is it a kind of bug?

Thanks in advance.

Connor.

from collections import OrderedDict
from bokeh.plotting import *
from bokeh.models import HoverTool
from bokeh.document import Document
from bokeh.session import Session

doc = Document()
ses = Session()
ses.use_doc(‘test’)
ses.load_document(doc)

x = [1]
y = [2]
radii = [0.5]
colors = [‘red’]

source = ColumnDataSource(
data=dict(
x=x,
y=y,
radius=radii,
colors=colors,
)
)

p = figure(title=“Test 1”, tools=“hover”)

p.circle(x, y, radius=radii, source=source,
fill_color=colors, fill_alpha=0.6, line_color=None)

hover =p.select(dict(type=HoverTool))
hover.tooltips = OrderedDict([
("(x,y)", “($x, $y)”),
(“radius”, “@radius”),
])

doc.add§
ses.store_document(doc)

import time
time.sleep(10)

p.title=“Test 2”
#ses.store_document(doc)
ses.store_objects(p, dirty_only=False)

``