For general-purpose Custom Deployment instructions, click here

After having your HTML dashboard from Bokeh you can write a Flask server in the project directory to serve it as a Custom Deployment.

import os
os.system('python3 -m pip install flask')
from flask import Flask


app = Flask(__name__,static_url_path='/static')

@app.route('/')
def dashboard_serving():
return app.send_static_file('us_wind_turbines_demo.html')

if __name__ == '__main__':
    app.run(host='0.0.0.0', port=8000)

After that create a Custom Deployment from your image:

Once it is running you can check the logs and the URL to see that it is working.


Did this answer your question?