File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change
1
+ """Initialize the backend server extension
1
2
"""
2
- Initialize the backend server extension
3
- """
3
+ # need this in order to show version in `jupyter serverextension list`
4
+ from ._version import __version__
5
+
4
6
from jupyterlab_git .handlers import setup_handlers
5
7
from jupyterlab_git .git import Git
6
8
7
9
8
10
def _jupyter_server_extension_paths ():
9
- """
10
- Declare the Jupyter server extension paths.
11
+ """Declare the Jupyter server extension paths.
11
12
"""
12
13
return [{"module" : "jupyterlab_git" }]
13
14
14
15
15
16
def load_jupyter_server_extension (nbapp ):
16
- """
17
- Load the Jupyter server extension.
17
+ """Load the Jupyter server extension.
18
18
"""
19
19
git = Git (nbapp .web_app .settings ['contents_manager' ])
20
20
nbapp .web_app .settings ["git" ] = git
You can’t perform that action at this time.
0 commit comments