Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
401 commits
Select commit Hold shift + click to select a range
7b06cd8
release 0.9.0
manics Aug 1, 2020
bd0ffcb
back to dev
manics Aug 1, 2020
bc00c4c
Rename README.rst to README.md
consideRatio Aug 1, 2020
b86f111
CI: stop triggering CircleCI on automated pushes to gh-pages
consideRatio Aug 1, 2020
bac2ad1
Merge pull request #151 from consideRatio/disable-circle-ci
yuvipanda Aug 3, 2020
5481b59
Merge pull request #150 from consideRatio/readme-badges
yuvipanda Aug 3, 2020
13691a7
Add failing test for https://github.com/jupyterhub/nbgitpuller/issues…
manics Oct 3, 2020
7b127f6
git ls-files: use raw output
manics Oct 3, 2020
d85b270
Merge pull request #156 from manics/issue-121
consideRatio Oct 3, 2020
0857c28
Merge pull request #141 from danlester/master
consideRatio Oct 3, 2020
2a50531
Update travis-ci badge in README.md
consideRatio Oct 28, 2020
3d8c6cf
Copy https://github.com/jupyterhub/oauthenticator/tree/be91e7d9e58f13…
manics Dec 11, 2020
d3a3ac2
Change tox to Python 3.8
manics Dec 11, 2020
c906c92
nbgitpuller GitHub test workflow
manics Dec 11, 2020
0f15ad5
Remove travis
manics Dec 11, 2020
92e2b7f
Merge pull request #161 from manics/github-workflow
consideRatio Dec 11, 2020
67e963c
Document how to do local development
yuvipanda Dec 14, 2020
7c22dd1
Move 'contributing' section after 'installation'
yuvipanda Dec 15, 2020
61c3603
Add section on git cloning
yuvipanda Dec 15, 2020
6bd27c8
Parse ssh git URLs properly
yuvipanda Dec 17, 2020
a9c119a
Mention that binder doesn't work with ssh urls
yuvipanda Dec 17, 2020
82a3352
Merge pull request #163 from yuvipanda/git-ssh
consideRatio Dec 17, 2020
5d443c6
Remove unnecessary myst config
yuvipanda Jan 5, 2021
ef4a12b
Remove extreneous packages from doc-requirements
yuvipanda Jan 6, 2021
d7bdacf
Merge pull request #162 from yuvipanda/contributing
consideRatio Jan 6, 2021
63cb779
Support generating shiny links
yuvipanda Jan 8, 2021
e46c169
Update url-options docs for shiny
yuvipanda Jan 8, 2021
77488db
Merge pull request #165 from yuvipanda/shiny-link
consideRatio Jan 8, 2021
1b8d003
Add best practices recommendation documentation
yuvipanda Feb 10, 2021
31910e9
Add note about .gitignore
yuvipanda Feb 10, 2021
d243b0d
Merge pull request #169 from yuvipanda/best-practices
consideRatio Feb 16, 2021
c269970
Tell users about `main` vs `master` branches
yuvipanda Mar 21, 2021
22e2e27
Merge pull request #170 from yuvipanda/no-master
consideRatio Mar 21, 2021
8384c6c
Respect path component of JupyterHub url
yuvipanda Apr 23, 2021
ebe3998
Handle lack of trailing slashes in hub URLs
yuvipanda Apr 23, 2021
ac44f28
Merge pull request #172 from yuvipanda/fix-152
consideRatio Apr 23, 2021
d273131
Merge pull request #173 from yuvipanda/fix-trailing-slash
consideRatio Apr 23, 2021
d13737e
docs: update README.md badges
consideRatio May 2, 2021
207e3b2
Merge pull request #175 from consideRatio/pr/update-badges
yuvipanda May 2, 2021
b3d1f72
Document restarting notebook process to see changes
yuvipanda May 28, 2021
814682b
Merge pull request #178 from yuvipanda/contrib
consideRatio May 28, 2021
79dd180
Handle default or non-existing branch name
sean-morris May 21, 2021
752b6a3
Provide cleaner feedback for lint vs test failures
yuvipanda Jun 2, 2021
8423af4
Updates to handling default or non-existing branch
sean-morris Jun 2, 2021
12f25dd
Cleaned up passing of branch on query string
sean-morris Jun 8, 2021
8d65dfc
Merge pull request #179 from sean-morris/master
yuvipanda Jun 8, 2021
bb2daad
Update past changelog format
consideRatio Jun 9, 2021
73453e5
Add changelog for 0.10.0
consideRatio Jun 9, 2021
672722a
Apply suggestions from code review
consideRatio Jun 9, 2021
0dc297c
Merge pull request #183 from consideRatio/pr/changelog-for-1.0.0
yuvipanda Jun 9, 2021
330dd1e
release 0.10.0
consideRatio Jun 9, 2021
3280fdd
back to dev
consideRatio Jun 9, 2021
3c786e8
Added branch name back to command-line usage
sean-morris Jun 10, 2021
66101be
Removed master as default branch_name
sean-morris Jun 14, 2021
1e57904
Added tests to catch command line execution errors
sean-morris Jun 14, 2021
51d9240
Merge pull request #185 from sean-morris/master
yuvipanda Jun 24, 2021
183e5e8
Merge pull request #181 from yuvipanda/cleaner-lint
consideRatio Jun 24, 2021
4293c7b
ci: stop using pip cache, add workflow_dispatch, and cleanup misc
consideRatio Jun 24, 2021
e11fa15
Merge pull request #188 from consideRatio/pr/test-ci
yuvipanda Jun 24, 2021
cf68d91
Rename nbgitpuller repo's master branch to main
consideRatio Jun 24, 2021
6118a9a
Add changelog for 0.10.1
consideRatio Jun 24, 2021
775fed2
Merge pull request #191 from consideRatio/pr/changelog-0.10.1
yuvipanda Jun 24, 2021
bd60d76
release 0.10.1
consideRatio Jun 24, 2021
b5f23fd
back to dev
consideRatio Jun 24, 2021
4d40c2d
Merge pull request #189 from consideRatio/rename-nbgitpuller-repos-ma…
yuvipanda Jul 14, 2021
2ef07d3
Migrate nbgitpuller to use jupyter_server
GeorgianaElena Jul 8, 2021
2b15018
Copy page.html over to avoid notebook pkg dep
GeorgianaElena Jul 19, 2021
6c42bf2
Add webpack config files
GeorgianaElena Jul 19, 2021
2d56f02
Move index.js to its dedicated dir
GeorgianaElena Jul 19, 2021
2657245
Use webpack
GeorgianaElena Jul 19, 2021
9adba0a
Use the page template from jupyter_server instead
GeorgianaElena Jul 27, 2021
f60647e
Run the test_api with both jupyter notebook and server
GeorgianaElena Jul 27, 2021
b019aa4
Require jupyter_server too
GeorgianaElena Jul 27, 2021
4803371
Run npm to build static assets in CI
GeorgianaElena Jul 27, 2021
389457f
Temporarly run the tests with output just for jupyter_server
GeorgianaElena Jul 28, 2021
1f56f1f
Install nbclassic
GeorgianaElena Jul 28, 2021
7d06c2e
Ammend temp debug changes
GeorgianaElena Jul 28, 2021
6e3f45c
Update contributing docs
GeorgianaElena Aug 17, 2021
8401bd6
Merge pull request #193 from GeorgianaElena/extension
yuvipanda Aug 17, 2021
2f58aa5
Use addon when calling fit and import xterm css
GeorgianaElena Aug 20, 2021
2cad614
Merge pull request #197 from GeorgianaElena/fix-jupyter-server-extension
yuvipanda Aug 20, 2021
f25d3f2
make positional args explicit
minrk Aug 24, 2021
0769064
Merge pull request from GHSA-mq5p-2mcr-m52j
consideRatio Aug 25, 2021
b1c97fe
Add changelog for 0.10.2
consideRatio Aug 25, 2021
a1d5a95
Update contributing guide to use `git-pull`
fperez Aug 26, 2021
58e61f6
Merge pull request #202 from jupyterhub/fperez-patch-1
consideRatio Aug 26, 2021
f18b3e1
Add changelog for 1.0.0
consideRatio Aug 31, 2021
d05f9cc
Update changelog for 1.0.0
consideRatio Sep 1, 2021
21c454f
Merge pull request #208 from consideRatio/pr/add-changelog-for-1.0.0
GeorgianaElena Sep 1, 2021
7c18a14
release 1.0.0
GeorgianaElena Sep 1, 2021
4ffd009
back to dev
GeorgianaElena Sep 1, 2021
bcf9873
Use jupyter-packaging for npm build
manics Sep 1, 2021
1932cf3
Add package.json to MANIFEST.in to support a js rebuild
consideRatio Sep 2, 2021
0f5de87
Slim package.json to avoid fields relevant to npm publication
consideRatio Sep 2, 2021
acce811
Merge pull request #211 from manics/jupyter-packaging
consideRatio Sep 2, 2021
6221f9c
Remove six from dev-requirements.txt
consideRatio Sep 2, 2021
f1d2b63
Merge pull request #213 from consideRatio/pr/cleanup-dev-req
yuvipanda Sep 2, 2021
16ea3ba
Remove requirement of notebook
consideRatio Sep 2, 2021
2b0d9a8
Merge pull request #214 from consideRatio/pr/remove-notebook-req
manics Sep 2, 2021
2fe5339
Merge pull request #212 from consideRatio/pr/slim-package.json
manics Sep 2, 2021
9509e59
Revert "Remove requirement of notebook"
consideRatio Sep 2, 2021
97f6139
Merge pull request #218 from jupyterhub/revert-214-pr/remove-notebook…
consideRatio Sep 2, 2021
30f0c5d
Add changelog for 1.0.1
consideRatio Sep 2, 2021
bc6d68a
Merge pull request #216 from consideRatio/pr/changelog-1.0.1
consideRatio Sep 2, 2021
bef2b91
release 1.0.1
consideRatio Sep 2, 2021
7bc45a0
back to dev
consideRatio Sep 2, 2021
ceabbcf
Fix jupyter-packaging reference, use - instead of _
consideRatio Sep 2, 2021
e858057
Merge pull request #219 from consideRatio/pr/fix-jupyter-packaging-dep
consideRatio Sep 2, 2021
1042992
Add changelog for 1.0.2
consideRatio Sep 2, 2021
86fe531
Merge pull request #220 from consideRatio/pr/add-changelog-for-1.0.2
consideRatio Sep 2, 2021
1568ec7
release 1.0.2
consideRatio Sep 2, 2021
634f2be
back to dev
consideRatio Sep 2, 2021
343b5d5
npm: auto-rebuild dist if js changed
manics Sep 26, 2021
03d82f3
Merge pull request #222 from manics/npm-if-changed
consideRatio Nov 3, 2021
9f1dd87
Fix conf.py to work on newer versions of sphinx
yuvipanda Nov 4, 2021
54cba59
Merge pull request #226 from yuvipanda/sphinx
choldgraf Nov 5, 2021
0ad7324
Add retrolab support to link generator
yuvipanda Nov 4, 2021
58d44d9
Merge pull request #225 from yuvipanda/retro
consideRatio Nov 7, 2021
d36dbb4
Point people to the browser extension
yuvipanda Nov 16, 2021
b260038
Fix spacing
yuvipanda Nov 16, 2021
2928721
Merge pull request #231 from yuvipanda/link-gen
consideRatio Nov 16, 2021
981f6f7
Remove unnecessary Sphinx configuration files
choldgraf Dec 17, 2021
8007266
DOCS: Update introduction and usage to generalize use-case
choldgraf Dec 17, 2021
cd66311
Apply suggestions from code review
choldgraf Dec 17, 2021
982faa3
Update docs/use.md
choldgraf Dec 17, 2021
5994d77
Merge pull request #237 from choldgraf/docs
yuvipanda Dec 18, 2021
40b4c53
Move docs building workflow to GitHub Actions
yuvipanda Nov 16, 2021
4a38847
Apply suggestions from code review
consideRatio Dec 18, 2021
586c829
ci: modernize docs Makefile to have devenv and linkcheck
consideRatio Dec 18, 2021
5e3848c
ci: add linkcheck job
consideRatio Dec 18, 2021
991c8b9
ci: trigger only (once) when relevant
consideRatio Dec 18, 2021
a1dd2b0
ci: opinionated small tweaks
consideRatio Dec 18, 2021
79a5308
ci: add colors to sphinx
consideRatio Dec 18, 2021
7ac87b2
docs: fix broken anchor, reference chrome webstore
consideRatio Dec 18, 2021
d22c66b
Merge pull request #232 from yuvipanda/gha
yuvipanda Dec 20, 2021
99e53ed
DOC: Add link gen. screenshot, update example gif (#238)
consideRatio Dec 28, 2021
7e2c0e8
ci: test against python 3.7-3.10
consideRatio Jan 18, 2022
fdd54bd
Merge pull request #245 from consideRatio/pr/test-against-multiple-ve…
yuvipanda Jan 18, 2022
7375404
docs: add docstrings to legacy web request handlers
consideRatio Jan 18, 2022
855f0ca
docs: add docstrings to notebook/jupyter_server hooks
consideRatio Jan 18, 2022
18a822c
refactor: replace gen.coroutine/yield with async/await
consideRatio Jan 18, 2022
1704b7b
refactor: await emit and flush
consideRatio Jan 18, 2022
7589f74
Merge pull request #246 from consideRatio/pr/use-async-await
yuvipanda Jan 18, 2022
8eaf9a4
refactor: rename to app from nbapp (NotebookApp, ServerApp)
consideRatio Jan 18, 2022
a97022d
Merge pull request #242 from consideRatio/pr/misc-maintenance
yuvipanda Jan 18, 2022
75154c0
Remove binder folder with link_generator.ipynb
consideRatio Jan 20, 2022
9bd3645
Fix note format
brian-rose Jan 23, 2022
78fcf9d
Merge pull request #250 from brian-rose/patch-1
GeorgianaElena Jan 27, 2022
442b6cd
Merge pull request #249 from consideRatio/pr/remove-binder-folder
consideRatio Jan 29, 2022
0e00333
Use our own jinja2 template loader
yuvipanda Mar 15, 2022
50896eb
Test sync after deleting file that had a conflict
jdmansour Mar 17, 2022
04ed08f
Test sync after deleting file locally and remotely
jdmansour Mar 17, 2022
72d0c00
Test that merge works after making a manual commit
jdmansour Mar 17, 2022
1b3083f
When resetting deleted files, take from local copy
jdmansour Mar 17, 2022
232f9e3
Make sync work even if there are unstaged changes
jdmansour Mar 17, 2022
6c0602b
Merge pull request #255 from yuvipanda/own-custom
manics Mar 17, 2022
0887488
Ensure that name and email are set in tests
jdmansour Mar 18, 2022
a2942a6
Make explicit what `git reset` does
jdmansour Mar 18, 2022
6cce5a7
Merge pull request #257 from jdmansour/fix-merge-bug
yuvipanda Mar 18, 2022
e4b8a14
Add changelog for v1.1.0
yuvipanda Mar 18, 2022
4ebdfa1
Remove duplicate
yuvipanda Mar 18, 2022
52766a2
Merge pull request #260 from yuvipanda/vbump
yuvipanda Mar 19, 2022
a45bd8f
Bump version number
yuvipanda Mar 18, 2022
b741ed5
ci: react to pushed tags
consideRatio Mar 19, 2022
6f0419d
Merge pull request #262 from consideRatio/pr/fix-ci-failure-on-git-pu…
consideRatio Mar 19, 2022
ccf4899
back to dev
consideRatio Mar 19, 2022
3b73205
Test if we can reset file a after it was changed
jdmansour Mar 21, 2022
427d92c
Fix bug where files could not be reset properly
jdmansour Mar 21, 2022
73795cd
Test deleting a file upstream, and editing locally
jdmansour Mar 23, 2022
c2cf93d
Fix upstream change detection
jdmansour Mar 23, 2022
16dcbdb
Prepend repo_dir outside of find_upstream_changed
jdmansour Mar 23, 2022
1454a31
Merge pull request #264 from jdmansour/fix-reset-regression
yuvipanda Mar 30, 2022
969ea59
Deal with modify/delete conflicts
jdmansour Apr 11, 2022
9349e3c
Add test: handle conflict when not in first line
jdmansour Apr 19, 2022
1c5fcbb
Handle modify/delete conflict if there is other output
jdmansour Apr 19, 2022
599b7a4
Add newlines to git output
jdmansour Apr 19, 2022
67dfbd5
Don't use Exceptions for flow control
yuvipanda Jun 13, 2022
f59b706
Make tests more robust
yuvipanda Jun 13, 2022
32e6aea
Remove use of jquery for DOM manipulation
yuvipanda Jun 13, 2022
0f8038b
Remove unused import
yuvipanda Jun 14, 2022
507b919
Remove use of jquery for URL Search Param construction
yuvipanda Jun 14, 2022
827539a
Stop using jquery for style manipulation
yuvipanda Jun 14, 2022
ff04ab4
Remove including index.js separately
yuvipanda Jun 14, 2022
bd3b1ba
Remove jquery dependency
yuvipanda Jun 14, 2022
7ce7827
Merge pull request #271 from yuvipanda/no-remote-calls
consideRatio Jun 14, 2022
6b9a3e6
Merge pull request #269 from jdmansour/handle-modify-delete-conflicts
yuvipanda Jun 15, 2022
8f017c3
Merge pull request #272 from yuvipanda/no-mo-css
yuvipanda Jun 21, 2022
145b44a
Modernize JS
yuvipanda Jun 14, 2022
924cc49
Redirect page when sync is done
yuvipanda Jun 14, 2022
cefeb1e
Merge pull request #273 from yuvipanda/modern-js
yuvipanda Jun 21, 2022
a3cd322
Make links in the terminal clickable
yuvipanda Jun 21, 2022
c23461d
Merge pull request #274 from yuvipanda/xterm-bump
consideRatio Jun 22, 2022
d8b2e6a
Updated changelog
albertmichaelj Nov 8, 2022
b64ae35
release 1.1.1
albertmichaelj Nov 8, 2022
2a26dd8
back to dev
albertmichaelj Nov 8, 2022
8e5fb0f
Merge pull request #282 from albertmichaelj/main
albertmichaelj Nov 8, 2022
b6f20ee
Specify initial branch in tests
jdmansour Nov 11, 2022
6063570
Use C locale when parsing git output
jdmansour Nov 11, 2022
f6107d9
Explain why we change the git locale to C
jdmansour Nov 14, 2022
da51f98
Fix test exception branch exists
a3626a Jan 4, 2023
51cb36d
ci: update github actions and test py311
consideRatio Jan 4, 2023
984da3c
Adjust flake8 config to be like other jupyterhub projects
consideRatio Jan 4, 2023
85580e6
pre-commit: run end-of-file-fixer
consideRatio Jan 4, 2023
55f33e4
pre-commit: run requirements.txt fixer
consideRatio Jan 4, 2023
ebe2b80
Add .pre-commit-config.yaml and .prettierignore
consideRatio Jan 4, 2023
7f886ab
Add autoflake, isort, and black config to pyproject.toml
consideRatio Jan 4, 2023
154a59e
pre-commit: run prettier
consideRatio Jan 4, 2023
aecbeda
docs: manual fixes to markdown syntax
consideRatio Jan 4, 2023
ca2b2fe
Add monthly dependabot update of github actions
consideRatio Jan 4, 2023
380c419
Rely on pre-commit.ci for flake8 test
consideRatio Jan 4, 2023
25446a3
Merge pull request #288 from consideRatio/pr/misc-updates
yuvipanda Jan 4, 2023
8bf3bb1
Merge pull request #284 from jdmansour/fix-test-env
yuvipanda Jan 4, 2023
cfb19d7
Introduce pytest.raises for test_exception_branch_exists
a3626a Jan 5, 2023
3c4da85
Merge branch 'main' into fix/test-exception-branch-exists
a3626a Jan 5, 2023
1d513d4
Change ValueError to sp.CalledProcessError
a3626a Jan 5, 2023
67b1294
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] Mar 7, 2023
3cd10f2
Merge pull request #293 from jupyterhub/pre-commit-ci-update-config
consideRatio Mar 7, 2023
b5e6564
ci: relocate dependabot.yaml to correct location
consideRatio Mar 7, 2023
e5138e4
Merge pull request #294 from consideRatio/pr/relocate-dependabot
yuvipanda Mar 21, 2023
75608bb
Bump pypa/gh-action-pypi-publish from 1.6.4 to 1.8.1
dependabot[bot] Mar 21, 2023
af331f8
Merge pull request #295 from jupyterhub/dependabot/github_actions/pyp…
consideRatio Mar 21, 2023
0a8b8c8
migrate docs to RTD
minrk Apr 4, 2023
eb431bb
fix link generator for latest bootstrap
minrk Apr 4, 2023
75853ac
update internal links to link generator
minrk Apr 4, 2023
92fc28a
dependabot: monthly updates of github actions
consideRatio Apr 4, 2023
9ad0899
Merge pull request #299 from consideRatio/pr/dependabot-monthly
consideRatio Apr 7, 2023
d2cadc9
Bump pypa/gh-action-pypi-publish from 1.8.1 to 1.8.5
dependabot[bot] Apr 7, 2023
ca30b25
Merge pull request #300 from jupyterhub/dependabot/github_actions/pyp…
consideRatio Apr 7, 2023
98590e9
Merge pull request #287 from team-monolith-product/fix/test-exception…
minrk Apr 11, 2023
577ed99
avoid deprecation warnings in test_api teardown
minrk Apr 11, 2023
10bc753
use new fixture in test_clone_parenttargetpath
minrk Apr 11, 2023
0d2a512
show git version in tests
minrk Apr 11, 2023
f8ebaf7
fix handling of deleted-but-not-staged files with git 2.40
minrk Apr 11, 2023
48f5fdb
Merge pull request #301 from minrk/test-merge
consideRatio Apr 11, 2023
ad8a012
add git version to test matrix
minrk Apr 11, 2023
dab62e9
handle initial-branch arg added in git 2.28
minrk Apr 11, 2023
55da294
fix width of link generator form
minrk Apr 11, 2023
728b78b
Merge pull request #297 from minrk/rtd
consideRatio Apr 11, 2023
8827509
Merge pull request #302 from minrk/debug-delete_locally
consideRatio Apr 11, 2023
88a5951
[pre-commit.ci] pre-commit autoupdate
pre-commit-ci[bot] May 2, 2023
aa76696
Merge pull request #305 from jupyterhub/pre-commit-ci-update-config
consideRatio May 2, 2023
5d93247
Update README.md
May 22, 2023
e3cca69
Merge pull request #306 from Snozzberries/patch-1
yuvipanda May 23, 2023
3fef41b
Bump pypa/gh-action-pypi-publish from 1.8.5 to 1.8.6
dependabot[bot] Jun 1, 2023
37a409b
Merge pull request #310 from jupyterhub/dependabot/github_actions/pyp…
consideRatio Jun 1, 2023
6f03ad9
Merge remote-tracking branch 'upstream/main' into update-from-upstream
devincowan Jun 6, 2023
3b7c70f
init and handlers
devincowan Jun 6, 2023
765c616
Merge branch 'master' into update-from-upstream
devincowan Jun 8, 2023
1cfd481
revert unnecessary from upstream
devincowan Jun 8, 2023
ece0366
revert tests
devincowan Jun 8, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,16 @@ build/
# python virtual env
env/
venv/
.cache/
data8assets/
.autopull_list
summer/
test-repo/

.ipynb_checkpoints
docs/_build

node_modules/
package-lock.json

nbgitpuller/static/dist
6 changes: 0 additions & 6 deletions .travis.yml

This file was deleted.

1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
include *.md
include LICENSE
include package.json
include setup.cfg
recursive-include nbfetch/static *
recursive-include nbfetch/templates *
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@ Fork of nbgitpuller allowing access to Hydroshare resources.

-------------------

One-way synchronization of a remote git repository to a local git repository,
with automatic conflict resolution.
`nbgitpuller` lets you distribute content in a git repository to your students
by having them click a simple link. [Automatic
merging](https://nbgitpuller.readthedocs.io/topic/automatic-merging.html)
ensures that your students are never exposed to `git` directly. It is primarily
used with a JupyterHub, but can also work on students' local computers.

Pull Hydroshare resources to a local directory.

Expand Down
84 changes: 0 additions & 84 deletions binder/link_generator.ipynb

This file was deleted.

3 changes: 0 additions & 3 deletions binder/postBuild

This file was deleted.

2 changes: 0 additions & 2 deletions binder/requirements.txt

This file was deleted.

Binary file removed doc/nbpuller.gif
Binary file not shown.
67 changes: 64 additions & 3 deletions nbfetch/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,67 @@ def initialize_handlers(self):
]
)


def _jupyter_server_extension_paths():
return [{"module": "nbfetch", "app": NbFetchApp}]
def _jupyter_server_extension_points():
"""
This function is detected by `notebook` and `jupyter_server` because they
are explicitly configured to inspect the nbgitpuller module for it. That
explicit configuration is passed via setup.py's declared data_files.

Returns a list of dictionaries with metadata describing where to find the
`_load_jupyter_server_extension` function.
"""
return [{
"module": "nbfetch", "app": NbFetchApp,
}]


def _load_jupyter_server_extension(app):
"""
This function is a hook for `notebook` and `jupyter_server` that we use to
register additional endpoints to be handled by nbfetch.

Note that as this function is used as a hook for both notebook and
jupyter_server, the argument passed may be a NotebookApp or a ServerApp.

Related documentation:
- notebook: https://jupyter-notebook.readthedocs.io/en/stable/extending/handlers.htmland
- notebook: https://jupyter-notebook.readthedocs.io/en/stable/examples/Notebook/Distributing%20Jupyter%20Extensions%20as%20Python%20Packages.html#Example---Server-extension
- jupyter_server: https://jupyter-server.readthedocs.io/en/latest/developers/extensions.html
"""
web_app = app.web_app
base_url = url_path_join(web_app.settings['base_url'], 'nbfetch')
handlers = [
(url_path_join(base_url, 'api'), SyncHandler),
(base_url, UIHandler),
(url_path_join(web_app.settings['base_url'], 'git-sync'), LegacyGitSyncRedirectHandler),
(url_path_join(web_app.settings['base_url'], 'interact'), LegacyInteractRedirectHandler),
(
url_path_join(base_url, 'static', '(.*)'),
StaticFileHandler,
{'path': os.path.join(os.path.dirname(__file__), 'static')}
)
]
# FIXME: See note on how to stop relying on settings to pass information:
# https://github.com/jupyterhub/nbgitpuller/pull/242#pullrequestreview-854968180
#
web_app.settings['nbapp'] = app
web_app.add_handlers('.*', handlers)


# For compatibility with both notebook and jupyter_server, we define
# _jupyter_server_extension_paths alongside _jupyter_server_extension_points.
#
# "..._paths" is used by notebook and still supported by jupyter_server as of
# jupyter_server 1.13.3, but was renamed to "..._points" in jupyter_server
# 1.0.0.
#
_jupyter_server_extension_paths = _jupyter_server_extension_points

# For compatibility with both notebook and jupyter_server, we define both
# load_jupyter_server_extension alongside _load_jupyter_server_extension.
#
# "load..." is used by notebook and "_load..." is used by jupyter_server.
#

# TODO: DRC 06.06.23 hope we can get away without this...
# load_jupyter_server_extension = _load_jupyter_server_extension
Loading