I want to plot multiple graphs in a matrix (4,2) and I want that the figures at the left side have their labels in their left side and the opposite for the right side. Additionally, when I plot them in Google Colab, the graphs are all squished together, so I would like to increase their size and the spacing between
Tag: google-colaboratory
Errno 22 Invalid argument: python colab os.mkdir
error I can create this folder directly on the hard drive. But colab cannot. Answer It seems that colab is not allowed to create such names in the first place.
Save failed in Google Colab
I opened a number of tabs at the same time. I think that’s why Google Colab was not able to support the heavy load. The message stated: Save failed This file could not be saved. Please use the File menu to download the .ipynb and upload the notebook to make a copy that includes your recent changes. Is downloading the
How to see complete rows in Google Colab
I am using Google Colab python 3.x and I have a Dataframe as below. I would like to see all cells on each row and column. How can I do this? I tried pd.set_option(‘display.max_columns’, 3000) but it didn’t work. Answer use pd.set_option(‘max_colwidth’, <width>) for column width & pd.set_option(‘max_rows’, <rows>) for number of rows. see https://pandas.pydata.org/pandas-docs/stable/user_guide/options.html
Get LightGBM/ LGBM run with GPU on Google Colabratory
I often run LGBM on Google Colabratory and I just found out this page saying that LGBM it set to CPU by default so you need to set up first. https://medium.com/@am.sharma/lgbm-on-colab-with-gpu-c1c09e83f2af So I executed the code recommended on the page or some other codes recommended on stackoverflow as follows, !git clone –recursive https://github.com/Microsoft/LightGBM %cd LightGBM !mkdir build %cd build !cmake
How to play video on google colab with opencv?
I am working on a project related to object detection using Mask RCNN on google colab. I have a video uploaded to my colab. I want to display it as a video while processing it at the runtime using openCV. I want to do what cv2.VideoCapture(‘FILE_NAME’) does on the local machine. Is there any way to do it? Answer Found
Get total amount of free GPU memory and available using pytorch
I’m using google colab free Gpu’s for experimentation and wanted to know how much GPU Memory available to play around, torch.cuda.memory_allocated() returns the current GPU memory occupied, but how do we determine total available memory using PyTorch. Answer In the recent version of PyTorch you can also use torch.cuda.mem_get_info: https://pytorch.org/docs/stable/generated/torch.cuda.mem_get_info.html#torch.cuda.mem_get_info
Failed installing pyaudio on Google Colab with “ERROR: Failed building wheel for pyaudio”
Trying to install pyaudio on Google Colab but got an error “ERROR: Failed building wheel for pyaudio”. I got this error: Answer I just need to remove libav-tools from apt install and run this command again. Now pyaudio is installed successfully.
Problem with Logging Module in Google Colab
I have a python script with an error handling using the logging module. Although this python script works when imported to google colab, it doesn’t log the errors in the log file. As an experiment, I tried this following script in google colab just to see if it writes log at all To my dismay, it didn’t even create a
Convert ipynb notebook to HTML in Google Colab
I have a Google Colaboratory Notebook for Data Analysis that I want to output as a HTML file as currently not everything loads within the Colab environment such as large Folium Heatmaps. Is it possible to export the notebook as a html file as opposed to the ipynb and py options? Answer Google Colab doesn’t currently have such a feature