How to set up the bokeh application so that it can be accessed over the Internet?

I want to set up an interactive bokeh application that anyone can access over the Internet.

To understand how this works, I am currently trying to run a stock example so that I can access it, for example, from my mobile phone.

I have already tried the following:

  • opened port 5006 and 5050 and tried to open the application on top http:\\<my_global_ip>:<port>
  • examined the html source http://bokeh.pydata.org/en/latest/docs/server_gallery/stocks_server.htmland found out what is the difference in the source code of the generated source code

So far, I got the whole example running on the computer where the bokeh server is running, so that I can access it through localhost:5006/bokeh/stocks/and localhost:5050/. But as soon as I try to access it from another machine, I see the contents of the html, but not the plot.

Edit: I'm trying to run the example https://github.com/bokeh/bokeh/tree/master/examples/deploy because it sounds promising, but because I really don't understand what I'm doing here. would appreciate an explanation. Anyway, I am not getting an example. Installing gunicorn with conda only worked after some headaches and finally the provided commands were executed, but I don't get any response to port 5006 or port 7001. Perhaps I just misunderstand the example?

+4
1

Bokeh:

, - :

https://docs.bokeh.org/en/latest/docs/user_guide/server.html#websocket-origin

.

bokeh serve --show --allow-websocket-origin=foo.com sliders.py

Bokeh 0.11

- Bokeh

bokeh serve sliders.py --host <globalip>:5006

.

, !

https://github.com/bokeh/bokeh/blob/master/examples/app/sliders.py .

+2

Source: https://habr.com/ru/post/1607166/


All Articles