Permalink
Browse files

update, plus tard fixer d3

  • Loading branch information...
sdpython committed Mar 25, 2015
1 parent 8488feb commit 341b3177e07aa9ee81cdbf84a8c83d63dc8bd971
@@ -1,7 +1,7 @@
{
"metadata": {
"name": "",
"signature": "sha256:82552a77fc15508b0e6f61e35604f742f0efb3f3079f2209633faf225c544978"
"signature": "sha256:dfb3bedf4a1d80bf41bd6b46fd3cc7ae49b398c0393ca643b5f6ef1c8e7e9828"
},
"nbformat": 3,
"nbformat_minor": 0,
@@ -97,13 +97,13 @@
{
"metadata": {},
"output_type": "pyout",
"prompt_number": 3,
"prompt_number": 2,
"text": [
"[]"
]
}
],
"prompt_number": 3
"prompt_number": 2
},
{
"cell_type": "code",
@@ -17,13 +17,16 @@ def local_d3js(default=default_d3js):
@return location of d3.min.js
"""
return default
# return "/static/d3js/d3.v3.min.js"
# the local version does not seem to work
# to be checked later
user = os.environ["HOMEPATH"]
join = os.path.join(user, ".ipython", "nbextensions")
for f in ["d3.v3.min.js", "d3.min.js"]:
ff = os.path.join(join, f)
import ipython
pyt = os.path.dirname(ipython.__file__)
pack = os.path.join(pyt, "html")
for f in ["/static/d3js/d3.min.js",
"/static/d3js/d3.v3.min.js", ]:
ff = os.path.join(pack, f)
if os.path.exists(ff):
return ff
return f
return default

0 comments on commit 341b317

Please sign in to comment.