Skip to content

Commit db89eec

Browse files
committed
Print version of notebook
1 parent 00789bc commit db89eec

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

jupyter_server/prometheus/metrics.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,10 @@
1212
except ImportError:
1313
notebook_version_info = None
1414

15+
1516
if notebook_version_info is not None and notebook_version_info < (7,):
17+
print("yes, we think we have an unshimmed notebook package")
18+
print(notebook_version_info)
1619
# Jupyter Notebook v6 also defined these metrics. Re-defining them results in a ValueError,
1720
# so we simply re-export them if we are co-existing with the notebook v6 package.
1821
# See https://github.com/jupyter/jupyter_server/issues/209

0 commit comments

Comments
 (0)