Unexpected exception formatting exception. Falling back to standard exception
Traceback (most recent call last):
File "/home/sandbox/.local/lib/python3.11/site-packages/IPython/core/interactiveshell.py", line 3130, in _run_cell
result = runner(coro)
^^^^^^^^^^^^
File "/home/sandbox/.local/lib/python3.11/site-packages/IPython/core/async_helpers.py", line 128, in _pseudo_sync_runner
coro.send(None)
File "/home/sandbox/.local/lib/python3.11/site-packages/IPython/core/interactiveshell.py", line 3301, in run_cell_async
cell_name = compiler.cache(cell, self.execution_count, raw_code=raw_cell)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sandbox/.local/lib/python3.11/site-packages/IPython/core/compilerop.py", line 155, in cache
name = self.get_code_name(raw_code, transformed_code, number)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sandbox/.local/lib/python3.11/site-packages/ipykernel/compiler.py", line 105, in get_code_name
return get_file_name(raw_code)
^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sandbox/.local/lib/python3.11/site-packages/ipykernel/compiler.py", line 90, in get_file_name
name = murmur2_x86(code, get_tmp_hash_seed())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sandbox/.local/lib/python3.11/site-packages/ipykernel/compiler.py", line 12, in murmur2_x86
data = [chr(d) for d in str.encode(data, "utf8")]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sandbox/.local/lib/python3.11/site-packages/ipykernel/compiler.py", line 12, in <listcomp>
data = [chr(d) for d in str.encode(data, "utf8")]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
MemoryError
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/sandbox/.local/lib/python3.11/site-packages/IPython/core/interactiveshell.py", line 2168, in showtraceback
stb = self.InteractiveTB.structured_traceback(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sandbox/.local/lib/python3.11/site-packages/IPython/core/ultratb.py", line 1457, in structured_traceback
return FormattedTB.structured_traceback(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sandbox/.local/lib/python3.11/site-packages/IPython/core/ultratb.py", line 1348, in structured_traceback
return VerboseTB.structured_traceback(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sandbox/.local/lib/python3.11/site-packages/IPython/core/ultratb.py", line 1195, in structured_traceback
formatted_exception = self.format_exception_as_a_whole(etype, evalue, etb, number_of_lines_of_context,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sandbox/.local/lib/python3.11/site-packages/IPython/core/ultratb.py", line 1085, in format_exception_as_a_whole
self.get_records(etb, number_of_lines_of_context, tb_offset) if etb else []
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sandbox/.local/lib/python3.11/site-packages/IPython/core/ultratb.py", line 1182, in get_records
res = list(stack_data.FrameInfo.stack_data(etb, options=options))[tb_offset:]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sandbox/.local/lib/python3.11/site-packages/stack_data/core.py", line 597, in stack_data
yield from collapse_repeated(
File "/home/sandbox/.local/lib/python3.11/site-packages/stack_data/utils.py", line 83, in collapse_repeated
yield from map(mapper, original_group)
File "/home/sandbox/.local/lib/python3.11/site-packages/stack_data/core.py", line 587, in mapper
return cls(f, options)
^^^^^^^^^^^^^^^
File "/home/sandbox/.local/lib/python3.11/site-packages/stack_data/core.py", line 551, in __init__
self.executing = Source.executing(frame_or_tb)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sandbox/.local/lib/python3.11/site-packages/executing/executing.py", line 264, in executing
source = cls.for_frame(frame)
^^^^^^^^^^^^^^^^^^^^
File "/home/sandbox/.local/lib/python3.11/site-packages/executing/executing.py", line 183, in for_frame
return cls.for_filename(frame.f_code.co_filename, frame.f_globals or {}, use_cache)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/sandbox/.local/lib/python3.11/site-packages/executing/executing.py", line 212, in for_filename
return cls._for_filename_and_lines(filename, tuple(lines))
^^^^^^^^^^^^
MemoryError