For general-purpose Custom Deployment instructions, click here

Once you have 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')

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

if __name__ == '__main__':'', 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?