-
Notifications
You must be signed in to change notification settings - Fork 142
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Eric Jang
committed
Dec 13, 2015
1 parent
2cf9516
commit ea8327e
Showing
2 changed files
with
18 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,23 +7,8 @@ | |
author = 'Eric Jang', | ||
author_email = '[email protected]', | ||
url = 'https://github.com/ericjang/tdb', # use the URL to the github repo | ||
download_url = 'https://github.com/ericjang/tdb/tarball/0.1', # I'll explain this in a second | ||
keywords = ['Deep Learning', 'TensorFlow', 'debugging', 'visualization'], # arbitrary keywords | ||
download_url = 'https://github.com/ericjang/tdb/archive/v0.1.tar.gz', | ||
keywords = ['Deep Learning', 'TensorFlow', 'debugging', 'visualization'], | ||
classifiers = [], | ||
scripts=['tdb_install.py'] | ||
) | ||
|
||
# download and unzip bower dependencies into tdb_ext folder | ||
# is there a cleaner way to do this? | ||
import urllib | ||
SOURCE_URL = 'https://github.com/ericjang/tdb/releases/download/bower_deps_0.1/bower_components.zip' | ||
urllib.urlretrieve(SOURCE_URL, 'tdb_ext/bower_components.zip') | ||
|
||
print('extracting bower deps...') | ||
import zipfile | ||
with zipfile.ZipFile('tdb_ext/bower_components.zip', "r") as z: | ||
z.extractall("tdb_ext/") | ||
|
||
# install the notebook extension | ||
import notebook.nbextensions | ||
notebook.nbextensions.install_nbextension('tdb_ext',user=True) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# download and unzip bower dependencies into tdb_ext folder | ||
# is there a cleaner way to do this? | ||
import urllib | ||
SOURCE_URL = 'https://github.com/ericjang/tdb/releases/download/bower_deps_0.1/bower_components.zip' | ||
urllib.urlretrieve(SOURCE_URL, 'tdb_ext/bower_components.zip') | ||
|
||
print('extracting bower deps...') | ||
import zipfile | ||
with zipfile.ZipFile('tdb_ext/bower_components.zip', "r") as z: | ||
z.extractall("tdb_ext/") | ||
|
||
# install the notebook extension | ||
import notebook.nbextensions | ||
notebook.nbextensions.install_nbextension('tdb_ext',user=True) | ||
|