Skip to content

Commit

Permalink
Migrate nbgitpuller to use jupyter_server
Browse files Browse the repository at this point in the history
  • Loading branch information
GeorgianaElena committed Jul 8, 2021
1 parent b5f23fd commit 31fe3fb
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
2 changes: 2 additions & 0 deletions nbgitpuller/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,5 @@ def load_jupyter_server_extension(nbapp):
]
web_app.settings['nbapp'] = nbapp
web_app.add_handlers('.*', handlers)

_load_jupyter_server_extension = load_jupyter_server_extension
File renamed without changes.
8 changes: 8 additions & 0 deletions nbgitpuller/etc/jupyter_server_config.d/nbgitpuller.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"ServerApp": {
"jpserver_extensions": {
"nbgitpuller": true
}
}
}

3 changes: 2 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
platforms='any',
install_requires=['notebook>=5.5.0', 'tornado'],
data_files=[
('etc/jupyter/jupyter_notebook_config.d', ['nbgitpuller/etc/nbgitpuller.json'])
('etc/jupyter/jupyter_server_config.d', ['nbgitpuller/etc/jupyter_server_config.d/nbgitpuller.json']),
('etc/jupyter/jupyter_notebook_config.d', ['nbgitpuller/etc/jupyter_notebook_config.d/nbgitpuller.json'])
],
zip_safe=False,
entry_points={
Expand Down

0 comments on commit 31fe3fb

Please sign in to comment.