Open MrFahad opened 5 years ago
NOTE: The data folder carries images .jpg etc
make sure that u are not using cv2.imshow,cv2.destroyallwindows that solves the problem...........
More explanation in this link https://stackoverflow.com/questions/54577083/cannot-connect-to-x-server-google-colab
Colab is over a server so it will not e able to show any window and hence it shuts it down. I had the same issue but we need to find how we can do it without opening another window frame.
Hi,
While working over the google colab I am getting this error "cannot connect to X server". I have placed all my folder in google drive and importing from as:
from google.colab import drive drive.mount('/content/gdrive')
while running my file
!python abc.py -i data
I have tried all this in TWO different notebooks.
1 - jupyter notebook 2 - Matplotlib notebook