I want to open an interactive REPL in my zsh functions (mainly for debugging purposes); Exactly like IPython.embed(). One way to do something similar is to simply invoke another instance of zsh, but this solution doesn’t make available the unexported variables in scope.