Skip to content

Commit cd23d03

Browse files
authored
Merge pull request #32 from python-project-templates/copier-update-2025-04-13T05-21-51
Update from copier (2025-04-13T05:21:51)
2 parents 7ed46a0 + a40e6f6 commit cd23d03

File tree

4 files changed

+38
-1
lines changed

4 files changed

+38
-1
lines changed

.copier-answers.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Changes here will be overwritten by Copier
2-
_commit: 5da0277
2+
_commit: 98c8f14
33
_src_path: https://github.com/python-project-templates/base.git
44
add_extension: jupyter
55

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ _template/labextension
134134
# JS
135135
js/coverage
136136
js/dist
137+
js/lib
137138
js/node_modules
138139
python_template_jupyter/extension
139140

pyproject.toml

+7
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ keywords = []
1818

1919
classifiers = [
2020
"Development Status :: 3 - Alpha",
21+
"Framework :: Jupyter",
22+
"Framework :: Jupyter :: JupyterLab",
2123
"Programming Language :: Python",
2224
"Programming Language :: Python :: Implementation :: CPython",
2325
"Programming Language :: Python :: Implementation :: PyPy",
@@ -26,6 +28,7 @@ classifiers = [
2628
"Programming Language :: Python :: 3.10",
2729
"Programming Language :: Python :: 3.11",
2830
"Programming Language :: Python :: 3.12",
31+
"Programming Language :: Python :: 3.13",
2932
]
3033

3134
dependencies = []
@@ -79,6 +82,8 @@ ignore = [
7982
"python_template_jupyter/labextension/**",
8083
"python_template_jupyter/nbextension/**",
8184
"docs/**/*",
85+
"js/dist/**/*",
86+
"js/lib/*",
8287
]
8388

8489
[tool.coverage.run]
@@ -120,9 +125,11 @@ packages = ["python_template_jupyter"]
120125
[tool.hatch.build.hooks.jupyter-builder]
121126
build-function = "hatch_jupyter_builder.npm_builder"
122127
ensured-targets = [
128+
"python_template_jupyter/nbextension/static/notebook.js",
123129
"python_template_jupyter/labextension/package.json",
124130
]
125131
skip-if-exists = [
132+
"python_template_jupyter/nbextension/static/notebook.js",
126133
"python_template_jupyter/labextension/package.json",
127134
]
128135
dependencies = [

python_template_jupyter/__init__.py

+29
Original file line numberDiff line numberDiff line change
@@ -1 +1,30 @@
11
__version__ = "0.1.0"
2+
3+
4+
def _jupyter_server_extension_paths():
5+
return [{"module": "python_template_jupyter"}]
6+
7+
8+
def _jupyter_server_extension_points():
9+
return [{"module": "python_template_jupyter"}]
10+
11+
12+
def _load_jupyter_server_extension(nb_server_app, nb6_entrypoint=False):
13+
"""
14+
Called when the extension is loaded.
15+
16+
Args:
17+
nb_server_app (NotebookWebApplication): handle to the Notebook webserver instance.
18+
"""
19+
# web_app = nb_server_app.web_app
20+
21+
22+
def _jupyter_nbextension_paths():
23+
return [
24+
{
25+
"section": "tree",
26+
"src": "nbextension/static",
27+
"dest": "python_template_jupyter",
28+
"require": "python_template_jupyter/notebook",
29+
}
30+
]

0 commit comments

Comments
 (0)