show() not working...

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?!

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.

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.

What IDE? What happens if you just run at the command line "python iris.py" ?

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, ryim...@gmail.com 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 bokeh+un...@continuum.io.
To post to this group, send email to bo...@continuum.io.
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\.

I was able to get my original code to work after about a dozen or so closing and reopening of my IDE and uninstalling and re-installing various versions of bokeh, but I’m only able to get a rendering once. After that I either get the error message above for bokeh 0.12.10 and older or just a blank page with 0.12.11 and newer. Even when i simply run the following code:

from bokeh.io import output_file, show
from bokeh.layouts import widgetbox
from bokeh.models.widgets import Slider

output_file("slider.html")

slider = Slider(start=0, end=10, value=1, step=.1, title="Stuff")

show(widgetbox(slider))
···

On Wednesday, January 10, 2018 at 2:58:19 PM UTC-6, Robin Yim 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.

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, ryim...@gmail.com 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 bokeh+un...@continuum.io.
To post to this group, send email to bo...@continuum.io.
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\.

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.

oops at the end should be the following

slider.js_on_change(‘value’, callbackJS)

slider2.js_on_change(‘value’, callbackJS)

slider3.js_on_change(‘value’, callbackJS)

slider4.js_on_change(‘value’, callbackJS)

selection.js_on_change(‘value’, callbackJS)

···

On Wednesday, January 10, 2018 at 3:22:24 PM UTC-6, Robin Yim wrote:

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.

hello

to avoid all the problems regarding version of bokeh tout Can use a virtual environnement provided by virtualenv if you are working with linux

sincerly

···

Le 10 janv. 2018 22:23, “Robin Yim” [email protected] a écrit :

oops at the end should be the following

slider.js_on_change(‘value’, callbackJS)

slider2.js_on_change(‘value’, callbackJS)

slider3.js_on_change(‘value’, callbackJS)

slider4.js_on_change(‘value’, callbackJS)

selection.js_on_change(‘value’, callbackJS)

On Wednesday, January 10, 2018 at 3:22:24 PM UTC-6, Robin Yim wrote:

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.

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/21e0da6e-52ae-4e8c-a58c-b2feef5fdb2f%40continuum.io.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.

Or a conda environment / Anaconda

Bryan

···

On Jan 10, 2018, at 15:47, fabien genty <[email protected]> wrote:

hello

to avoid all the problems regarding version of bokeh tout Can use a virtual environnement provided by virtualenv if you are working with linux

sincerly

Le 10 janv. 2018 22:23, "Robin Yim" <[email protected]> a écrit :
oops at the end should be the following

slider.js_on_change('value', callbackJS)
slider2.js_on_change('value', callbackJS)
slider3.js_on_change('value', callbackJS)
slider4.js_on_change('value', callbackJS)
selection.js_on_change('value', callbackJS)

On Wednesday, January 10, 2018 at 3:22:24 PM UTC-6, Robin Yim wrote:
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, ryim...@gmail.com 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 bokeh+un...@continuum.io.
>> To post to this group, send email to bo...@continuum.io.
>> 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 bokeh+un...@continuum.io.
> To post to this group, send email to bo...@continuum.io.
> 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\.

--
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/21e0da6e-52ae-4e8c-a58c-b2feef5fdb2f%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/CAGP1qPHrMvuJA0yCfJeKi4yeV-8U0T-DLSJ9Ky%2Bc3JaNRtCO8g%40mail.gmail.com\.
For more options, visit https://groups.google.com/a/continuum.io/d/optout\.

Thank you for the suggestions! They were very helpful!

···

On Wednesday, January 10, 2018 at 4:37:00 PM UTC-6, Bryan Van de ven wrote:

Or a conda environment / Anaconda

Bryan

On Jan 10, 2018, at 15:47, fabien genty [email protected] wrote:

hello

to avoid all the problems regarding version of bokeh tout Can use a virtual environnement provided by virtualenv if you are working with linux

sincerly

Le 10 janv. 2018 22:23, “Robin Yim” [email protected] a écrit :

oops at the end should be the following

slider.js_on_change(‘value’, callbackJS)

slider2.js_on_change(‘value’, callbackJS)

slider3.js_on_change(‘value’, callbackJS)

slider4.js_on_change(‘value’, callbackJS)

selection.js_on_change(‘value’, callbackJS)

On Wednesday, January 10, 2018 at 3:22:24 PM UTC-6, Robin Yim wrote:

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.


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/21e0da6e-52ae-4e8c-a58c-b2feef5fdb2f%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/CAGP1qPHrMvuJA0yCfJeKi4yeV-8U0T-DLSJ9Ky%2Bc3JaNRtCO8g%40mail.gmail.com.

For more options, visit https://groups.google.com/a/continuum.io/d/optout.