google-colaboratory

How to increase Google Colab storage

做~自己de王妃 提交于 2020-01-12 16:50:43
问题 I am working on a Dataset of 70gb Earlier using df -BG command I was being shown Filesystem 1G-blocks Used Available Use% Mounted on overlay 359G 6G 335G 2% / tmpfs 7G 0G 7G 0% /dev tmpfs 7G 0G 7G 0% /sys/fs/cgroup /dev/root 2G 1G 1G 44% /opt/bin tmpfs 7G 1G 7G 4% /usr/lib64-nvidia /dev/sda1 365G 8G 358G 3% /etc/hosts shm 1G 0G 1G 0% /dev/shm tmpfs 7G 0G 7G 0% /sys/firmware Suddenly Now it has changed to Filesystem 1G-blocks Used Available Use% Mounted on overlay 40G 5G 33G 14% / tmpfs 7G 0G

Colaboratory: How to install and use on local machine?

妖精的绣舞 提交于 2020-01-12 14:19:26
问题 Google Colab is awesome to work with, but I wish I can run colab notebooks completely locally and offline, just like jupyter notebooks served from the local? How do I do this? Is there a colab package which I can install? EDIT : Some previous answers to the question seem to give methods to access Colab hosted by Google. But that's not what I'm looking for. My question is how do I pip install colab so I can run it locally like jupyter after pip install jupyter . Colab package doesn't seem to

Cannot connect to X server GOOGLE COLAB

老子叫甜甜 提交于 2020-01-11 09:19:42
问题 I am trying to make a prediction using Tensorflow Object Detection API on Google COLAB . Already I successfully completed the training process and Export Inference Graph task. But Problem is when I am going to make a new prediction it's throwing some error log. cannot connect to X server Now I am unable to make a new prediction. Some portion of my error log: totalMemory: 11.17GiB freeMemory: 6.65GiB 2019-02-07 15:08:38.398219: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1512] Adding

Cannot connect to X server GOOGLE COLAB

喜你入骨 提交于 2020-01-11 09:19:06
问题 I am trying to make a prediction using Tensorflow Object Detection API on Google COLAB . Already I successfully completed the training process and Export Inference Graph task. But Problem is when I am going to make a new prediction it's throwing some error log. cannot connect to X server Now I am unable to make a new prediction. Some portion of my error log: totalMemory: 11.17GiB freeMemory: 6.65GiB 2019-02-07 15:08:38.398219: I tensorflow/core/common_runtime/gpu/gpu_device.cc:1512] Adding

Installing a pip package with cupy as a requirement puts install in never ending loop

╄→尐↘猪︶ㄣ 提交于 2020-01-06 04:53:18
问题 I am trying to make a pip package with cupy as one of the requirements, but I include cupy in the requirement, the pip install ends up in a never ending loop. I am trying to install the package on Google Colab, which already has Cupy install, so it should only check if Cupy is already installed and not try to install it again. I made a minimal pip package in github where cupy is the only requirement. https://github.com/Santosh-Gupta/TroubleShootCupyInstall I tried to install it in Google

How to import functions of a jupyter notebook into another jupyter notebook in Google Colab

只愿长相守 提交于 2020-01-05 07:24:11
问题 I would like to import functions of a Jupyter notebook (ending .ipynb) into another Jupyter notebook. Both notebooks are located in Google Drive in the same file. The notebook in which the functions of the other notebook should be imported, is already open in Google Colab. Therefore I'm looking for a code snipped like from xxx.ipynb import functionX I have already installed the PyDrive wrapper and authenticated and created the PyDrive client like follows: !pip install -U -q PyDrive from

What is the executable_path in Google Colaboratory for geckodriver?

烈酒焚心 提交于 2020-01-05 04:27:11
问题 I want to use geckodriver in Google Colaboratory with Selenium Python package. Here is what I tried (I'm not an expert in Ubuntu) !pip install selenium !apt-get update !apt install firefox-geckodriver from selenium.webdriver.firefox.options import Options as FirefoxOptions firefox_options = FirefoxOptions() firefox_options.add_argument("--headless") driver = webdriver.Firefox(executable_path=r'/usr/bin/firefox', options=firefox_options) Here r'/usr/bin/firefox is wrong. I'm confused. What can

How do I get HoloViews to display in Google Colabs notebooks?

江枫思渺然 提交于 2020-01-05 03:47:27
问题 I can't get any HoloViews graphics to display in any Google Colabs notebook. For example even the simple Bokeh example right out fo the HoloViews introduction points = hv.Points(np.random.randn(500,2)) points.hist(num_bins=51, dimension=['x','y']) fails to show anything, without any error being reported, while the same code (and all example code from HoloViews) works fine in local Jupyter notebooks. If I download the Colabs notebook locally and open it, I see the following where I say nothing

Installing jupyter-contrib-nbextension on Google Colab

落爺英雄遲暮 提交于 2020-01-04 15:58:28
问题 I wanted to install hinterland for use in google colab. I followed the installation instructions on official page Basically I did the following steps: !pip install https://github.com/ipython-contrib/jupyter_contrib_nbextensions/tarball/master !jupyter contrib nbextension install --user Now when I want to enable any particular extension say 'hinterland' I do the following: !jupyter nbextension enable /usr/local/lib/python3.6/dist-packages/jupyter_contrib_nbextensions/nbextensions/hinterland

Load xlsx file from drive in colaboratory

三世轮回 提交于 2020-01-03 19:03:12
问题 How can I import MS-excel(.xlsx) file from google drive into colaboratory? excel_file = drive.CreateFile({'id':'some id'}) does work( drive is a pydrive.drive.GoogleDrive object). But, print excel_file.FetchContent() returns None. And excel_file.content() throws: TypeErrorTraceback (most recent call last) in () ----> 1 excel_file.content() TypeError: '_io.BytesIO' object is not callable My intent is (given some valid file 'id') to import it as an io object, which could be read by pandas read