Skip to content

Commit 2c77a28

Browse files
committed
Automatically install & enable extensions
1 parent 237b46e commit 2c77a28

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

nbresuse/etc/nbresuse.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"NotebookApp": {
3+
"nbserver_extensions": {
4+
"nbresuse": true
5+
}
6+
},
7+
"load_extensions": {
8+
"nbresuse/static/main": true
9+
}
10+
}
11+

setup.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,9 @@
1212
'notebook',
1313
],
1414
package_data={'nbresuse': ['static/*']},
15+
data_files=[
16+
('etc/jupyter/jupyter_notebook_config.d', ['nbresuse/etc/nbresuse.json'])
17+
],
18+
zip_safe=False,
19+
include_package_data=True
1520
)

0 commit comments

Comments
 (0)