Try Appmode

In [ ]:
!sudo -E pip install appmode
!sudo -E jupyter nbextension     enable --py --sys-prefix appmode
!sudo -E jupyter serverextension enable --py --sys-prefix appmode

Try NBGitPuller

In [ ]:
!sudo -E pip install -U nbgitpuller
In [ ]:
from nbgitpuller import pull
pull.__file__
In [ ]:
from nbgitpuller import handlers
handlers.__file__

Change repo_url to clone_cmd

In [ ]:
!cd ~ && git clone --branch change-to-clone-command https://github.com/seii-saintway/nbgitpuller.git
In [ ]:
!sudo cp ~/nbgitpuller/nbgitpuller/pull.py /opt/tljh/user/lib/python3.6/site-packages/nbgitpuller/pull.py
!sudo cp ~/nbgitpuller/nbgitpuller/handlers.py /opt/tljh/user/lib/python3.6/site-packages/nbgitpuller/handlers.py
  • https://jhub.name
  • git clone https://github.com/seii-saintway/nbgitpuller
  • change-to-clone-command
  • binder/link_generator.ipynb
  • app

https://jhub.name/hub/user-redirect/git-pull?repo=git+clone+https%3A%2F%2Fgithub.com%2Fseii-saintway%2Fnbgitpuller&branch=change-to-clone-command&subPath=binder%2Flink_generator.ipynb&app=app

Installation

In [ ]:
!sudo -E pip install git+https://github.com/seii-saintway/nbgitpuller@change-to-clone-command

Comments

2019-10-08