bokeh-flask-tutorial icon indicating copy to clipboard operation
bokeh-flask-tutorial copied to clipboard

Blank page

Open s-celles opened this issue 11 years ago • 4 comments

Hello,

I didn't succeed in running your example. I didn't change anything in your example before trying to run it

I just $ git clone https://github.com/rpazyaquian/bokeh-flask-tutorial.git

and run $ python views.py

I also opened a browser at http://127.0.0.1:5000/

bokeh-server is also running Starting Bokeh plot server on port 5006... View http://localhost:5006/bokeh to see plots I don't know if that's necessary for your example

I try using Firefox to show source code and to click on every file called from your rendered view to see if they are available... and they are!!!

Kind regards

s-celles avatar Feb 16 '14 19:02 s-celles

Thanks for moving this over.

I'm getting almost the same issue. After updating to Bokeh 0.4, it doesn't display the plot anymore. I'm not sure why, I'll let the creators know. However, I don't get the "Starting Bokeh plot server" message at all. That's caused by specifying a server output using output_server() as opposed to output_file() (as it does in the current repo), and does not occur when I try and reproduce the issue. Could you please post the contents of the plots.py file you are running, so I can make sure it's the same as what I have?

rpazyaquian avatar Feb 16 '14 19:02 rpazyaquian

I just run manually bokeh server in an other console using $ bokeh-server ....

but that's probably not necessary.

my plots.py is same as yours

s-celles avatar Feb 16 '14 19:02 s-celles

It is not necessary. You simply have to run routes.py, and it should output the plot for you. However, it seems that something in the Javascript for Bokeh plots changed recently, which stops them from showing up now. I'll look into the issue.

rpazyaquian avatar Feb 16 '14 19:02 rpazyaquian

I cloned the repo this weekend and found the same issue - glad to hear that it's not just me but would be great to understand why it's stopped working.

In trying to debug I think the issue might be in the generated *.embed.js file - the host / static path variables in that file don't seem to work properly. I've tried it with the built-in Flask dev server and with gunicorn.

Thinking out loud - perhaps the reason for a change in behaviour might be a requirement to specify some path variable when calling either 'create_html_snippet', or I noticed there was a config file for bokeh as well where these might be set.

philsheard avatar Mar 23 '14 21:03 philsheard