Segmentation fault with PyTorch 2.3

Yes, it seems to have at least a dependency on IPython. You could run it via:

gdb --args ipython ...
...
run
...
bt

to get the backtrace after it segfaults.