>>> %Run TP-002-p286-Une-seconde-marche-aleatoire.py
ERROR thonny.backend: PROBLEM WITH THONNY'S BACK-END
Traceback (most recent call last):
File "C:\Users\pzorba75\AppData\Local\Programs\Thonny\lib\site-packages\thonny\plugins\cpython\cpython_backend.py", line 1238, in wrapper
result = method(self, *args, **kwargs)
File "C:\Users\pzorba75\AppData\Local\Programs\Thonny\lib\site-packages\thonny\plugins\cpython\cpython_backend.py", line 1225, in wrapper
return method(self, *args, **kwargs)
File "C:\Users\pzorba75\AppData\Local\Programs\Thonny\lib\site-packages\thonny\plugins\cpython\cpython_backend.py", line 1295, in _execute_prepared_user_code
exec(statements, global_vars)
File "C:\Users\pzorba75\Documents\M-Mathématiques\1-Spé\Barbazo\Chap-09-Probabilités-conditionnelles\TP-002-p286-Une-seconde-marche-aleatoire.py", line 30, in <module>
plt.plot(X,Y,marker=' ',color='blue')
File "C:\Users\pzorba75\AppData\Roaming\Python\Python37\site-packages\matplotlib\pyplot.py", line 2769, in plot
**({"data": data} if data is not None else {}), **kwargs)
File "C:\Users\pzorba75\AppData\Roaming\Python\Python37\site-packages\matplotlib\axes\_axes.py", line 1637, in plot
self.add_line(line)
File "C:\Users\pzorba75\AppData\Roaming\Python\Python37\site-packages\matplotlib\axes\_base.py", line 2288, in add_line
self._update_line_limits(line)
File "C:\Users\pzorba75\AppData\Roaming\Python\Python37\site-packages\matplotlib\axes\_base.py", line 2311, in _update_line_limits
path = line.get_path()
File "C:\Users\pzorba75\AppData\Roaming\Python\Python37\site-packages\matplotlib\lines.py", line 999, in get_path
self.recache()
File "C:\Users\pzorba75\AppData\Roaming\Python\Python37\site-packages\matplotlib\lines.py", line 661, in recache
self._xy = np.column_stack(np.broadcast_arrays(x, y)).astype(float)
File "<__array_function__ internals>", line 6, in column_stack
File "C:\Users\pzorba75\AppData\Roaming\Python\Python37\site-packages\numpy\lib\shape_base.py", line 656, in column_stack
return _nx.concatenate(arrays, 1)
File "<__array_function__ internals>", line 6, in concatenate
numpy.core._exceptions._ArrayMemoryError: Unable to allocate 1.32 MiB for an array with shape (86401, 2) and data type float64
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:\Users\pzorba75\AppData\Local\Programs\Thonny\lib\site-packages\thonny\plugins\cpython\cpython_backend.py", line 1283, in execute_source
return self._execute_prepared_user_code(statements, global_vars)
File "C:\Users\pzorba75\AppData\Local\Programs\Thonny\lib\site-packages\thonny\plugins\cpython\cpython_backend.py", line 1243, in wrapper
return {"user_exception": self._backend._prepare_user_exception()}
File "C:\Users\pzorba75\AppData\Local\Programs\Thonny\lib\site-packages\thonny\plugins\cpython\cpython_backend.py", line 1076, in _prepare_user_exception
"stack": self._export_stack(last_frame),
File "C:\Users\pzorba75\AppData\Local\Programs\Thonny\lib\site-packages\thonny\plugins\cpython\cpython_backend.py", line 968, in _export_stack
module_name = system_frame.f_globals["__name__"]
KeyError: '__name__'
>>>
Partager