Skip to content

Commit

Permalink
Add notebook stripping scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
basicthinker committed Sep 6, 2017
1 parent ad5f2b6 commit be54cde
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.ipynb filter=nbstrip_full
8 changes: 8 additions & 0 deletions .gitconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[filter "nbstrip_full"]
clean = "jq --indent 1 \
'(.cells[] | select(has(\"outputs\")) | .outputs) = [] \
| (.cells[] | select(has(\"execution_count\")) | .execution_count) = null \
| .cells[].metadata = {} \
'"
smudge = cat
required = true
10 changes: 8 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ Note: Python 3.5+ is required.

Install packages dicttoxml gitpython lxml networkx numpy openpyxl statistics scipy matplotlib: <https://packaging.python.org/installing/>

E.g., Ubuntu:
E.g., on Ubuntu:
```
sudo apt install -y python3 python3-pip
sudo -H pip3 install dicttoxml gitpython lxml networkx numpy openpyxl statistics scipy matplotlib
Expand All @@ -34,12 +34,18 @@ cd misc/

Reference <http://jupyter.org/install.html>.

E.g., Ubuntu:
E.g., on Ubuntu:
```
sudo -H pip3 install --upgrade pip
sudo -H pip3 install jupyter
```

To fit notebooks well in git, install jq and run gitconfig.sh. E.g., on Ubuntu:
```
sudo apt install -y jq
./gitconfig.sh
```

3. Install TensorFlow

Follow this tutorial: https://www.tensorflow.org/install/install_sources.
Expand Down
3 changes: 3 additions & 0 deletions gitconfig.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash

git config --local include.path ../.gitconfig

0 comments on commit be54cde

Please sign in to comment.