You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: nbresuse/__init__.py
+1-122Lines changed: 1 addition & 122 deletions
Original file line number
Diff line number
Diff line change
@@ -1,40 +1,11 @@
1
1
importos
2
2
3
3
fromtornadoimportioloop
4
-
fromtraitletsimportBool
5
-
fromtraitletsimportdefault
6
-
fromtraitletsimportDict
7
-
fromtraitletsimportFloat
8
-
fromtraitletsimportInt
9
-
fromtraitletsimportList
10
-
fromtraitletsimportTraitType
11
-
fromtraitletsimportUnion
12
-
fromtraitlets.configimportConfigurable
13
4
5
+
fromnbresuse.configimportResourceUseDisplay
14
6
fromnbresuse.metricsimportPSUtilMetricsLoader
15
7
fromnbresuse.prometheusimportPrometheusHandler
16
8
17
-
try:
18
-
# Traitlets >= 4.3.3
19
-
fromtraitletsimportCallable
20
-
exceptImportError:
21
-
from .utilsimportCallable
22
-
23
-
24
-
classPSUtilMetric(TraitType):
25
-
"""A trait describing the format to specify a metric from the psutil package"""
26
-
27
-
info_text="A dictionary specifying the function/method name, any keyword arguments, and if a named tuple is returned, which attribute of the named tuple to select"
"""A trait describing the format to specify a metric from the psutil package"""
19
+
20
+
info_text="A dictionary specifying the function/method name, any keyword arguments, and if a named tuple is returned, which attribute of the named tuple to select"
0 commit comments