-
Open a terminal
-
Navigate to this folder, then:
pip install . # may require root jupyter nbextension install vcs_integration --symlink jupyter nbextension enable vcs_integration/nbextensions/notebook/main jupyter nbextension enable vcs_integration/nbextensions/tree/main jupyter serverextension enable --py vcs_integration --system
-
Test the installation
- Frontend extension:
- Open a notebook
- open Developer Tools of the browser (usually Ctrl + Shift + I or F12)
- check console output for:
[VCS Integration] Init
- Server extension:
- Start jupyter notebook (via terminal)
- check the output for:
[VCS Integration] Enabled server extension
- Frontend extension:
-
Start jupyter inside conda environment
conda create -n test source activate test # windows: "activate test" instead jupyter notebook
-
Open a notebook
-
create a new cell
%cd /home/juergens/dev/jupyter-extensions/vcs_integration # change path accordingly !pip install -e . !jupyter nbextension install vcs_integration --sys-prefix !jupyter nbextension enable vcs_integration/nbextensions/notebook/main !jupyter nbextension enable vcs_integration/nbextensions/tree/main !jupyter serverextension enable --py vcs_integration --sys-prefix %cd -
-
Execute cell
-
Reload site (F5 in browser). No need to restart server
!jupyter serverextension disable --py vcs_integration
!jupyter nbextension disable vcs_integration/nbextensions/tree/main
!jupyter nbextension disable vcs_integration/nbextensions/notebook/main
!jupyter nbextension uninstall vcs_integration
!yes|pip uninstall vcs_integration
- Open a terminal
- Navigate to where you would like to have the test repositories
- Create the central repository:
mkdir central_repo && cd central_repo && git init --bare
- Create local copies:
git clone /path/to/central_repo person_(a|b|c|...)
- Now you can push / pull to / from the central repository
- e.g. person_1 pushes and person_2 pulls
- inside person_1: git push
- inside person_2: git pull
- Save before commiting?
- one menu just for git branch (shows current by default, on click shows all possible)
- 1 vcs = 1 module (e.g git or svn)
- let user choose the vcs (or autodetect?)