Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Oct 29, 2024
1 parent 3a4ceca commit 377c728
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion jupyter_server/prometheus/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"""

from prometheus_client import Gauge, Histogram, Info

from jupyter_server._version import version_info as server_version_info

try:
Expand All @@ -14,7 +15,11 @@
notebook_version_info = None


if notebook_version_info is not None and notebook_version_info < (7,) and notebook_version_info != server_version_info:
if (
notebook_version_info is not None
and notebook_version_info < (7,)
and notebook_version_info != server_version_info
):
print("yes, we think we have an unshimmed notebook package")
print(notebook_version_info)
# Jupyter Notebook v6 also defined these metrics. Re-defining them results in a ValueError,
Expand Down

0 comments on commit 377c728

Please sign in to comment.