In Ubuntu, after I installed
pip install https://github.com/ipython-contrib/jupyter_contrib_nbextensions/tarball/master
my command prompt switched from
I understand that this is a virtual environment, but when I deactivated it,
PATH was different and it didn't recognize many of the programs that I usually run.
Because I don't really know how to work with virtual environments, I simply uninstalled and reinstalled Anaconda in order to fix this. It worked.
But now I'd like to better understand what happened. As far as I can tell, the "issue" was caused by my
.bash_profile whose content is (both before and after installing
if command -v pyenv 1>/dev/null 2>&1; then eval "$(pyenv init -)" fi
I don't need to understand every little detail of this script. Here are my questions:
- On a high-level what is this script doing?
- How do I make it so that when it makes me enter a virtual environment, when I leave it I can still access the usual Anaconda programs that I run?
- What does installing
nbextensionsdo to my system that makes it change the way that that script behaves?