How to have mutiple python virtual environments in an aws EMR cluster . The users will be using Zeppelin or Jupyter for each projects and each project will have different set of python libraries or python versions
You can write a bash script to loop over a map-like structure containing the name of your virtual environment and its libraries (it'll make things easier to maintain if you have multiple projects). The body of the loop will consist of:
virtualenv project_foosource project_foo/bin/activatepython -m ipykernel install --user --name=project_foodeactivateNow use Bootstrap Actions to run the script on startup. You should be able to see your virtual environments from the Jupyter's Launcher.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With