I personally in such cases just record my session from shell_plus
to file, and then call this file from within shell_plus
after manually reloading. Both is possible with iPython, which is used by shell_plus
by default. (If you don't have iPython installed, just pip install ipython
and it should automatically work after that, I think).
The recorded script is also often nice to keep as part of the project, as it's basically a small integration test. With minor modifications it could be executed outside shell as a standalone script, which is convenient.
If you definitely want to use reloading, I think this answer might be able to help you: