Skip to content

Commit f447d8f

Browse files
committed
Enable automatic installation of extension and fix path config
1 parent 51c836e commit f447d8f

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"load_extensions": {
3+
"markus-jupyter-extension/extension": true
4+
}
5+
}

markus-jupyter-extension/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@ def _jupyter_nbextension_paths():
44
return [{
55
'section': 'notebook',
66
'src': 'static',
7-
'dest': 'markus-jupyter',
8-
'require': 'markus-jupyter/extension'
7+
'dest': 'markus-jupyter-extension',
8+
'require': 'markus-jupyter-extension/extension'
99
}]

setup.cfg

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = markus-jupyter-extension
3-
version = 0.1.1
3+
version = 0.1.2
44
description = Jupyter extension for integration with MarkUs
55
long_description = file: README.md
66
long_description_content_type = text/markdown
@@ -17,6 +17,14 @@ python_requires = ~=3.8
1717
zip_safe = False
1818
include_package_data = True
1919

20+
[options.data_files]
21+
share/jupyter/nbextensions/markus-jupyter-extension =
22+
markus-jupyter-extension/static/extension.js
23+
share/jupyter/nbextensions/markus-jupyter-extension/assets =
24+
markus-jupyter-extension/static/assets/markus.ico
25+
etc/jupyter/nbconfig/notebook.d =
26+
jupyter-config/nbconfig/notebook.d/markus_jupyter_extension.json
27+
2028
[options.extras_require]
2129
dev =
2230
pre-commit

0 commit comments

Comments
 (0)