python - Specifying doc-id and plot-id (i.e. the URL) for output_server() -


i able specify url output_server publishes app in bokeh-server (as example, trying in animate_widgets.py example christine doig presented in scipy2015).

i running bokeh-server in separate terminal. when run app output_server, there way specify url app rendered?

it seems follow syntax:

 http://localhost:5006/bokeh/doc/some-doc-id/some-plot-id 

but don't see ability specify fields <doc-id> , <plot-id> output_server (documentation output_server below).

is there way specify where exactly (url-wise) want app published?

enter image description here

note entering string http://localhost:5006/bokeh/doc/some-doc-id/some-plot-id url output_server() not work.

the short answer not really. urls meant unambiguous , avoid collisions. letting users choose own urls unworkable in general multi-user scenario. that's ok, want embed bokeh server plot in own document (as opposed linking bare page has plot , nothing else). can accomplish autoload_server:

http://bokeh.pydata.org/en/latest/docs/user_guide/embed.html#server-data

i noticed code there seems missing call push() before getting script. can see complete example here:

https://github.com/bokeh/bokeh/blob/master/examples/embed/animated.py

edit: won't impossible, it's far enough outside normal usage don't know offhand how accomplish it, , if not advisable several reasons.


Comments

Popular posts from this blog

Android : Making Listview full screen -

javascript - Parse JSON from the body of the POST -

javascript - How to Hide Date Menu from Datepicker in yii2 -