Now I have an app “myapp”. Do I just put “myapp” in public_html/ and run “bokeh serve myapp” in that directory to have it available at www.mydomain.com/~myusername/myapp ?
I would expect the webpage I linked to show minimal steps to get a minimal app online:
for example if myapp only consists of that:
main.py:
from bokeh.io import curdoc
from bokeh.plotting import figure
I don’t know about online in your case, but may be my scenario will give you a hint. I do it locally with Django, and all I have to do is run “bokeh serve --allow-websocket-origin=127.0.0.1:8000 Script.py” on my terminal, That will allow requests from port 8000 which my Django is running from.
And on Django, I add the code below and render bokeh_script variable
Thank you, unfortunately I never used django, that would be quite a bit of additional learning I guess.
I have put a lot of static plots on my webspace before.
I have an app that I run locally which uses python callbacks and that I would like to make available there
···
Le vendredi 22 septembre 2017 12:02:22 UTC-4, kiluvya a écrit :
I don’t know about online in your case, but may be my scenario will give you a hint. I do it locally with Django, and all I have to do is run “bokeh serve --allow-websocket-origin=127.0.0.1:8000 Script.py” on my terminal, That will allow requests from port 8000 which my Django is running from.
And on Django, I add the code below and render bokeh_script variable