Skip to content

Commit bd1118b

Browse files
committed
Put nbextension / serverextension enables in different places
Thanks to @SylvianCorlay from gitter for the help.
1 parent 2c77a28 commit bd1118b

File tree

3 files changed

+8
-4
lines changed

3 files changed

+8
-4
lines changed

nbresuse/etc/nbextension.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"load_extensions": {
3+
"nbresuse/main": true
4+
}
5+
}
6+
Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,6 @@
33
"nbserver_extensions": {
44
"nbresuse": true
55
}
6-
},
7-
"load_extensions": {
8-
"nbresuse/static/main": true
96
}
107
}
118

setup.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
],
1414
package_data={'nbresuse': ['static/*']},
1515
data_files=[
16-
('etc/jupyter/jupyter_notebook_config.d', ['nbresuse/etc/nbresuse.json'])
16+
('etc/jupyter/jupyter_notebook_config.d', ['nbresuse/etc/serverextension.json']),
17+
('etc/jupyter/nbconfig/notebook.d', ['nbresuse/etc/nbextension.json'])
1718
],
1819
zip_safe=False,
1920
include_package_data=True

0 commit comments

Comments
 (0)