| Download
Jupyter notebook 2013-11-02-103244.ipynb
Project: trial
Path: 2013-11-02-103244.ipynb
Views: 898Kernel: Python 2
In [4]:
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-4-7f2844c0124a> in <module>()
3 import numpy as np
4 from IPython.display import Image
----> 5 from qutip import *
6
7
ImportError: No module named qutip
In [2]:
In [3]:
File "<ipython-input-3-607f96c0d7cd>", line 6
parfor i = 2:y ,
^
SyntaxError: invalid syntax
In [2]:
ERROR: Line magic function `%julia` not found.
2
In [0]:
In [0]:
In [1]:
4
In [4]:
File "<ipython-input-4-f1cf958213e2>", line 6
parfor i=2:y
^
SyntaxError: invalid syntax
In [4]:
File "<ipython-input-4-c0c475d2b10b>", line 4
[x, y] = meshgrid(0:0.1:3);
^
SyntaxError: invalid syntax
In [7]:
File "<ipython-input-6-d771a77862ed>", line 3
x = -2:0.01:2;
^
SyntaxError: invalid syntax
In [0]:
In [2]:
File "<ipython-input-2-6dee538ee987>", line 6
parfor i=2:y
^
SyntaxError: invalid syntax
In [8]:
File "<ipython-input-8-12720de76be8>", line 5
parfor i = 2:y
^
SyntaxError: invalid syntax
In [1]:
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-1-b5400d308764> in <module>()
----> 1 get_ipython().magic(u'load_ext octavemagic')
2 get_ipython().magic(u'octave')
3 octave(2+4)
/projects/sage/sage-6.10/local/lib/python2.7/site-packages/IPython/core/interactiveshell.py in magic(self, arg_s)
2334 magic_name, _, magic_arg_s = arg_s.partition(' ')
2335 magic_name = magic_name.lstrip(prefilter.ESC_MAGIC)
-> 2336 return self.run_line_magic(magic_name, magic_arg_s)
2337
2338 #-------------------------------------------------------------------------
/projects/sage/sage-6.10/local/lib/python2.7/site-packages/IPython/core/interactiveshell.py in run_line_magic(self, magic_name, line)
2255 kwargs['local_ns'] = sys._getframe(stack_depth).f_locals
2256 with self.builtin_trap:
-> 2257 result = fn(*args,**kwargs)
2258 return result
2259
<decorator-gen-64> in load_ext(self, module_str)
/projects/sage/sage-6.10/local/lib/python2.7/site-packages/IPython/core/magic.py 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):
/projects/sage/sage-6.10/local/lib/python2.7/site-packages/IPython/core/magics/extension.py in load_ext(self, module_str)
64 if not module_str:
65 raise UsageError('Missing module name.')
---> 66 res = self.shell.extension_manager.load_extension(module_str)
67
68 if res == 'already loaded':
/projects/sage/sage-6.10/local/lib/python2.7/site-packages/IPython/core/extensions.py in load_extension(self, module_str)
87 if module_str not in sys.modules:
88 with prepended_to_syspath(self.ipython_extension_dir):
---> 89 __import__(module_str)
90 mod = sys.modules[module_str]
91 if self._call_load_ipython_extension(mod):
ImportError: No module named octavemagic
In [11]:
The octavemagic extension is already loaded. To reload it, use:
%reload_ext octavemagic
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
<ipython-input-11-ed68f79a1d1b> in <module>()
1 get_ipython().magic(u'load_ext octavemagic')
2 get_ipython().magic(u'octave')
----> 3 f =sin(x)*x
NameError: name 'x' is not defined
In [2]:
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
<ipython-input-2-412e68b352ae> in <module>()
5 ax = fig.add_axes([0.075, 0.25, 0.9, 0.725], axisbg='#FFFFCC')
6
----> 7 x,y = (x+y)/y
8 ax.plot(x,y,'o')
9 ax.set_xlim(2,23)
NameError: name 'x' is not defined
In [3]:
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
<ipython-input-3-cf1295bf88b8> in <module>()
1
2 pylab
----> 3 x= randn(10000000)
4 y=randn(10000000)+6
5 hist(x, 100)+hist(y,100)
NameError: name 'randn' is not defined
In [1]:
In [2]:
In [6]:
In [1]:
---------------------------------------------------------------------------
IOError Traceback (most recent call last)
<ipython-input-1-0e958eaac575> in <module>()
29 # your system: for more information, see
30 # http://matplotlib.sourceforge.net/api/animation_api.html
---> 31 anim.save('basic_animation.mp4', fps=30, extra_args=['-vcodec', 'libx264'])
32
33 plt.show()
/projects/sage/sage-6.10/local/lib/python2.7/site-packages/matplotlib-1.5.0-py2.7-linux-x86_64.egg/matplotlib/animation.py in save(self, filename, writer, fps, dpi, codec, bitrate, extra_args, metadata, extra_anim, savefig_kwargs)
778 # TODO: Need to see if turning off blit is really necessary
779 anim._draw_next_frame(d, blit=False)
--> 780 writer.grab_frame(**savefig_kwargs)
781
782 # Reconnect signal for first draw if necessary
/projects/sage/sage-6.10/local/lib/python2.7/site-packages/matplotlib-1.5.0-py2.7-linux-x86_64.egg/matplotlib/animation.py in grab_frame(self, **savefig_kwargs)
223 # frame format and dpi.
224 self.fig.savefig(self._frame_sink(), format=self.frame_format,
--> 225 dpi=self.dpi, **savefig_kwargs)
226 except RuntimeError:
227 out, err = self._proc.communicate()
/projects/sage/sage-6.10/local/lib/python2.7/site-packages/matplotlib-1.5.0-py2.7-linux-x86_64.egg/matplotlib/figure.py in savefig(self, *args, **kwargs)
1537 self.set_frameon(frameon)
1538
-> 1539 self.canvas.print_figure(*args, **kwargs)
1540
1541 if frameon:
/projects/sage/sage-6.10/local/lib/python2.7/site-packages/matplotlib-1.5.0-py2.7-linux-x86_64.egg/matplotlib/backend_bases.py in print_figure(self, filename, dpi, facecolor, edgecolor, orientation, format, **kwargs)
2228 orientation=orientation,
2229 bbox_inches_restore=_bbox_inches_restore,
-> 2230 **kwargs)
2231 finally:
2232 if bbox_inches and restore_bbox:
/projects/sage/sage-6.10/local/lib/python2.7/site-packages/matplotlib-1.5.0-py2.7-linux-x86_64.egg/matplotlib/backends/backend_agg.py in print_raw(self, filename_or_obj, *args, **kwargs)
517 close = False
518 try:
--> 519 fileobj.write(renderer._renderer.buffer_rgba())
520 finally:
521 if close:
IOError: [Errno 32] Broken pipe
In [2]:
In [4]:
In [3]:
In [5]:
In [0]:
In [9]:
In [5]:
Populating the interactive namespace from numpy and matplotlib
2019-08-08 15:40:25,317 INFO CLAW: Solution 0 computed for time t=0.000000
2019-08-08 15:40:25,320 INFO CLAW: Solution 1 computed for time t=0.020000
2019-08-08 15:40:25,323 INFO CLAW: Solution 2 computed for time t=0.040000
2019-08-08 15:40:25,326 INFO CLAW: Solution 3 computed for time t=0.060000
2019-08-08 15:40:25,329 INFO CLAW: Solution 4 computed for time t=0.080000
2019-08-08 15:40:25,331 INFO CLAW: Solution 5 computed for time t=0.100000
2019-08-08 15:40:25,334 INFO CLAW: Solution 6 computed for time t=0.120000
2019-08-08 15:40:25,337 INFO CLAW: Solution 7 computed for time t=0.140000
2019-08-08 15:40:25,339 INFO CLAW: Solution 8 computed for time t=0.160000
2019-08-08 15:40:25,342 INFO CLAW: Solution 9 computed for time t=0.180000
2019-08-08 15:40:25,344 INFO CLAW: Solution 10 computed for time t=0.200000
2019-08-08 15:40:25,347 INFO CLAW: Solution 11 computed for time t=0.220000
2019-08-08 15:40:25,350 INFO CLAW: Solution 12 computed for time t=0.240000
2019-08-08 15:40:25,360 INFO CLAW: Solution 13 computed for time t=0.260000
2019-08-08 15:40:25,363 INFO CLAW: Solution 14 computed for time t=0.280000
2019-08-08 15:40:25,366 INFO CLAW: Solution 15 computed for time t=0.300000
2019-08-08 15:40:25,420 INFO CLAW: Solution 16 computed for time t=0.320000
2019-08-08 15:40:25,429 INFO CLAW: Solution 17 computed for time t=0.340000
2019-08-08 15:40:25,432 INFO CLAW: Solution 18 computed for time t=0.360000
2019-08-08 15:40:25,435 INFO CLAW: Solution 19 computed for time t=0.380000
2019-08-08 15:40:25,439 INFO CLAW: Solution 20 computed for time t=0.400000
2019-08-08 15:40:25,442 INFO CLAW: Solution 21 computed for time t=0.420000
2019-08-08 15:40:25,445 INFO CLAW: Solution 22 computed for time t=0.440000
2019-08-08 15:40:25,448 INFO CLAW: Solution 23 computed for time t=0.460000
2019-08-08 15:40:25,452 INFO CLAW: Solution 24 computed for time t=0.480000
2019-08-08 15:40:25,455 INFO CLAW: Solution 25 computed for time t=0.500000
2019-08-08 15:40:25,457 INFO CLAW: Solution 26 computed for time t=0.520000
2019-08-08 15:40:25,460 INFO CLAW: Solution 27 computed for time t=0.540000
2019-08-08 15:40:25,464 INFO CLAW: Solution 28 computed for time t=0.560000
2019-08-08 15:40:25,467 INFO CLAW: Solution 29 computed for time t=0.580000
2019-08-08 15:40:25,470 INFO CLAW: Solution 30 computed for time t=0.600000
2019-08-08 15:40:25,517 INFO CLAW: Solution 31 computed for time t=0.620000
2019-08-08 15:40:25,520 INFO CLAW: Solution 32 computed for time t=0.640000
2019-08-08 15:40:25,524 INFO CLAW: Solution 33 computed for time t=0.660000
2019-08-08 15:40:25,528 INFO CLAW: Solution 34 computed for time t=0.680000
2019-08-08 15:40:25,532 INFO CLAW: Solution 35 computed for time t=0.700000
2019-08-08 15:40:25,536 INFO CLAW: Solution 36 computed for time t=0.720000
2019-08-08 15:40:25,540 INFO CLAW: Solution 37 computed for time t=0.740000
2019-08-08 15:40:25,543 INFO CLAW: Solution 38 computed for time t=0.760000
2019-08-08 15:40:25,546 INFO CLAW: Solution 39 computed for time t=0.780000
2019-08-08 15:40:25,549 INFO CLAW: Solution 40 computed for time t=0.800000
2019-08-08 15:40:25,552 INFO CLAW: Solution 41 computed for time t=0.820000
2019-08-08 15:40:25,556 INFO CLAW: Solution 42 computed for time t=0.840000
2019-08-08 15:40:25,621 INFO CLAW: Solution 43 computed for time t=0.860000
2019-08-08 15:40:25,625 INFO CLAW: Solution 44 computed for time t=0.880000
2019-08-08 15:40:25,628 INFO CLAW: Solution 45 computed for time t=0.900000
2019-08-08 15:40:25,632 INFO CLAW: Solution 46 computed for time t=0.920000
2019-08-08 15:40:25,635 INFO CLAW: Solution 47 computed for time t=0.940000
2019-08-08 15:40:25,654 INFO CLAW: Solution 48 computed for time t=0.960000
2019-08-08 15:40:25,658 INFO CLAW: Solution 49 computed for time t=0.980000
2019-08-08 15:40:25,662 INFO CLAW: Solution 50 computed for time t=1.000000
WARNING: Some output was deleted.
In [12]:
File "<ipython-input-12-e68de4b2a7db>", line 1
python make_animation.py
^
SyntaxError: invalid syntax
In [15]:
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
<ipython-input-15-b9fb7d3dcca5> in <module>()
----> 1 animation_example.ipynb
NameError: name 'animation_example' is not defined
In [30]:
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-30-8b0ca269f505> in <module>()
5 from clawpack import pyclaw
6 from clawpack import riemann
----> 7 from JSAnimation import IPython_display
8 from matplotlib import animation
9 #matplotlib.use("Agg")
ImportError: No module named JSAnimation
Populating the interactive namespace from numpy and matplotlib
In [0]:
In [0]:
In [9]:
/projects/sage/sage-6.10/local/lib/python2.7/site-packages/matplotlib-1.5.0-py2.7-linux-x86_64.egg/matplotlib/__init__.py:1350: UserWarning: This call to matplotlib.use() has no effect
because the backend has already been chosen;
matplotlib.use() must be called *before* pylab, matplotlib.pyplot,
or matplotlib.backends is imported for the first time.
warnings.warn(_use_error_msg)
In [6]:
/usr/local/lib/python2.7/dist-packages/ipykernel/__main__.py:3: UserWarning:
This call to matplotlib.use() has no effect because the backend has already
been chosen; matplotlib.use() must be called *before* pylab, matplotlib.pyplot,
or matplotlib.backends is imported for the first time.
The backend was *originally* set to 'module://ipykernel.pylab.backend_inline' by the following code:
File "/usr/lib/python2.7/runpy.py", line 174, in _run_module_as_main
"__main__", fname, loader, pkg_name)
File "/usr/lib/python2.7/runpy.py", line 72, in _run_code
exec code in run_globals
File "/usr/local/lib/python2.7/dist-packages/ipykernel/__main__.py", line 3, in <module>
app.launch_new_instance()
File "/usr/local/lib/python2.7/dist-packages/traitlets/config/application.py", line 658, in launch_instance
app.start()
File "/usr/local/lib/python2.7/dist-packages/ipykernel/kernelapp.py", line 486, in start
self.io_loop.start()
File "/usr/lib/python2.7/dist-packages/zmq/eventloop/ioloop.py", line 177, in start
super(ZMQIOLoop, self).start()
File "/usr/lib/python2.7/dist-packages/tornado/ioloop.py", line 888, in start
handler_func(fd_obj, events)
File "/usr/lib/python2.7/dist-packages/tornado/stack_context.py", line 277, in null_wrapper
return fn(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/zmq/eventloop/zmqstream.py", line 440, in _handle_events
self._handle_recv()
File "/usr/lib/python2.7/dist-packages/zmq/eventloop/zmqstream.py", line 472, in _handle_recv
self._run_callback(callback, msg)
File "/usr/lib/python2.7/dist-packages/zmq/eventloop/zmqstream.py", line 414, in _run_callback
callback(*args, **kwargs)
File "/usr/lib/python2.7/dist-packages/tornado/stack_context.py", line 277, in null_wrapper
return fn(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/ipykernel/kernelbase.py", line 283, in dispatcher
return self.dispatch_shell(stream, msg)
File "/usr/local/lib/python2.7/dist-packages/ipykernel/kernelbase.py", line 233, in dispatch_shell
handler(stream, idents, msg)
File "/usr/local/lib/python2.7/dist-packages/ipykernel/kernelbase.py", line 399, in execute_request
user_expressions, allow_stdin)
File "/usr/local/lib/python2.7/dist-packages/ipykernel/ipkernel.py", line 208, in do_execute
res = shell.run_cell(code, store_history=store_history, silent=silent)
File "/usr/local/lib/python2.7/dist-packages/ipykernel/zmqshell.py", line 537, in run_cell
return super(ZMQInteractiveShell, self).run_cell(*args, **kwargs)
File "/usr/local/lib/python2.7/dist-packages/IPython/core/interactiveshell.py", line 2714, in run_cell
interactivity=interactivity, compiler=compiler, result=result)
File "/usr/local/lib/python2.7/dist-packages/IPython/core/interactiveshell.py", line 2818, in run_ast_nodes
if self.run_code(code, result):
File "/usr/local/lib/python2.7/dist-packages/IPython/core/interactiveshell.py", line 2878, in run_code
exec(code_obj, self.user_global_ns, self.user_ns)
File "<ipython-input-5-46cdedab5100>", line 1, in <module>
get_ipython().magic(u'pylab inline')
File "/usr/local/lib/python2.7/dist-packages/IPython/core/interactiveshell.py", line 2160, in magic
return self.run_line_magic(magic_name, magic_arg_s)
File "/usr/local/lib/python2.7/dist-packages/IPython/core/interactiveshell.py", line 2081, in run_line_magic
result = fn(*args,**kwargs)
File "</usr/local/lib/python2.7/dist-packages/decorator.pyc:decorator-gen-106>", line 2, in pylab
File "/usr/local/lib/python2.7/dist-packages/IPython/core/magic.py", line 188, in <lambda>
call = lambda f, *a, **k: f(*a, **k)
File "/usr/local/lib/python2.7/dist-packages/IPython/core/magics/pylab.py", line 156, in pylab
gui, backend, clobbered = self.shell.enable_pylab(args.gui, import_all=import_all)
File "/usr/local/lib/python2.7/dist-packages/IPython/core/interactiveshell.py", line 3005, in enable_pylab
gui, backend = self.enable_matplotlib(gui)
File "/usr/local/lib/python2.7/dist-packages/IPython/core/interactiveshell.py", line 2966, in enable_matplotlib
pt.activate_matplotlib(backend)
File "/usr/local/lib/python2.7/dist-packages/IPython/core/pylabtools.py", line 315, in activate_matplotlib
matplotlib.pyplot.switch_backend(backend)
File "/usr/lib/python2.7/dist-packages/matplotlib/pyplot.py", line 232, in switch_backend
matplotlib.use(newbackend, warn=False, force=True)
File "/usr/lib/python2.7/dist-packages/matplotlib/__init__.py", line 1306, in use
reload(sys.modules['matplotlib.backends'])
File "/usr/lib/python2.7/dist-packages/matplotlib/backends/__init__.py", line 14, in <module>
line for line in traceback.format_stack()
app.launch_new_instance()
In [10]:
File "<ipython-input-250-0864ede6667a>", line 33
plt.show()import numpy as np
^
SyntaxError: invalid syntax
File "<ipython-input-10-0864ede6667a>", line 33
plt.show()import numpy as np
^
SyntaxError: invalid syntax
In [7]:
In [11]:
---------------------------------------------------------------------------
IOError Traceback (most recent call last)
<ipython-input-11-b6c57cb0ffc5> in <module>()
135 # your system: for more information, see
136 # http://matplotlib.sourceforge.net/api/animation_api.html
--> 137 ani.save('double_pendulum.mp4', fps=30, extra_args=['-vcodec', 'libx264'])
138
139 plt.show()
/projects/sage/sage-6.10/local/lib/python2.7/site-packages/matplotlib-1.5.0-py2.7-linux-x86_64.egg/matplotlib/animation.py in save(self, filename, writer, fps, dpi, codec, bitrate, extra_args, metadata, extra_anim, savefig_kwargs)
778 # TODO: Need to see if turning off blit is really necessary
779 anim._draw_next_frame(d, blit=False)
--> 780 writer.grab_frame(**savefig_kwargs)
781
782 # Reconnect signal for first draw if necessary
/projects/sage/sage-6.10/local/lib/python2.7/site-packages/matplotlib-1.5.0-py2.7-linux-x86_64.egg/matplotlib/animation.py in grab_frame(self, **savefig_kwargs)
223 # frame format and dpi.
224 self.fig.savefig(self._frame_sink(), format=self.frame_format,
--> 225 dpi=self.dpi, **savefig_kwargs)
226 except RuntimeError:
227 out, err = self._proc.communicate()
/projects/sage/sage-6.10/local/lib/python2.7/site-packages/matplotlib-1.5.0-py2.7-linux-x86_64.egg/matplotlib/figure.py in savefig(self, *args, **kwargs)
1537 self.set_frameon(frameon)
1538
-> 1539 self.canvas.print_figure(*args, **kwargs)
1540
1541 if frameon:
/projects/sage/sage-6.10/local/lib/python2.7/site-packages/matplotlib-1.5.0-py2.7-linux-x86_64.egg/matplotlib/backend_bases.py in print_figure(self, filename, dpi, facecolor, edgecolor, orientation, format, **kwargs)
2228 orientation=orientation,
2229 bbox_inches_restore=_bbox_inches_restore,
-> 2230 **kwargs)
2231 finally:
2232 if bbox_inches and restore_bbox:
/projects/sage/sage-6.10/local/lib/python2.7/site-packages/matplotlib-1.5.0-py2.7-linux-x86_64.egg/matplotlib/backends/backend_agg.py in print_raw(self, filename_or_obj, *args, **kwargs)
517 close = False
518 try:
--> 519 fileobj.write(renderer._renderer.buffer_rgba())
520 finally:
521 if close:
IOError: [Errno 32] Broken pipe
In [40]:
File "<ipython-input-40-cd26f200e280>", line 24
os.system("mencoder 'mf://_tmp*.png' -mf type=png:fps=10
^
SyntaxError: EOL while scanning string literal
In [12]:
File "<ipython-input-12-722b7c2a9e9a>", line 43
ef gen_dates(nc,vname,past,box,title):
^
SyntaxError: invalid syntax
In [43]:
---------------------------------------------------------------------------
IOError Traceback (most recent call last)
<ipython-input-43-caeef17811a7> in <module>()
1 from IPython import parallel
----> 2 rc = parallel.Client()
3 rc.block=True
4 rc.ids
5 view=rc.load_balanced_view()
/usr/local/sage/sage-6.2/local/lib/python2.7/site-packages/IPython/parallel/client/client.py in __init__(self, url_file, profile, profile_dir, ipython_dir, context, debug, sshserver, sshkey, password, paramiko, timeout, cluster_id, **extra_args)
407 )
408
--> 409 with open(url_file) as f:
410 cfg = json.load(f)
411
IOError: [Errno 2] No such file or directory: u'/projects/d2667bf4-a57b-4454-9956-d8d176cb2d03/.sage/ipython-1.2.1/profile_default/security/ipcontroller-client.json'
In [1]:
File "<ipython-input-1-d7a6b27299a3>", line 6
parfor i = 2:y
^
SyntaxError: invalid syntax
In [13]:
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
<ipython-input-13-6f6e74282130> in <module>()
12
13
---> 14 ICON_DIR = os.path.join(os.path.dirname(__file__), 'icons')
15
16
NameError: name '__file__' is not defined
In [1]:
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-1-565bfe0254cb> in <module>()
7 from matplotlib import animation
8
----> 9 from JSAnimation import HTMLWriter
10
11 N_trajectories = 20
ImportError: No module named JSAnimation
In [16]:
warning: .cache/ipython/cython/_cython_magic_cf41ac5c8402992e2cedd6a88163a947.pyx:1:0: Unreachable code
Error compiling Cython file:
------------------------------------------------------------
...
def cython_sum ( n ):
from math import sin
return sum ( sin ( i ) for i in xrange (1 , n +1))
^
------------------------------------------------------------
.cache/ipython/cython/_cython_magic_cf41ac5c8402992e2cedd6a88163a947.pyx:3:0: Return not inside a function body
Error compiling Cython file:
------------------------------------------------------------
...
def cython_sum ( n ):
from math import sin
return sum ( sin ( i ) for i in xrange (1 , n +1))
^
------------------------------------------------------------
.cache/ipython/cython/_cython_magic_cf41ac5c8402992e2cedd6a88163a947.pyx:3:46: undeclared name not builtin: n
Error compiling Cython file:
------------------------------------------------------------
...
def cython_sum ( n ):
from math import sin
return sum ( sin ( i ) for i in xrange (1 , n +1))
^
------------------------------------------------------------
.cache/ipython/cython/_cython_magic_cf41ac5c8402992e2cedd6a88163a947.pyx:3:17: undeclared name not builtin: sin
Error compiling Cython file:
------------------------------------------------------------
...
def cython_sum ( n ):
from math import sin
return sum ( sin ( i ) for i in xrange (1 , n +1))
^
------------------------------------------------------------
.cache/ipython/cython/_cython_magic_cf41ac5c8402992e2cedd6a88163a947.pyx:3:11: Compiler crash in OptimizeBuiltinCalls
ModuleNode.body = StatListNode(_cython_magic_cf41ac5c8402992e2cedd6a88163a947.pyx:1:0,
is_terminator = True)
StatListNode.stats[2] = ReturnStatNode(_cython_magic_cf41ac5c8402992e2cedd6a88163a947.pyx:3:0,
is_terminator = True)
ReturnStatNode.value = SimpleCallNode(_cython_magic_cf41ac5c8402992e2cedd6a88163a947.pyx:3:11,
result_is_used = True,
use_managed_ref = True)
Compiler crash traceback from this point on:
File "Visitor.py", line 170, in Cython.Compiler.Visitor.TreeVisitor._visit (Cython/Compiler/Visitor.c:4284)
File "Visitor.py", line 488, in Cython.Compiler.Visitor.MethodDispatcherTransform.visit_SimpleCallNode (Cython/Compiler/Visitor.c:9692)
AttributeError: 'NoneType' object has no attribute 'is_pyobject'
In [3]:
In [246]:
ERROR: Cell magic `%%cython` not found.
In [0]:
In [8]:
UsageError: Cell magic `%%cython` not found.
In [0]:
In [245]:
ERROR: Cell magic `%%cython` not found.
In [0]:
In [0]:
In [0]:
In [8]:
array([ -8.99620797e-16 -4.40687738e-17j,
1.60000000e+01 -7.25077679e-15j,
6.65262409e-16 +8.32123684e-17j,
-2.21867130e-31 -4.74809032e-17j,
5.99180286e-16 -6.54691437e-16j,
3.33066907e-15 +2.29714122e-15j,
6.00227049e-16 +1.10377247e-15j,
5.54667824e-31 +5.32749612e-16j,
2.10602227e-16 +6.69535287e-17j,
0.00000000e+00 +2.07509661e-15j,
-1.98288444e-16 +1.61716991e-16j,
2.21867130e-31 +2.92410263e-16j,
-4.00020436e-16 +1.12166540e-15j,
-3.33066907e-15 +1.40896280e-15j,
-5.77342295e-16 -8.58843107e-16j, -5.54667824e-31 -2.87820252e-16j])
In [11]:
File "<ipython-input-11-df4cd182b04d>", line 2
t = np.arange(2,256)
^
IndentationError: unexpected indent
In [3]:
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
<ipython-input-3-714670614bbd> in <module>()
----> 1 a = FastFourierTransform(16)
2 for i in range(16): a[i] = (random(),random())
3 A = plot(a)
4 B = plot(a, style='polar')
5 type(A)
NameError: name 'FastFourierTransform' is not defined
In [8]:
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
<ipython-input-8-c5e2a0d2fb58> in <module>()
----> 1 a = FFT(8)
2 a
NameError: name 'FFT' is not defined
In [271]:
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-271-a7eacf315851> in <module>()
----> 1 import pygsl
ImportError: No module named pygsl
In [7]:
---------------------------------------------------------------------------
ImportError Traceback (most recent call last)
<ipython-input-7-edca2285ce09> in <module>()
1 import numpy as np
----> 2 import pygsl.monte as monte
3 import pygsl.rng
4
5 def g(xx, params):
ImportError: No module named pygsl.monte
In [7]:
2
In [3]:
NameErrorTraceback (most recent call last)
<ipython-input-3-05d89d73a739> in <module>()
1 w=99
----> 2 is_prime(w)
3 N=w
4 s=5
5
NameError: name 'is_prime' is not defined
In [0]: