z-m-k / ipyD3

GNU General Public License v3.0
25 stars 4 forks source link

OSError while running ipyD3sample.ipynb example #1

Closed Pellarin closed 11 years ago

Pellarin commented 11 years ago

while running this cell (and all subsequent cells)

d3.addVar(data=np.random.randn(1000))
html=d3.render(mode=('show','html'))
display(html)

in ipython 1.1.0 notebook, I get:


---------------------------------------------------------------------------
OSError                                   Traceback (most recent call last)
<ipython-input-5-3231fc160e0c> in <module>()
      1 d3.addVar(data=np.random.randn(1000))
----> 2 html=d3.render(mode=('show','html'))
      3 display(html)

/Users/riccardopellarin/Downloads/ipyD3-master/ipyD3.py in render(self, mode, fileName, renderTime)
    771             phantomJsArgs = (self.phantomExec, self.keepTempDir+'//ipyD3_temp.js', self.keepTempDir+'//ipyD3_temp.htm')
    772 
--> 773         phantomJsProc = subprocess.Popen( phantomJsArgs,  stdout = subprocess.PIPE, stderr = subprocess.PIPE)
    774 
    775         html = ''

/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py in __init__(self, args, bufsize, executable, stdin, stdout, stderr, preexec_fn, close_fds, shell, cwd, env, universal_newlines, startupinfo, creationflags)
    677                             p2cread, p2cwrite,
    678                             c2pread, c2pwrite,
--> 679                             errread, errwrite)
    680 
    681         if mswindows:

/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/subprocess.py in _execute_child(self, args, executable, preexec_fn, close_fds, cwd, env, universal_newlines, startupinfo, creationflags, shell, p2cread, p2cwrite, c2pread, c2pwrite, errread, errwrite)
   1226                     if fd is not None:
   1227                         os.close(fd)
-> 1228                 raise child_exception
   1229 
   1230 

OSError: [Errno 2] No such file or directory
Pellarin commented 11 years ago

phantomjs was not installed :)