Skip to content

Commit

Permalink
Print version of notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
yuvipanda committed Oct 29, 2024
1 parent 00789bc commit db89eec
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions jupyter_server/prometheus/metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,10 @@
except ImportError:
notebook_version_info = None


if notebook_version_info is not None and notebook_version_info < (7,):
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,
# so we simply re-export them if we are co-existing with the notebook v6 package.
# See https://github.com/jupyter/jupyter_server/issues/209
Expand Down

0 comments on commit db89eec

Please sign in to comment.