-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathjupyter-resource-usage-1.1.0-GCCcore-13.3.0.eb
More file actions
108 lines (96 loc) · 3.56 KB
/
jupyter-resource-usage-1.1.0-GCCcore-13.3.0.eb
File metadata and controls
108 lines (96 loc) · 3.56 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
# This file is part of JSC's public easybuild repository (https://github.com/easybuilders/jsc)
easyblock = 'PythonBundle'
name = 'jupyter-resource-usage'
version = '1.1.0'
homepage = "https://github.com/jupyter-server/jupyter-resource-usage"
description = """
Jupyter Resource Usage is an extension for Jupyter Notebooks and JupyterLab that displays an indication
of how much resources your current notebook server and its children (kernels, terminals, etc) are using.
"""
toolchain = {'name': 'GCCcore', 'version': '13.3.0'}
builddependencies = [
('binutils', '2.42'),
('hatch-jupyter-builder', '0.9.1'),
('nodejs', '20.13.1'),
]
dependencies = [
('Python', '3.12.3'),
('JupyterLab', '4.3.4'),
]
sanity_pip_check = True
use_pip = True
exts_list = [
('jupyter_resource_usage', version, {
'patches': [('jupyter-resource-usage.config', '.')],
'checksums': [
'622c5d57ea713401d8c0143189cf31ad6aadebd49a2a044927a422600f9f7e91',
'3b5a5dbaf4875e30e06ff86b25e5f664c661cf76364cc8d0518fd307dd79ebca',
],
}),
('jupyterlab_logout', '1.0.0', {
'modulename': False,
'checksums': ['f2e06423e3228ceb2f98321bf26121d0cad013a58157abffa2355f2b9d853a3e'],
}),
('jupyterlab_topbar_text', '1.0.0', {
'modulename': False,
'checksums': ['f2b552120f9611c8ebffdf284eecd30751b7a0517f7d74dde7e09e7046c3a1e0'],
}),
('jupyterlab_theme_toggler', '1.0.0', {
'modulename': False,
'checksums': ['e3219c35f5ca8ed4f2a6e11a834d2b4f6f8bbf14115c7403846932d707be2197'],
}),
# currently failing because of https://github.com/jhgoebbert/jupyterlab-homebtn/issues/1
# ('jupyterlab-homebtn', '1.0.1', {
# 'source_tmpl': 'v%(version)s.tar.gz',
# 'source_urls': ['https://github.com/jhgoebbert/jupyterlab-homebtn/archive/'],
# 'checksums': ['db840b732fb2ad1fdcaa1e795e75bac5ce469eb07ccf4c07ca2a2b2e68bbad78'],
# 'modulename': False,
# }),
]
postinstallcmds = [
'mkdir -p %(installdir)s/etc/jupyter/ ',
(
'cat %(builddir)s/jupyter_resource_usage/jupyter_resource_usage-%(version)s/jupyter-resource-usage.config '
' >> %(installdir)s/etc/jupyter/jupyter_notebook_config.py'
),
# override default settings
'mkdir -p %(installdir)s/etc/jupyter/labconfig/ ',
(
'{ cat > %(installdir)s/etc/jupyter/labconfig/default_setting_overrides.json; } << \'EOF\'\n'
'{\n'
' "@jupyter-server/resource-usage:topbar-item": {\n'
' "enable": true,\n'
' "refreshRate": 1000,\n'
' "memory": {\n'
' "label": "Mem: "\n'
' },\n'
' "cpu": {\n'
' "label": "CPU: "\n'
' }\n'
' },\n'
' "@jupyterlab/application-extension:top-bar": {\n'
' "toolbar": [\n'
' {\n'
' "name": "text",\n'
' "disabled": true\n'
' },\n'
' {\n'
' "name": "logout",\n'
' "disabled": true\n'
' }\n'
' ]\n'
' },\n'
' "jupyterlab-topbar-text:plugin": {\n'
' "editable": false,\n'
' "text": "Jülich Supercomputing Centre"\n'
' }\n'
'}\n'
'EOF'
),
]
modextrapaths = {
'EB_ENV_JUPYTER_ROOT': '',
# to ensure 'etc/jupyter/labconfig/default_setting_overrides.json' is read:
'JUPYTER_CONFIG_PATH': 'etc/jupyter/',
}
moduleclass = 'tools'