1:ImportError: libGL.so.1: cannot open shared object file: No such file or directory
sudo apt update
sudo apt install libgl1-mesa-glx
2:NameError: name 'batch' is not defined
Close ipython and restart it
sudo apt update
sudo apt install libgl1-mesa-glx
Close ipython and restart it