Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hotfix/suppress bokeh warnings #361

Merged
merged 3 commits into from
May 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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)
blooop marked this conversation as resolved.
Show resolved Hide resolved

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
Loading