refactor: remove unused Optuna visualization utility
This commit is contained in:
@@ -1,3 +1,2 @@
|
|||||||
from .datasets import FiberRegenerationDataset # noqa: F401
|
from .datasets import FiberRegenerationDataset # noqa: F401
|
||||||
from .optuna_vis import show_figures # noqa: F401
|
|
||||||
from .plot import eye # noqa: F401
|
from .plot import eye # noqa: F401
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
from dash import Dash, dcc, html
|
|
||||||
import logging
|
|
||||||
import dash_bootstrap_components as dbc
|
|
||||||
|
|
||||||
|
|
||||||
def show_figures(*figures):
|
|
||||||
for figure in figures:
|
|
||||||
figure.layout.template = 'plotly_dark'
|
|
||||||
|
|
||||||
app = Dash(external_stylesheets=[dbc.themes.DARKLY])
|
|
||||||
app.layout = html.Div([
|
|
||||||
dcc.Graph(figure=figure) for figure in figures
|
|
||||||
])
|
|
||||||
log = logging.getLogger('werkzeug')
|
|
||||||
log.setLevel(logging.ERROR)
|
|
||||||
|
|
||||||
app.show = lambda *args, **kwargs: app.run_server(*args, **kwargs, debug=False)
|
|
||||||
return app
|
|
||||||
Reference in New Issue
Block a user