Hi,
So I installed bokeh 0.9.2 on my Debian 8 remotely, and I got the bokeh server up and running. However, when I tried an example file with the server on my local PC, it shows the document but does not generate graph when I click on it. Here’s the example file that I used:
from bokeh.plotting import figure, output_server, show, push
I’m not sure if I’m missing some packages or it’s the bokeh server’s problem or both, but the server log shows 200. Could someone explain what I’m missing? Thanks!
As Caroline mentioned you are using push instead of show. show push internally and also auto shows the plot you have just created while push won’t. There some other small other issues on the example that are worth mentioning:
···
I’m new to Bokeh, but it seems that you didn’t call out “show”. I think that should generate your graph.
from bokeh.plotting import figure, output_server, show, push
You don’t need to explicitly create a session here, unless you have specific needs (which doesn’t seem to be the case), the plotting interface (that you are using) is taking care of that for you as it implicitly creates a session.
output_server doesn’t get an html filename as first argument but instead the name of the document that is going to hold the plots and other objects you’ll create. Imagine it as just a namespace where those objects are specified and is used by bokeh to serialize and pass objects from python to javascript and back…
Again, following up on what said about sessions, you don’t need to pass session here unless you have specific needs that I can’t think about right now…
Hi thanks for replying to me!
I tried show first actually but it didn’t work. The show() will make the terminal become a ‘dead’ one with ‘link to this’ on top, so I checked around and found push() would basically do the same thing without making the terminal ‘dead’.
Also, the reason I added the session part is because when I run the file, it tells me that:
To override, pass ‘load_from_config=False’ to Session
So I added the session part to avoid this.
In case my explanation is confusing, I uploaded 2 pics to show what happens when I click on the document. The only thing that changes is the url, but no plot is showing on the server.
As Caroline mentioned you are using push instead of show. show push internally and also auto shows the plot you have just created while push won’t. There some other small other issues on the example that are worth mentioning:
I’m new to Bokeh, but it seems that you didn’t call out “show”. I think that should generate your graph.
from bokeh.plotting import figure, output_server, show, push
You don’t need to explicitly create a session here, unless you have specific needs (which doesn’t seem to be the case), the plotting interface (that you are using) is taking care of that for you as it implicitly creates a session.
output_server doesn’t get an html filename as first argument but instead the name of the document that is going to hold the plots and other objects you’ll create. Imagine it as just a namespace where those objects are specified and is used by bokeh to serialize and pass objects from python to javascript and back…
Again, following up on what said about sessions, you don’t need to pass session here unless you have specific needs that I can’t think about right now…
Hi, thanks for replying to me!
I tried the show way at first but it didn’t work for me. Since push and show both push it to the server and I need to check the plot remotely, I switched from show to push.
在 2015年7月25日星期六 UTC-7下午7:10:17,Caroline Dikibo写道:
···
Hi Ben,
I’m new to Bokeh, but it seems that you didn’t call out “show”. I think that should generate your graph.
from bokeh.plotting import figure, output_server, show, push
Hi, thanks for replying to me!
I tried the show way at first but it didn’t work for me. Since push and show both push it to the server and I need to check the plot remotely, I switched from show to push.
在 2015年7月25日星期六 UTC-7下午7:10:17,Caroline Dikibo写道:
Hi Ben,
I’m new to Bokeh, but it seems that you didn’t call out “show”. I think that should generate your graph.
from bokeh.plotting import figure, output_server, show, push
Hi, thanks for replying to me!
I tried the show way at first but it didn’t work for me. Since push and show both push it to the server and I need to check the plot remotely, I switched from show to push.
在 2015年7月25日星期六 UTC-7下午7:10:17,Caroline Dikibo写道:
Hi Ben,
I’m new to Bokeh, but it seems that you didn’t call out “show”. I think that should generate your graph.
from bokeh.plotting import figure, output_server, show, push
Just to add a bit more detail. I’m running bokeh-server via ssh on a remote machine. On the remote machine I run 'bokeh-server --ip “0.0.0.0” and then run the code:
from bokeh.plotting import cursession, figure, output_server, show, push
I then direct my local browser to remote_ip:5006 and I can see ‘Bokeh documents for defaultuser’ and below that a link ‘Document: line 2’. However when I click on the link the url changes but I still see the same document listing page, ie. I don’t see the plot.
Any help would be very welcome as this has been bugging me for several days now. Thanks.
Steve
···
On Tuesday, August 4, 2015 at 10:17:25 AM UTC+1, Fabio Pliger wrote:
Hi Ben,
I’m not sure about the current status of this… but it definitely works for me locally. Please let me know if you still have questions.
Hi, thanks for replying to me!
I tried the show way at first but it didn’t work for me. Since push and show both push it to the server and I need to check the plot remotely, I switched from show to push.
在 2015年7月25日星期六 UTC-7下午7:10:17,Caroline Dikibo写道:
Hi Ben,
I’m new to Bokeh, but it seems that you didn’t call out “show”. I think that should generate your graph.
from bokeh.plotting import figure, output_server, show, push
Hi, thanks for replying to me!
I tried the show way at first but it didn’t work for me. Since push and show both push it to the server and I need to check the plot remotely, I switched from show to push.
在 2015年7月25日星期六 UTC-7下午7:10:17,Caroline Dikibo写道:
Hi Ben,
I’m new to Bokeh, but it seems that you didn’t call out “show”. I think that should generate your graph.
from bokeh.plotting import figure, output_server, show, push
Mmmm… that’s weird. In that case it seems that it’s not a configuration issue. Can you open an issue providing as much information as possible to reproduce the problem so we can better triage, track and make plans for this?
Thank you
Fabio
···
On Tue, Aug 18, 2015 at 1:47 PM, qashqay.sol [email protected] wrote:
Hi,
I have faced the same problem with bokeh-server 0.9.2, but then I’ve installed
0.8.2 version and now everything works correctly.
On Tuesday, August 18, 2015 at 6:09:52 AM UTC-4, Steven Hutt wrote:
Hi,
I have exactly the same problem as Ben - did anyone find a solution?
Thanks,
Steve
On Tuesday, August 4, 2015 at 10:17:25 AM UTC+1, Fabio Pliger wrote:
Hi Ben,
I’m not sure about the current status of this… but it definitely works for me locally. Please let me know if you still have questions.
Hi, thanks for replying to me!
I tried the show way at first but it didn’t work for me. Since push and show both push it to the server and I need to check the plot remotely, I switched from show to push.
在 2015年7月25日星期六 UTC-7下午7:10:17,Caroline Dikibo写道:
Hi Ben,
I’m new to Bokeh, but it seems that you didn’t call out “show”. I think that should generate your graph.
from bokeh.plotting import figure, output_server, show, push
On Tuesday, August 18, 2015 at 2:28:03 PM UTC+1, Fabio Pliger wrote:
Hi,
Mmmm… that’s weird. In that case it seems that it’s not a configuration issue. Can you open an issue providing as much information as possible to reproduce the problem so we can better triage, track and make plans for this?
Thank you
Fabio
On Tue, Aug 18, 2015 at 1:47 PM, qashqay.sol [email protected] wrote:
Hi,
I have faced the same problem with bokeh-server 0.9.2, but then I’ve installed
0.8.2 version and now everything works correctly.
On Tuesday, August 18, 2015 at 6:09:52 AM UTC-4, Steven Hutt wrote:
Hi,
I have exactly the same problem as Ben - did anyone find a solution?
Thanks,
Steve
On Tuesday, August 4, 2015 at 10:17:25 AM UTC+1, Fabio Pliger wrote:
Hi Ben,
I’m not sure about the current status of this… but it definitely works for me locally. Please let me know if you still have questions.
Hi, thanks for replying to me!
I tried the show way at first but it didn’t work for me. Since push and show both push it to the server and I need to check the plot remotely, I switched from show to push.
在 2015年7月25日星期六 UTC-7下午7:10:17,Caroline Dikibo写道:
Hi Ben,
I’m new to Bokeh, but it seems that you didn’t call out “show”. I think that should generate your graph.
from bokeh.plotting import figure, output_server, show, push
Before I lodge an issue, wanted to check that the warning in bokeh-server start up wasn’t a problem. Complains about blaze. I’m using bokeh as defaultuser.
2015-08-18 14:14:35,292:INFO:root:Generating grammar tables from /usr/lib/python2.7/lib2to3/Grammar.txt
2015-08-18 14:14:35,309:INFO:root:Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt
/usr/local/lib/python2.7/dist-packages/bokeh/server/blaze/init.py:21: UserWarning: could not import multiuser blaze server No module named mbs.views. This is fine if you do not intend to use blaze capabilities in the bokeh server
warnings.warn(msg)
On Tuesday, August 18, 2015 at 2:53:31 PM UTC+1, Steven Hutt wrote:
Will do.
On Tuesday, August 18, 2015 at 2:28:03 PM UTC+1, Fabio Pliger wrote:
Hi,
Mmmm… that’s weird. In that case it seems that it’s not a configuration issue. Can you open an issue providing as much information as possible to reproduce the problem so we can better triage, track and make plans for this?
Thank you
Fabio
On Tue, Aug 18, 2015 at 1:47 PM, qashqay.sol [email protected] wrote:
Hi,
I have faced the same problem with bokeh-server 0.9.2, but then I’ve installed
0.8.2 version and now everything works correctly.
On Tuesday, August 18, 2015 at 6:09:52 AM UTC-4, Steven Hutt wrote:
Hi,
I have exactly the same problem as Ben - did anyone find a solution?
Thanks,
Steve
On Tuesday, August 4, 2015 at 10:17:25 AM UTC+1, Fabio Pliger wrote:
Hi Ben,
I’m not sure about the current status of this… but it definitely works for me locally. Please let me know if you still have questions.
Hi, thanks for replying to me!
I tried the show way at first but it didn’t work for me. Since push and show both push it to the server and I need to check the plot remotely, I switched from show to push.
在 2015年7月25日星期六 UTC-7下午7:10:17,Caroline Dikibo写道:
Hi Ben,
I’m new to Bokeh, but it seems that you didn’t call out “show”. I think that should generate your graph.
from bokeh.plotting import figure, output_server, show, push
No, this warning shouldn’t have anything to do with the issue and is just related to a recent change to remove an old and specific dependency (multiuserblazeserver).
Thanks again.
Fabio
···
On Tue, Aug 18, 2015 at 4:17 PM, Steven Hutt [email protected] wrote:
Before I lodge an issue, wanted to check that the warning in bokeh-server start up wasn’t a problem. Complains about blaze. I’m using bokeh as defaultuser.
2015-08-18 14:14:35,292:INFO:root:Generating grammar tables from /usr/lib/python2.7/lib2to3/Grammar.txt
2015-08-18 14:14:35,309:INFO:root:Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt
/usr/local/lib/python2.7/dist-packages/bokeh/server/blaze/init.py:21: UserWarning: could not import multiuser blaze server No module named mbs.views. This is fine if you do not intend to use blaze capabilities in the bokeh server
warnings.warn(msg)
On Tuesday, August 18, 2015 at 2:53:31 PM UTC+1, Steven Hutt wrote:
Will do.
On Tuesday, August 18, 2015 at 2:28:03 PM UTC+1, Fabio Pliger wrote:
Hi,
Mmmm… that’s weird. In that case it seems that it’s not a configuration issue. Can you open an issue providing as much information as possible to reproduce the problem so we can better triage, track and make plans for this?
Thank you
Fabio
On Tue, Aug 18, 2015 at 1:47 PM, qashqay.sol [email protected] wrote:
Hi,
I have faced the same problem with bokeh-server 0.9.2, but then I’ve installed
0.8.2 version and now everything works correctly.
On Tuesday, August 18, 2015 at 6:09:52 AM UTC-4, Steven Hutt wrote:
Hi,
I have exactly the same problem as Ben - did anyone find a solution?
Thanks,
Steve
On Tuesday, August 4, 2015 at 10:17:25 AM UTC+1, Fabio Pliger wrote:
Hi Ben,
I’m not sure about the current status of this… but it definitely works for me locally. Please let me know if you still have questions.
Hi, thanks for replying to me!
I tried the show way at first but it didn’t work for me. Since push and show both push it to the server and I need to check the plot remotely, I switched from show to push.
在 2015年7月25日星期六 UTC-7下午7:10:17,Caroline Dikibo写道:
Hi Ben,
I’m new to Bokeh, but it seems that you didn’t call out “show”. I think that should generate your graph.
from bokeh.plotting import figure, output_server, show, push
On Tuesday, August 18, 2015 at 3:29:42 PM UTC+1, Fabio Pliger wrote:
No, this warning shouldn’t have anything to do with the issue and is just related to a recent change to remove an old and specific dependency (multiuserblazeserver).
Thanks again.
Fabio
On Tue, Aug 18, 2015 at 4:17 PM, Steven Hutt [email protected] wrote:
Before I lodge an issue, wanted to check that the warning in bokeh-server start up wasn’t a problem. Complains about blaze. I’m using bokeh as defaultuser.
2015-08-18 14:14:35,292:INFO:root:Generating grammar tables from /usr/lib/python2.7/lib2to3/Grammar.txt
2015-08-18 14:14:35,309:INFO:root:Generating grammar tables from /usr/lib/python2.7/lib2to3/PatternGrammar.txt
/usr/local/lib/python2.7/dist-packages/bokeh/server/blaze/init.py:21: UserWarning: could not import multiuser blaze server No module named mbs.views. This is fine if you do not intend to use blaze capabilities in the bokeh server
warnings.warn(msg)
On Tuesday, August 18, 2015 at 2:53:31 PM UTC+1, Steven Hutt wrote:
Will do.
On Tuesday, August 18, 2015 at 2:28:03 PM UTC+1, Fabio Pliger wrote:
Hi,
Mmmm… that’s weird. In that case it seems that it’s not a configuration issue. Can you open an issue providing as much information as possible to reproduce the problem so we can better triage, track and make plans for this?
Thank you
Fabio
On Tue, Aug 18, 2015 at 1:47 PM, qashqay.sol [email protected] wrote:
Hi,
I have faced the same problem with bokeh-server 0.9.2, but then I’ve installed
0.8.2 version and now everything works correctly.
On Tuesday, August 18, 2015 at 6:09:52 AM UTC-4, Steven Hutt wrote:
Hi,
I have exactly the same problem as Ben - did anyone find a solution?
Thanks,
Steve
On Tuesday, August 4, 2015 at 10:17:25 AM UTC+1, Fabio Pliger wrote:
Hi Ben,
I’m not sure about the current status of this… but it definitely works for me locally. Please let me know if you still have questions.
Hi, thanks for replying to me!
I tried the show way at first but it didn’t work for me. Since push and show both push it to the server and I need to check the plot remotely, I switched from show to push.
在 2015年7月25日星期六 UTC-7下午7:10:17,Caroline Dikibo写道:
Hi Ben,
I’m new to Bokeh, but it seems that you didn’t call out “show”. I think that should generate your graph.
from bokeh.plotting import figure, output_server, show, push