Skip to content

Commit e5bac01

Browse files
authored
Merge pull request #18 from yacchin1205/fix/cdn
Fix installation problem and Add (minimal) README
2 parents e1fc9a4 + 55ba4d5 commit e5bac01

File tree

3 files changed

+21
-1
lines changed

3 files changed

+21
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.DS_Store
22
nbextension/lc_notebook_diff/nbextension/jupyter-notebook-diff.*
3+
nbextension/lc_notebook_diff/nbextension/diff_match_patch.js
34
build
45
dist
56
*.egg-info

README.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# Jupyter-LC\_notebook\_diff [![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/NII-cloud-operation/Jupyter-LC_notebook_diff/master)
2+
3+
Jupyter-LC\_notebook\_diff is an extension that compares two or three Jupyter notebooks.
4+
5+
6+
## Prerequisite
7+
8+
* Jupyter Notebook 5.x or 6.x
9+
10+
## Installation
11+
12+
$ pip install git+https://github.com/NII-cloud-operation/Jupyter-LC_notebook_diff.git
13+
14+
To use the extension you will also need to install and enable, you can use Jupyter subcommand:
15+
16+
$ jupyter nbextension install --py lc_notebook_diff
17+
$ jupyter nbextension enable --py lc_notebook_diff
18+
19+
then restart Jupyter notebook.

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
os.path.join(BASE, 'lc_notebook_diff', 'nbextension'))
2121

2222
with open(os.path.join(BASE, 'lc_notebook_diff', 'nbextension', 'diff_match_patch.js'), 'wb') as f:
23-
f.write(urlopen('https://cdnjs.cloudflare.com/ajax/libs/diff_match_patch/20121119/diff_match_patch.js').read())
23+
f.write(urlopen('https://github.com/google/diff-match-patch/raw/master/javascript/diff_match_patch.js').read())
2424

2525
setup_args = dict (name='lc-notebook-diff',
2626
version=VERSION_NS['__version__'],

0 commit comments

Comments
 (0)