Hello:
Is there anyway to integrate a Dash app using cherrypy instead of Flask?
Here is my code:
import dash
import cherrypy
import dash_core_components as dcc
import dash_html_components as html
external_stylesheets=['https://codepen.io/chriddyp/pen/bWLwgP.css']
appl= dash.Dash(__name__, external_stylesheets=external_stylesheets)
appl.layout=...
class Root(object):
def index(self):
output='''
"Access the <a href="dash">application</a>"
'''
return output
index.exposed=True
def dash(self):
return appl
dash.exposed=True
if __name__ == '__main__':
configfile=os.path.join(os.path.dirname(__file__), 'server.conf')
cherrypy.quickstart(Root(), script_name='/', config=configfile)
I get the error:
TypeError: ‘Dash’ object is not iterable
I think I’m very close, but I have the feeling that there is one missing piece
Thank you!