Skip to content

Instantly share code, notes, and snippets.

@dhermes
Created November 7, 2014 00:53
Show Gist options
  • Save dhermes/c58e404f47c8d3041c5f to your computer and use it in GitHub Desktop.
Save dhermes/c58e404f47c8d3041c5f to your computer and use it in GitHub Desktop.
---------------------------------------------------------------------------
ValueError Traceback (most recent call last)
<ipython-input-9-c32065d02054> in <module>()
----> 1 get_ipython().run_cell_magic(u'octave', u'-s 500,500', u'b = [0.292893218813452 0.585786437626905 0.292893218813452];\na = [1 0 0.171572875253810];\nfreqz(b, a, 32);')
/usr/local/lib/python2.7/dist-packages/IPython/core/interactiveshell.pyc in run_cell_magic(self, magic_name, line, cell)
2160 magic_arg_s = self.var_expand(line, stack_depth)
2161 with self.builtin_trap:
-> 2162 result = fn(magic_arg_s, cell)
2163 return result
2164
/usr/local/lib/python2.7/dist-packages/oct2py/ipython/octavemagic.pyc in octave(self, line, cell, local_ns)
/usr/local/lib/python2.7/dist-packages/IPython/core/magic.pyc in <lambda>(f, *a, **k)
191 # but it's overkill for just that one bit of state.
192 def magic_deco(arg):
--> 193 call = lambda f, *a, **k: f(*a, **k)
194
195 if callable(arg):
/usr/local/lib/python2.7/dist-packages/oct2py/ipython/octavemagic.pyc in octave(self, line, cell, local_ns)
305 plot_name=plot_name,
306 verbose=False,
--> 307 return_both=True)
308 except oct2py.Oct2PyError as exception:
309 msg = str(exception)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment