Repository URL to install this package:
|
Version:
2022.10.0 ▾
|
from __future__ import annotations
from distributed.http.utils import RequestHandler, redirect
from distributed.utils import log_errors
class MissingBokeh(RequestHandler):
@log_errors
def get(self):
self.write(
"<p>Dask needs bokeh >= 2.1.1 for the dashboard.</p>"
"<p>Install with conda: conda install bokeh>=1.0</p>"
"<p>Install with pip: pip install bokeh>=2.1.1</p>"
)
routes: list[tuple] = [(r"/", redirect("status"), {}), (r"status", MissingBokeh, {})]