I use IPython and the %bookmark magic command but the limitation is that I need to exit the IPython shell to activate a virtual environment and then relaunch IPython.
Is there a way, built into IPython, a third-party package, or a known hack to let me activate the environment without exiting the IPython shell?
Actual workflow
# within ipython shell
exit
# bash shell
cd path/of/my/project
poetry shell # or pipenv shell
ipython
Intended workflow
%cd -b demographics
# activate venv
import package # from that env