Skip to content

Commit

Permalink
Merge pull request #361 from dyson-ai/hotfix/suppress_bokeh_warnings
Browse files Browse the repository at this point in the history
Hotfix/suppress bokeh warnings
  • Loading branch information
blooop authored May 14, 2024
2 parents 4b69fba + 3e4658f commit 8c7de9a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion bencher/bench_plot_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,10 @@ def serve(
port (int): use a fixed port to lauch the server
"""

# suppress verbose tornado and bokeh output
for logger in ["tornado", "bokeh"]:
logging.getLogger(logger).setLevel(logging.WARNING)

if port is not None:
return pn.serve(
plots_instance,
Expand All @@ -97,5 +101,4 @@ def serve(
show=show,
)

logging.getLogger().setLevel(logging.WARNING)
return pn.serve(plots_instance, title=bench_name, threaded=True, show=show)
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "holobench"
version = "1.16.0"
version = "1.17.0"

authors = [{ name = "Austin Gregg-Smith", email = "[email protected]" }]
description = "A package for benchmarking the performance of arbitrary functions"
Expand Down

0 comments on commit 8c7de9a

Please sign in to comment.