I’ve been using spyder. but using the command line things seem to be working fine now. Thank you! things working fine with 0.12.10 but now the callback doesn’t want to work with 0.12.13…
callback_code = “”"
var data = source2.get(‘data’);
original_data = origin_source.get(‘data’);
maxim = slider_obj.value;
console.log("max quant: " + maxim);
minim = slider2_obj.value;
console.log("min quant: " + minim);
maxil = slider3_obj.value;
console.log("max level: " + maxil);
minil = slider4_obj.value;
console.log("min level: " + minil);
select = selection_obj.value;
console.log("select: " + select)
for (var key in original_data) {
data[key]=;
for (var i = 0; i < original_data[‘total_traded’].length; ++i){
if ((select===‘all’ || original_data[‘select_side’][i]===select) && (original_data[‘total_traded’][i]<=maxim && original_data[‘total_traded’][i]>=minim) && (original_data[‘num_levels_traded’][i]<=maxil && original_data[‘num_levels_traded’][i]>=minil)){
data[key].push(original_data[key][i]);
}}
}
target_obj.trigger(‘change’);
source2.trigger(‘change’);
“”"
slider = Slider(title=“Max Quantity Traded in Sweep”, start=0, end=maxi, value= maxi, step=0.01)
slider2= Slider(title=“Min Quantity Traded in Sweep”, start=0, end=maxi, value= 0, step=0.01)
slider3= Slider(title=“Max Levels Traded in Sweep”, start= 2, end=maxilev, value=maxilev, step = 1)
slider4= Slider(title=“Min Levels Traded in Sweep”, start= 2, end=maxilev, value=2, step = 1)
selection = Select(title=“buy or sell?”, value=“all”, options=[“all”, “buy”, “sell”])
#selection = RadioButtonGroup(labels=[“all”, “buy”, “sell”], active=0)
p1 = figure(title=“GDAX: BTCUSD”, plot_width=900, plot_height=500,
tools=[hover, ‘xwheel_zoom, box_zoom, tap, box_select, undo, redo, reset, save’])
p1.line(‘date’, ‘last_trade’, color=‘black’, source=source1)
p1.circle(‘date’, ‘last_trade’, color=‘color’, radius = ‘radius’, source=source2)
p1.xaxis.formatter=DatetimeTickFormatter(
hours=[“%F %H:%M:%S”])
p1.xaxis.major_label_orientation = math.pi/2
callbackJS=CustomJS(args=dict(source2=source2,
origin_source=origin_source,
slider_obj=slider,
slider2_obj=slider2,
slider3_obj=slider3,
slider4_obj=slider4,
selection_obj=selection,
target_obj=p1), code = callback_code)
···
On Wednesday, January 10, 2018 at 3:08:20 PM UTC-6, Bryan Van de ven wrote:
It seems like the common thread here is your IDE (what is it?). I don’t use an IDE so I don’t have much I can suggest. It would be helpful if you can run the code outside your IDE, on the command line, to confirm that things work there as expected.
Thanks,
Bryan
On Jan 10, 2018, at 14:58, Robin Yim [email protected] wrote:
So I’ve copy/pasted iris.py (from https://bokeh.pydata.org/en/latest/docs/gallery/iris.html) to my IDE and ran it. It rendered properly. Then running it again just gives a blank page.
On Wednesday, January 10, 2018 at 1:43:40 PM UTC-6, Bryan Van de ven wrote:
Hi,
Everything in the docs, examples, tests etc and my own daily usage is working as expected. It’s not really possible to speculate about what might be going amiss in your specific usage without much more information and details (e.g your code).
Thanks,
Bryan
On Jan 10, 2018, at 13:21, [email protected] wrote:
So I’ve been having a lot of success and then suddenly I’m getting this error message.
Bokeh Error
Cannot read property ‘connect’ of undefined
After some thought I thought it could be the version of Bokeh I’m working with as running of Bokeh’s demos yields the same message (I was running on Bokeh 0.12.10). I updated toe 0.12.13 but then it just gives me a blank page (same with Bokeh’s demo codes). I ran my code and Bokeh’s code using various versions and it looks like Bokeh 0.12.10 and older yield the error message above but Bokeh 0.12.11 and newer gives me blank pages. It was working fine earlier in the day but now it’s not…
tldr: show() isn’t rendering. help?!
–
You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/e958dce7-fd56-44cd-9f63-7dd4dd926329%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.
–
You received this message because you are subscribed to the Google Groups “Bokeh Discussion - Public” group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/3c7af983-c1c5-4278-b457-c7215ab3fb65%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.