diff --git a/jupyter/pyproject.toml.jinja b/jupyter/pyproject.toml.jinja index 92215da..41a1a1b 100644 --- a/jupyter/pyproject.toml.jinja +++ b/jupyter/pyproject.toml.jinja @@ -122,6 +122,8 @@ exclude = ["js"] [tool.hatch.build.targets.wheel.shared-data] "{{module}}/labextension" = "share/jupyter/labextensions/{{module}}" +"{{module}}/extension/install.json" = "share/jupyter/labextensions/{{module}}/install.json" +"{{module}}/extension/{{module}}.json" = "etc/jupyter/jupyter_server_config.d/{{module}}.json" [tool.hatch.build.hooks.jupyter-builder] build-function = "hatch_jupyter_builder.npm_builder" diff --git a/jupyter/{{module}}/extension/install.json.jinja b/jupyter/{{module}}/extension/install.json.jinja new file mode 100644 index 0000000..99f0462 --- /dev/null +++ b/jupyter/{{module}}/extension/install.json.jinja @@ -0,0 +1,5 @@ +{ + "packageManager": "python", + "packageName": "{{project_name_formatted}}", + "uninstallInstructions": "Use your Python package manager (pip, conda, etc.) to uninstall the package {{project_name_formatted}}" +} \ No newline at end of file diff --git a/jupyter/{{module}}/extension/{{module}}.json.jinja b/jupyter/{{module}}/extension/{{module}}.json.jinja new file mode 100644 index 0000000..2286256 --- /dev/null +++ b/jupyter/{{module}}/extension/{{module}}.json.jinja @@ -0,0 +1,7 @@ +{ + "ServerApp": { + "jpserver_extensions": { + "{{module}}": true + } + } +}