Cannot figure out how to publish with Bokeh server

Hi,

Again this must be a stupid question.

I managed to run and personalize the crossfilter example on my local machine but I can’t manage to publish it once I upload it to the server.

what I do is:

  • I run the “bokeh-server --script crossfilter_app.py” on my server

  • I have inserted this iframe (that I tried to copied from here in the html page)

<iframe

src=“http://162.250.190.61:5006/bokeh/crossfilter/?public=true

frameborder=“0”

style=“overflow:hidden;height:1000;width:1000;margin-left:-5%”

height=“1200”

width=“1300”

where 162.250 eccetera is my server’s IP address.

This most be completely wrong and does not work at all…

Thanks again for any help

Fabio

Hi Fabio, is that the actual IP address? When I try to go there, it doesn’t load.

My total stab in the dark guess, assuming that is your real server address, is that you have a firewall blocking port 5006.

···

On Thu, Mar 19, 2015 at 6:45 AM, Fabio Annovazzi [email protected] wrote:

Hi,

Again this must be a stupid question.

I managed to run and personalize the crossfilter example on my local machine but I can’t manage to publish it once I upload it to the server.

what I do is:

  • I run the “bokeh-server --script crossfilter_app.py” on my server
  • I have inserted this iframe (that I tried to copied from here in the html page)
<iframe

src=“http://162.250.190.61:5006/bokeh/crossfilter/?public=true

frameborder=“0”

style=“overflow:hidden;height:1000;width:1000;margin-left:-5%”

height=“1200”

width=“1300”

where 162.250 eccetera is my server’s IP address.

This most be completely wrong and does not work at all…

Thanks again for any help

Fabio

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/a48249ea-55a4-4eb1-822c-137a87f5fb67%40continuum.io.

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

Yes, http://162.250.190.61/, is my IP address. I guess you saved my life once more… Thanks!

···

On Thu, Mar 19, 2015 at 4:00 PM, Sarah Bird [email protected] wrote:

Hi Fabio, is that the actual IP address? When I try to go there, it doesn’t load.

My total stab in the dark guess, assuming that is your real server address, is that you have a firewall blocking port 5006.

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/CA%2BEr%2BdST_Q5YALWCouFbUW0wiRBckfCR01XQ4%3DLb_1387QBkzA%40mail.gmail.com.

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

On Thu, Mar 19, 2015 at 6:45 AM, Fabio Annovazzi [email protected] wrote:

Hi,

Again this must be a stupid question.

I managed to run and personalize the crossfilter example on my local machine but I can’t manage to publish it once I upload it to the server.

what I do is:

  • I run the “bokeh-server --script crossfilter_app.py” on my server
  • I have inserted this iframe (that I tried to copied from here in the html page)
<iframe

src=“http://162.250.190.61:5006/bokeh/crossfilter/?public=true

frameborder=“0”

style=“overflow:hidden;height:1000;width:1000;margin-left:-5%”

height=“1200”

width=“1300”

where 162.250 eccetera is my server’s IP address.

This most be completely wrong and does not work at all…

Thanks again for any help

Fabio

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/a48249ea-55a4-4eb1-822c-137a87f5fb67%40continuum.io.

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

Fabio Annovazzi
tel. 0041 (0)78-6334750
Skype: fabio_annovazzi
www.logeeka…com

Hi Sarah, sorry to pester you. I have apened the firewall on port 5006 (I set up an “inbound rule” on port 5006 allowing traffic) and I restarted the server a number of times, but it still does not work. Is there anything else you can think of? I works fine using localhost in the server :frowning:

Thanks so much

Fabio

Inline image 1

···

On Thu, Mar 19, 2015 at 4:07 PM, Fabio Annovazzi [email protected] wrote:

Yes, http://162.250.190.61/, is my IP address. I guess you saved my life once more… Thanks!

On Thu, Mar 19, 2015 at 4:00 PM, Sarah Bird [email protected] wrote:

Hi Fabio, is that the actual IP address? When I try to go there, it doesn’t load.

My total stab in the dark guess, assuming that is your real server address, is that you have a firewall blocking port 5006.

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/CA%2BEr%2BdST_Q5YALWCouFbUW0wiRBckfCR01XQ4%3DLb_1387QBkzA%40mail.gmail.com.

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

Fabio Annovazzi
tel. 0041 (0)78-6334750
Skype: fabio_annovazzi
www.logeeka…com

On Thu, Mar 19, 2015 at 6:45 AM, Fabio Annovazzi [email protected] wrote:

Hi,

Again this must be a stupid question.

I managed to run and personalize the crossfilter example on my local machine but I can’t manage to publish it once I upload it to the server.

what I do is:

  • I run the “bokeh-server --script crossfilter_app.py” on my server
  • I have inserted this iframe (that I tried to copied from here in the html page)
<iframe

src=“http://162.250.190.61:5006/bokeh/crossfilter/?public=true

frameborder=“0”

style=“overflow:hidden;height:1000;width:1000;margin-left:-5%”

height=“1200”

width=“1300”

where 162.250 eccetera is my server’s IP address.

This most be completely wrong and does not work at all…

Thanks again for any help

Fabio

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/a48249ea-55a4-4eb1-822c-137a87f5fb67%40continuum.io.

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

Fabio Annovazzi
tel. 0041 (0)78-6334750
Skype: fabio_annovazzi
www.logeeka…com

I believe you need to set the --ip parameter, or else the server only listens on localhost - perhaps we should just default that to 0.0.0.0

···

On Thu, Mar 19, 2015 at 1:56 PM, Fabio Annovazzi [email protected] wrote:

Hi Sarah, sorry to pester you. I have apened the firewall on port 5006 (I set up an “inbound rule” on port 5006 allowing traffic) and I restarted the server a number of times, but it still does not work. Is there anything else you can think of? I works fine using localhost in the server :frowning:

Thanks so much

Fabio

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/CACWJ9e%2B3aYjFRAsuzj04PUxxCaVgrac-W-yHyUd3hzn4PdafZA%40mail.gmail.com.

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

On Thu, Mar 19, 2015 at 4:07 PM, Fabio Annovazzi [email protected] wrote:

Yes, http://162.250.190.61/, is my IP address. I guess you saved my life once more… Thanks!


Fabio Annovazzi
tel. 0041 (0)78-6334750
Skype: fabio_annovazzi
www.logeeka…com

On Thu, Mar 19, 2015 at 4:00 PM, Sarah Bird [email protected] wrote:

Hi Fabio, is that the actual IP address? When I try to go there, it doesn’t load.

My total stab in the dark guess, assuming that is your real server address, is that you have a firewall blocking port 5006.

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/CA%2BEr%2BdST_Q5YALWCouFbUW0wiRBckfCR01XQ4%3DLb_1387QBkzA%40mail.gmail.com.

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

Fabio Annovazzi
tel. 0041 (0)78-6334750
Skype: fabio_annovazzi
www.logeeka…com

On Thu, Mar 19, 2015 at 6:45 AM, Fabio Annovazzi [email protected] wrote:

Hi,

Again this must be a stupid question.

I managed to run and personalize the crossfilter example on my local machine but I can’t manage to publish it once I upload it to the server.

what I do is:

  • I run the “bokeh-server --script crossfilter_app.py” on my server
  • I have inserted this iframe (that I tried to copied from here in the html page)
<iframe

src=“http://162.250.190.61:5006/bokeh/crossfilter/?public=true

frameborder=“0”

style=“overflow:hidden;height:1000;width:1000;margin-left:-5%”

height=“1200”

width=“1300”

where 162.250 eccetera is my server’s IP address.

This most be completely wrong and does not work at all…

Thanks again for any help

Fabio

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/a48249ea-55a4-4eb1-822c-137a87f5fb67%40continuum.io.

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

​Thanks Hugo,

worked fine! Just added my IP

One more question. If I want to run two differed crossfilter instances (different data), can I just run two different scripts?

ALl the best

Fabio

···

On Thu, Mar 19, 2015 at 6:59 PM, Hugo Shi [email protected] wrote:

I believe you need to set the --ip parameter, or else the server only listens on localhost - perhaps we should just default that to 0.0.0.0

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/CAMn%3DpDRbzdEpX_SJeMDt2o%3DyadGzD6c%3D4ct7bBiKa3TsuggbhQ%40mail.gmail.com.

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

On Thu, Mar 19, 2015 at 1:56 PM, Fabio Annovazzi [email protected] wrote:

Hi Sarah, sorry to pester you. I have apened the firewall on port 5006 (I set up an “inbound rule” on port 5006 allowing traffic) and I restarted the server a number of times, but it still does not work. Is there anything else you can think of? I works fine using localhost in the server :frowning:

Thanks so much

Fabio

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/CACWJ9e%2B3aYjFRAsuzj04PUxxCaVgrac-W-yHyUd3hzn4PdafZA%40mail.gmail.com.

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

On Thu, Mar 19, 2015 at 4:07 PM, Fabio Annovazzi [email protected] wrote:

Yes, http://162.250.190.61/, is my IP address. I guess you saved my life once more… Thanks!


Fabio Annovazzi
tel. 0041 (0)78-6334750
Skype: fabio_annovazzi
www.logeeka…com

On Thu, Mar 19, 2015 at 4:00 PM, Sarah Bird [email protected] wrote:

Hi Fabio, is that the actual IP address? When I try to go there, it doesn’t load.

My total stab in the dark guess, assuming that is your real server address, is that you have a firewall blocking port 5006.

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/CA%2BEr%2BdST_Q5YALWCouFbUW0wiRBckfCR01XQ4%3DLb_1387QBkzA%40mail.gmail.com.

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

Fabio Annovazzi
tel. 0041 (0)78-6334750
Skype: fabio_annovazzi
www.logeeka…com

On Thu, Mar 19, 2015 at 6:45 AM, Fabio Annovazzi [email protected] wrote:

Hi,

Again this must be a stupid question.

I managed to run and personalize the crossfilter example on my local machine but I can’t manage to publish it once I upload it to the server.

what I do is:

  • I run the “bokeh-server --script crossfilter_app.py” on my server
  • I have inserted this iframe (that I tried to copied from here in the html page)
<iframe

src=“http://162.250.190.61:5006/bokeh/crossfilter/?public=true

frameborder=“0”

style=“overflow:hidden;height:1000;width:1000;margin-left:-5%”

height=“1200”

width=“1300”

where 162.250 eccetera is my server’s IP address.

This most be completely wrong and does not work at all…

Thanks again for any help

Fabio

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/a48249ea-55a4-4eb1-822c-137a87f5fb67%40continuum.io.

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

Fabio Annovazzi
tel. 0041 (0)78-6334750
Skype: fabio_annovazzi
www.logeeka…com

the cmdline for bokeh only accepts one --script at the moment, but you can put both apps in the same script, or even have that script import other scripts

we’ll probably be fixing this later

···

On Thu, Mar 19, 2015 at 2:08 PM, Fabio Annovazzi [email protected] wrote:

​Thanks Hugo,

worked fine! Just added my IP

One more question. If I want to run two differed crossfilter instances (different data), can I just run two different scripts?

ALl the best

Fabio

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/CACWJ9eKwsCFPFVtMap_T0HB6s1%3Dc2Z5RseYYz8bw_V8Cdy%3D8CA%40mail.gmail.com.

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

On Thu, Mar 19, 2015 at 6:59 PM, Hugo Shi [email protected] wrote:

I believe you need to set the --ip parameter, or else the server only listens on localhost - perhaps we should just default that to 0.0.0.0

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/CAMn%3DpDRbzdEpX_SJeMDt2o%3DyadGzD6c%3D4ct7bBiKa3TsuggbhQ%40mail.gmail.com.

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


Fabio Annovazzi
tel. 0041 (0)78-6334750
Skype: fabio_annovazzi
www.logeeka…com

On Thu, Mar 19, 2015 at 1:56 PM, Fabio Annovazzi [email protected] wrote:

Hi Sarah, sorry to pester you. I have apened the firewall on port 5006 (I set up an “inbound rule” on port 5006 allowing traffic) and I restarted the server a number of times, but it still does not work. Is there anything else you can think of? I works fine using localhost in the server :frowning:

Thanks so much

Fabio

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/CACWJ9e%2B3aYjFRAsuzj04PUxxCaVgrac-W-yHyUd3hzn4PdafZA%40mail.gmail.com.

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

On Thu, Mar 19, 2015 at 4:07 PM, Fabio Annovazzi [email protected] wrote:

Yes, http://162.250.190.61/, is my IP address. I guess you saved my life once more… Thanks!


Fabio Annovazzi
tel. 0041 (0)78-6334750
Skype: fabio_annovazzi
www.logeeka…com

On Thu, Mar 19, 2015 at 4:00 PM, Sarah Bird [email protected] wrote:

Hi Fabio, is that the actual IP address? When I try to go there, it doesn’t load.

My total stab in the dark guess, assuming that is your real server address, is that you have a firewall blocking port 5006.

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/CA%2BEr%2BdST_Q5YALWCouFbUW0wiRBckfCR01XQ4%3DLb_1387QBkzA%40mail.gmail.com.

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

Fabio Annovazzi
tel. 0041 (0)78-6334750
Skype: fabio_annovazzi
www.logeeka…com

On Thu, Mar 19, 2015 at 6:45 AM, Fabio Annovazzi [email protected] wrote:

Hi,

Again this must be a stupid question.

I managed to run and personalize the crossfilter example on my local machine but I can’t manage to publish it once I upload it to the server.

what I do is:

  • I run the “bokeh-server --script crossfilter_app.py” on my server
  • I have inserted this iframe (that I tried to copied from here in the html page)
<iframe

src=“http://162.250.190.61:5006/bokeh/crossfilter/?public=true

frameborder=“0”

style=“overflow:hidden;height:1000;width:1000;margin-left:-5%”

height=“1200”

width=“1300”

where 162.250 eccetera is my server’s IP address.

This most be completely wrong and does not work at all…

Thanks again for any help

Fabio

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/a48249ea-55a4-4eb1-822c-137a87f5fb67%40continuum.io.

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

Sorry to distutn again, but I am stuck. I guess this is an easy problem if you know Flask, which I do not.

I tried to but both of my crossfire apps in one script, but I get this error:

“AssertionError: View function mapping is overwriting an existing endpoint function: bokeh.server.make_crossfilter”

In terms of code, this was my attempt of solving the problem:

from crossfilter_prepare_data import cruise_data,nme_data

from bokeh.plot_object import PlotObject

from bokeh.server.utils.plugins import object_page

from bokeh.server.app import bokeh_app

from bokeh.plotting import curdoc, cursession

from bokeh.crossfilter.models import CrossFilter

@bokeh_app.route("/cruises/")

@object_page(“cruises”)

def make_crossfilter():

cruise_app = CrossFilter.create(df=cruise_data)

return cruise_app

@bokeh_app.route("/nme/")

@object_page(“nme”)

def make_crossfilter():

nme_app = CrossFilter.create(df=nme_data)

return nme_app

Thanks again!

Fabio

···

On Thursday, March 19, 2015 at 7:25:07 PM UTC+1, Hugo Shi wrote:

the cmdline for bokeh only accepts one --script at the moment, but you can put both apps in the same script, or even have that script import other scripts

we’ll probably be fixing this later

On Thu, Mar 19, 2015 at 2:08 PM, Fabio Annovazzi [email protected] wrote:

​Thanks Hugo,

worked fine! Just added my IP

One more question. If I want to run two differed crossfilter instances (different data), can I just run two different scripts?

ALl the best

Fabio

On Thu, Mar 19, 2015 at 6:59 PM, Hugo Shi [email protected] wrote:

I believe you need to set the --ip parameter, or else the server only listens on localhost - perhaps we should just default that to 0.0.0.0

On Thu, Mar 19, 2015 at 1:56 PM, Fabio Annovazzi [email protected] wrote:

Hi Sarah, sorry to pester you. I have apened the firewall on port 5006 (I set up an “inbound rule” on port 5006 allowing traffic) and I restarted the server a number of times, but it still does not work. Is there anything else you can think of? I works fine using localhost in the server :frowning:

Thanks so much

Fabio

On Thu, Mar 19, 2015 at 4:07 PM, Fabio Annovazzi [email protected] wrote:

Yes, http://162.250.190.61/, is my IP address. I guess you saved my life once more… Thanks!

On Thu, Mar 19, 2015 at 4:00 PM, Sarah Bird [email protected] wrote:

Hi Fabio, is that the actual IP address? When I try to go there, it doesn’t load.

My total stab in the dark guess, assuming that is your real server address, is that you have a firewall blocking port 5006.

On Thu, Mar 19, 2015 at 6:45 AM, Fabio Annovazzi [email protected] wrote:

Hi,

Again this must be a stupid question.

I managed to run and personalize the crossfilter example on my local machine but I can’t manage to publish it once I upload it to the server.

what I do is:

  • I run the “bokeh-server --script crossfilter_app.py” on my server
  • I have inserted this iframe (that I tried to copied from here in the html page)
<iframe

src=“http://162.250.190.61:5006/bokeh/crossfilter/?public=true

frameborder=“0”

style=“overflow:hidden;height:1000;width:1000;margin-left:-5%”

height=“1200”

width=“1300”

where 162.250 eccetera is my server’s IP address.

This most be completely wrong and does not work at all…

Thanks again for any help

Fabio

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/a48249ea-55a4-4eb1-822c-137a87f5fb67%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/CA%2BEr%2BdST_Q5YALWCouFbUW0wiRBckfCR01XQ4%3DLb_1387QBkzA%40mail.gmail.com.

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

Fabio Annovazzi
tel. 0041 (0)78-6334750
Skype: fabio_annovazzi
www.logeeka…com


Fabio Annovazzi
tel. 0041 (0)78-6334750
Skype: fabio_annovazzi
www.logeeka…com

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/CACWJ9e%2B3aYjFRAsuzj04PUxxCaVgrac-W-yHyUd3hzn4PdafZA%40mail.gmail.com.

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/CAMn%3DpDRbzdEpX_SJeMDt2o%3DyadGzD6c%3D4ct7bBiKa3TsuggbhQ%40mail.gmail.com.

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


Fabio Annovazzi
tel. 0041 (0)78-6334750
Skype: fabio_annovazzi
www.logeeka…com

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/CACWJ9eKwsCFPFVtMap_T0HB6s1%3Dc2Z5RseYYz8bw_V8Cdy%3D8CA%40mail.gmail.com.

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

My guess:
You are defining the same rendering function twice. Just rename the second “def make_crossfilter()” to something like “def make_crossfilter2()” (the function name doesn’t actually matter).

Alex

···

On Friday, 20 March 2015 10:59:39 UTC, Fabio Annovazzi wrote:

Sorry to distutn again, but I am stuck. I guess this is an easy problem if you know Flask, which I do not.

I tried to but both of my crossfire apps in one script, but I get this error:

“AssertionError: View function mapping is overwriting an existing endpoint function: bokeh.server.make_crossfilter”

In terms of code, this was my attempt of solving the problem:

from crossfilter_prepare_data import cruise_data,nme_data

from bokeh.plot_object import PlotObject

from bokeh.server.utils.plugins import object_page

from bokeh.server.app import bokeh_app

from bokeh.plotting import curdoc, cursession

from bokeh.crossfilter.models import CrossFilter

@bokeh_app.route("/cruises/")

@object_page(“cruises”)

def make_crossfilter():

cruise_app = CrossFilter.create(df=cruise_data)

return cruise_app

@bokeh_app.route("/nme/")

@object_page(“nme”)

def make_crossfilter():

nme_app = CrossFilter.create(df=nme_data)
return nme_app

Thanks again!

Fabio

On Thursday, March 19, 2015 at 7:25:07 PM UTC+1, Hugo Shi wrote:

the cmdline for bokeh only accepts one --script at the moment, but you can put both apps in the same script, or even have that script import other scripts

we’ll probably be fixing this later

On Thu, Mar 19, 2015 at 2:08 PM, Fabio Annovazzi [email protected] wrote:

​Thanks Hugo,

worked fine! Just added my IP

One more question. If I want to run two differed crossfilter instances (different data), can I just run two different scripts?

ALl the best

Fabio

On Thu, Mar 19, 2015 at 6:59 PM, Hugo Shi [email protected] wrote:

I believe you need to set the --ip parameter, or else the server only listens on localhost - perhaps we should just default that to 0.0.0.0

On Thu, Mar 19, 2015 at 1:56 PM, Fabio Annovazzi [email protected] wrote:

Hi Sarah, sorry to pester you. I have apened the firewall on port 5006 (I set up an “inbound rule” on port 5006 allowing traffic) and I restarted the server a number of times, but it still does not work. Is there anything else you can think of? I works fine using localhost in the server :frowning:

Thanks so much

Fabio

On Thu, Mar 19, 2015 at 4:07 PM, Fabio Annovazzi [email protected] wrote:

Yes, http://162.250.190.61/, is my IP address. I guess you saved my life once more… Thanks!

On Thu, Mar 19, 2015 at 4:00 PM, Sarah Bird [email protected] wrote:

Hi Fabio, is that the actual IP address? When I try to go there, it doesn’t load.

My total stab in the dark guess, assuming that is your real server address, is that you have a firewall blocking port 5006.

On Thu, Mar 19, 2015 at 6:45 AM, Fabio Annovazzi [email protected] wrote:

Hi,

Again this must be a stupid question.

I managed to run and personalize the crossfilter example on my local machine but I can’t manage to publish it once I upload it to the server.

what I do is:

  • I run the “bokeh-server --script crossfilter_app.py” on my server
  • I have inserted this iframe (that I tried to copied from here in the html page)
<iframe

src=“http://162.250.190.61:5006/bokeh/crossfilter/?public=true

frameborder=“0”

style=“overflow:hidden;height:1000;width:1000;margin-left:-5%”

height=“1200”

width=“1300”

where 162.250 eccetera is my server’s IP address.

This most be completely wrong and does not work at all…

Thanks again for any help

Fabio

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/a48249ea-55a4-4eb1-822c-137a87f5fb67%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/CA%2BEr%2BdST_Q5YALWCouFbUW0wiRBckfCR01XQ4%3DLb_1387QBkzA%40mail.gmail.com.

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

Fabio Annovazzi
tel. 0041 (0)78-6334750
Skype: fabio_annovazzi
www.logeeka…com


Fabio Annovazzi
tel. 0041 (0)78-6334750
Skype: fabio_annovazzi
www.logeeka…com

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/CACWJ9e%2B3aYjFRAsuzj04PUxxCaVgrac-W-yHyUd3hzn4PdafZA%40mail.gmail.com.

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/CAMn%3DpDRbzdEpX_SJeMDt2o%3DyadGzD6c%3D4ct7bBiKa3TsuggbhQ%40mail.gmail.com.

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


Fabio Annovazzi
tel. 0041 (0)78-6334750
Skype: fabio_annovazzi
www.logeeka…com

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/CACWJ9eKwsCFPFVtMap_T0HB6s1%3Dc2Z5RseYYz8bw_V8Cdy%3D8CA%40mail.gmail.com.

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

Thanks Alex,

Problem solved. Do you know what are the size limits of the pandas data frame one can feed into crossfilter. When I build dashboards in d3 / DC.js with crossfilter.js about 20000 rows for me is a reasonable limit if you do not want to wait too long for the data to load on the browser…

Thanks again

Fabio

···

On Mar 20, 2015 12:16 PM, [email protected] wrote:

My guess:
You are defining the same rendering function twice. Just rename the second “def make_crossfilter()” to something like “def make_crossfilter2()” (the function name doesn’t actually matter).

Alex

On Friday, 20 March 2015 10:59:39 UTC, Fabio Annovazzi wrote:

Sorry to distutn again, but I am stuck. I guess this is an easy problem if you know Flask, which I do not.

I tried to but both of my crossfire apps in one script, but I get this error:

“AssertionError: View function mapping is overwriting an existing endpoint function: bokeh.server.make_crossfilter”

In terms of code, this was my attempt of solving the problem:

from crossfilter_prepare_data import cruise_data,nme_data

from bokeh.plot_object import PlotObject

from bokeh.server.utils.plugins import object_page

from bokeh.server.app import bokeh_app

from bokeh.plotting import curdoc, cursession

from bokeh.crossfilter.models import CrossFilter

@bokeh_app.route("/cruises/")

@object_page(“cruises”)

def make_crossfilter():

cruise_app = CrossFilter.create(df=cruise_data)
return cruise_app

@bokeh_app.route("/nme/")

@object_page(“nme”)

def make_crossfilter():

nme_app = CrossFilter.create(df=nme_data)
return nme_app

Thanks again!

Fabio

On Thursday, March 19, 2015 at 7:25:07 PM UTC+1, Hugo Shi wrote:

the cmdline for bokeh only accepts one --script at the moment, but you can put both apps in the same script, or even have that script import other scripts

we’ll probably be fixing this later

On Thu, Mar 19, 2015 at 2:08 PM, Fabio Annovazzi [email protected] wrote:

​Thanks Hugo,

worked fine! Just added my IP

One more question. If I want to run two differed crossfilter instances (different data), can I just run two different scripts?

ALl the best

Fabio

On Thu, Mar 19, 2015 at 6:59 PM, Hugo Shi [email protected] wrote:

I believe you need to set the --ip parameter, or else the server only listens on localhost - perhaps we should just default that to 0.0.0.0

On Thu, Mar 19, 2015 at 1:56 PM, Fabio Annovazzi [email protected] wrote:

Hi Sarah, sorry to pester you. I have apened the firewall on port 5006 (I set up an “inbound rule” on port 5006 allowing traffic) and I restarted the server a number of times, but it still does not work. Is there anything else you can think of? I works fine using localhost in the server :frowning:

Thanks so much

Fabio

On Thu, Mar 19, 2015 at 4:07 PM, Fabio Annovazzi [email protected] wrote:

Yes, http://162.250.190.61/, is my IP address. I guess you saved my life once more… Thanks!

On Thu, Mar 19, 2015 at 4:00 PM, Sarah Bird [email protected] wrote:

Hi Fabio, is that the actual IP address? When I try to go there, it doesn’t load.

My total stab in the dark guess, assuming that is your real server address, is that you have a firewall blocking port 5006.

On Thu, Mar 19, 2015 at 6:45 AM, Fabio Annovazzi [email protected] wrote:

Hi,

Again this must be a stupid question.

I managed to run and personalize the crossfilter example on my local machine but I can’t manage to publish it once I upload it to the server.

what I do is:

  • I run the “bokeh-server --script crossfilter_app.py” on my server
  • I have inserted this iframe (that I tried to copied from here in the html page)
<iframe

src=“http://162.250.190.61:5006/bokeh/crossfilter/?public=true

frameborder=“0”

style=“overflow:hidden;height:1000;width:1000;margin-left:-5%”

height=“1200”

width=“1300”

where 162.250 eccetera is my server’s IP address.

This most be completely wrong and does not work at all…

Thanks again for any help

Fabio

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/a48249ea-55a4-4eb1-822c-137a87f5fb67%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]o.

To view this discussion on the web visit https://groups.google.com/a/continuum.io/d/msgid/bokeh/CA%2BEr%2BdST_Q5YALWCouFbUW0wiRBckfCR01XQ4%3DLb_1387QBkzA%40mail.gmail.com.

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

Fabio Annovazzi
tel. 0041 (0)78-6334750
Skype: fabio_annovazzi
www.logeeka…com


Fabio Annovazzi
tel. 0041 (0)78-6334750
Skype: fabio_annovazzi
www.logeeka…com

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/CACWJ9e%2B3aYjFRAsuzj04PUxxCaVgrac-W-yHyUd3hzn4PdafZA%40mail.gmail.com.

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/CAMn%3DpDRbzdEpX_SJeMDt2o%3DyadGzD6c%3D4ct7bBiKa3TsuggbhQ%40mail.gmail.com.

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


Fabio Annovazzi
tel. 0041 (0)78-6334750
Skype: fabio_annovazzi
www.logeeka…com

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/CACWJ9eKwsCFPFVtMap_T0HB6s1%3Dc2Z5RseYYz8bw_V8Cdy%3D8CA%40mail.gmail.com.

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/0c678c0d-db90-4cd1-b80c-22e813502f9e%40continuum.io.

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

Thanks Alex,

Problem solved. Do you know what are the size limits of the pandas data frame one can feed into crossfilter. When I build dashboards in d3 / dc.js

···

On Mar 20, 2015 12:16 PM, [email protected] wrote:

My guess:
You are defining the same rendering function twice. Just rename the second “def make_crossfilter()” to something like “def make_crossfilter2()” (the function name doesn’t actually matter).

Alex

On Friday, 20 March 2015 10:59:39 UTC, Fabio Annovazzi wrote:

Sorry to distutn again, but I am stuck. I guess this is an easy problem if you know Flask, which I do not.

I tried to but both of my crossfire apps in one script, but I get this error:

“AssertionError: View function mapping is overwriting an existing endpoint function: bokeh.server.make_crossfilter”

In terms of code, this was my attempt of solving the problem:

from crossfilter_prepare_data import cruise_data,nme_data

from bokeh.plot_object import PlotObject

from bokeh.server.utils.plugins import object_page

from bokeh.server.app import bokeh_app

from bokeh.plotting import curdoc, cursession

from bokeh.crossfilter.models import CrossFilter

@bokeh_app.route("/cruises/")

@object_page(“cruises”)

def make_crossfilter():

cruise_app = CrossFilter.create(df=cruise_data)
return cruise_app

@bokeh_app.route("/nme/")

@object_page(“nme”)

def make_crossfilter():

nme_app = CrossFilter.create(df=nme_data)
return nme_app

Thanks again!

Fabio

On Thursday, March 19, 2015 at 7:25:07 PM UTC+1, Hugo Shi wrote:

the cmdline for bokeh only accepts one --script at the moment, but you can put both apps in the same script, or even have that script import other scripts

we’ll probably be fixing this later

On Thu, Mar 19, 2015 at 2:08 PM, Fabio Annovazzi [email protected] wrote:

​Thanks Hugo,

worked fine! Just added my IP

One more question. If I want to run two differed crossfilter instances (different data), can I just run two different scripts?

ALl the best

Fabio

On Thu, Mar 19, 2015 at 6:59 PM, Hugo Shi [email protected] wrote:

I believe you need to set the --ip parameter, or else the server only listens on localhost - perhaps we should just default that to 0.0.0.0

On Thu, Mar 19, 2015 at 1:56 PM, Fabio Annovazzi [email protected] wrote:

Hi Sarah, sorry to pester you. I have apened the firewall on port 5006 (I set up an “inbound rule” on port 5006 allowing traffic) and I restarted the server a number of times, but it still does not work. Is there anything else you can think of? I works fine using localhost in the server :frowning:

Thanks so much

Fabio

On Thu, Mar 19, 2015 at 4:07 PM, Fabio Annovazzi [email protected] wrote:

Yes, http://162.250.190.61/, is my IP address. I guess you saved my life once more… Thanks!

On Thu, Mar 19, 2015 at 4:00 PM, Sarah Bird [email protected] wrote:

Hi Fabio, is that the actual IP address? When I try to go there, it doesn’t load.

My total stab in the dark guess, assuming that is your real server address, is that you have a firewall blocking port 5006.

On Thu, Mar 19, 2015 at 6:45 AM, Fabio Annovazzi [email protected] wrote:

Hi,

Again this must be a stupid question.

I managed to run and personalize the crossfilter example on my local machine but I can’t manage to publish it once I upload it to the server.

what I do is:

  • I run the “bokeh-server --script crossfilter_app.py” on my server
  • I have inserted this iframe (that I tried to copied from here in the html page)
<iframe

src=“http://162.250.190.61:5006/bokeh/crossfilter/?public=true

frameborder=“0”

style=“overflow:hidden;height:1000;width:1000;margin-left:-5%”

height=“1200”

width=“1300”

where 162.250 eccetera is my server’s IP address.

This most be completely wrong and does not work at all…

Thanks again for any help

Fabio

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/a48249ea-55a4-4eb1-822c-137a87f5fb67%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/CA%2BEr%2BdST_Q5YALWCouFbUW0wiRBckfCR01XQ4%3DLb_1387QBkzA%40mail.gmail.com.

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

Fabio Annovazzi
tel. 0041 (0)78-6334750
Skype: fabio_annovazzi
www.logeeka…com


Fabio Annovazzi
tel. 0041 (0)78-6334750
Skype: fabio_annovazzi
www.logeeka…com

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/CACWJ9e%2B3aYjFRAsuzj04PUxxCaVgrac-W-yHyUd3hzn4PdafZA%40mail.gmail.com.

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/CAMn%3DpDRbzdEpX_SJeMDt2o%3DyadGzD6c%3D4ct7bBiKa3TsuggbhQ%40mail.gmail.com.

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


Fabio Annovazzi
tel. 0041 (0)78-6334750
Skype: fabio_annovazzi
www.logeeka…com

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/CACWJ9eKwsCFPFVtMap_T0HB6s1%3Dc2Z5RseYYz8bw_V8Cdy%3D8CA%40mail.gmail.com.

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/0c678c0d-db90-4cd1-b80c-22e813502f9e%40continuum.io.

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

BokehJS can fairly comfortably render tens of thousands of points, and this will likely increase quite a bit later this year with a WebGL backend. This is likely to be the bottleneck, but I would love to hear about your experiences and what limits you run into. It's possible we could put some capability for downsampling larger set directly into the crossfilter.

Bryan

···

On Mar 20, 2015, at 8:26 AM, Fabio Annovazzi <[email protected]> wrote:

Thanks Alex,

Problem solved. Do you know what are the size limits of the pandas data frame one can feed into crossfilter. When I build dashboards in d3 / dc.js

Thanks Bryan,

I generally use Dc.js for my dashboards, but the integration of Bokeh/Crossfilter with pandas, and the idea that you can somehow let the user configure her dasboard the way she wants it is really very very appealing.

I understand that it is not fair to compare what one can do with Dc.js + Crossfilter.js (that have been around for some time now) with this amazing Bokeh/Crossfilter, that is still partly work in progress. Anyway I am trying to replicate some demo dashboards with Bokeh crossfilter to see concretely how to use it.

Crossfilter has a “reduce” capability (for instance to dynamicaly recalculate a market share at different levels of drill down with the data) that I guess one needs to built into the pandas dataframe that is fed into Bokeh Crossfilter, that by itself does not do this kind of mapping/data consolidation.

BTW this brings me another question. I assume that Bokeh Crossfilter “decides” whether to aggregate data or not based on the type of chart you chose. If it is a bar, it will sum everything up, if it is a scatter it will not. And this makes sense and should work most of the time.

What I do not understand is what it does when on asks for the “line” chart. I get spagetty “messes” of lines pretty much every time I choose “line” on the crossfilter. My first text crossfilter is here http://www.logeeka.com/cruises/crossfilter.html

Below an example of line chart I get Inline image 1

···

​Thanks

Fabio​

On Sat, Mar 21, 2015 at 9:37 PM, Bryan Van de Ven [email protected] wrote:

On Mar 20, 2015, at 8:26 AM, Fabio Annovazzi [email protected] wrote:

Thanks Alex,

Problem solved. Do you know what are the size limits of the pandas data frame one can feed into crossfilter. When I build dashboards in d3 / dc.js

BokehJS can fairly comfortably render tens of thousands of points, and this will likely increase quite a bit later this year with a WebGL backend. This is likely to be the bottleneck, but I would love to hear about your experiences and what limits you run into. It’s possible we could put some capability for downsampling larger set directly into the crossfilter.

Bryan

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/EA4E4E10-92F2-4A50-8AB9-FE354F55CF16%40continuum.io.
For more options, visit https://groups.google.com/a/continuum.io/d/optout.

Fabio Annovazzi
tel. 0041 (0)78-6334750
www.logeeka.com