How do you set environment variables in Colab that persist after a runtime restart?
I have tried:
- Changing
~/.bashrc
!echo "LD_LIBRARY_PATH=/usr/local/nvidia/lib:/usr/local/nvidia/lib64:/opt/ros/melodic/lib" >> /etc/environment
- Adding line to
/etc/environment
!echo "source /opt/ros/melodic/setup.bash" >> ~/.bashrc
Questions that don't have the answer:
Setting environment variables in Google Colab : All methods listed here do not persist after runtime restart