google-colaboratory

Google Colaboratory vs Google Datalab. How are they different?

本小妞迷上赌 提交于 2019-12-04 08:06:30
问题 I understand both are built over Jupyter noteboooks but run in cloud. Why do we have two then? 回答1: Jupyter is the only thing these two services have in common. Colaboratory is a tool for education and research. It doesn’t require any setup or other Google products to be used (although notebooks are stored in Google Drive). It’s intended primarily for interactive use and long-running background computations may be stopped. It currently only supports Python. Cloud Datalab allows you to analyse

pynvrtc on Google Colab: libnvrtc.so not found

橙三吉。 提交于 2019-12-04 05:06:49
问题 In a Google Colab notebook, I am installing a python package which uses pynvrtc to compile some CUDA codes. I got the error: OSError: libnvrtc.so: cannot open shared object file: No such file or directory I run !find / -name 'libnvrtc.*' and get /usr/lib/x86_64-linux-gnu/libnvrtc.so.8.0.61 /usr/lib/x86_64-linux-gnu/libnvrtc.so.8.0 My question is: Do I suppose to have libnvrtc.so in my Google Colab system? How can I get around if I just have libnvrtc.so.8.0 ? 回答1: Here is what I did to make

Colaboratory: How to install and use on local machine?

…衆ロ難τιáo~ 提交于 2019-12-04 02:52:16
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 exist, so if I want it, what do I do to install it from the source? From this Github link , it seems

How can I insert path (environmental variable) for geckodriver in goggle colab?

家住魔仙堡 提交于 2019-12-03 21:54:37
问题 I want to run selenium in Google Colab through gecko driver, but it told me: executable needs to be in PATH I uploaded firefox and gecko driver in Google Colab and copied gecko driver's path. The code worked well on my PC. firefox and gecko driver in google clob, but an error occurred. from selenium import webdriver from selenium.webdriver.support.ui import WebDriverWait as wait from selenium.webdriver.support import expected_conditions as EC from selenium.webdriver.common.keys import Keys

Interactive matplotlib figures in Google Colab

本小妞迷上赌 提交于 2019-12-03 16:56:14
问题 Normally in a jupyter notebook I would use %matplotlib notebook magic to display an interactive window, however this doesn't seem to work with google colab. Is there a solution, or is it not possible to display interactive windows in google colab? 回答1: Below is an example of creating interactive iplot() in Plotly and cufflinks() on Google Colab Notebook. Used functions and suggestions from the answer [1, 2] The key seems to be to include configure_plotly_browser_state() in the cell that does

Error while importing Kaggle dataset on Colab

不问归期 提交于 2019-12-03 15:35:33
When executing the following lines, !pip install kaggle !kaggle competitions download -c dogs-vs-cats -p /content/ I got the following error messages, Traceback (most recent call last): File "/usr/local/bin/kaggle", line 7, in <module> from kaggle.cli import main File "/usr/local/lib/python3.6/dist-packages/kaggle/__init__.py", line 23, in <module> api.authenticate() File "/usr/local/lib/python3.6/dist-packages/kaggle/api/kaggle_api_extended.py", line 109, in authenticate self._load_config(config_data) File "/usr/local/lib/python3.6/dist-packages/kaggle/api/kaggle_api_extended.py", line 151,

How to upload and save large data to Google Colaboratory from local drive?

a 夏天 提交于 2019-12-03 15:04:17
I have downloaded large image training data as zip from this Kaggle link https://www.kaggle.com/c/yelp-restaurant-photo-classification/data How do I efficiently achieve the following? Create a project folder in Google Colaboratory Upload zip file to project folder unzip the files Thanks EDIT: I tried the below code but its crashing for my large zip file. Is there a better/efficient way to do this where I can just specify the location of the file in local drive? from google.colab import files uploaded = files.upload() for fn in uploaded.keys(): print('User uploaded file "{name}" with length

LaTeX equations do not render in google Colaboratory when using IPython.display.Latex

五迷三道 提交于 2019-12-03 14:33:13
In a regular jupyter notebook, running, for example, the following: from IPython.display import display, Math, Latex display(Math(r'F(k) = \int_{-\infty}^{\infty} f(x) e^{2\pi i k} dx')) produces an equation rendered in LaTeX (via Mathjax). Even though LaTeX works fine in markdown cells, LaTeX equations produced as above do not seem to render in Google Colaboratory. The same happens to the output of functions for example from qutip, which would normally render in latex (for example, qutip.basis(2, 0) would normally render in latex, but doesn't in Colaboratory). Why does this happen? Is there a

How to run google colab from terminal?

陌路散爱 提交于 2019-12-03 13:40:34
问题 I am running a deep learning model in google colab and it works fine with colab notebook. The problem is as the training of deep learning model progresses in the cloud colab notebook, my own computers cpu and memory usage also starts to go up. The RAM usage for the colab notebook browser window alone is more than 500 MB and it keeps climbing as the training progresses. In google colab we have to keep open our running notebooks to train the model else we will lose all our previous work and it

How to run a downloaded Jupyter notebook on Google Colaboratory?

随声附和 提交于 2019-12-03 12:27:17
问题 I am using Google Colaboratory & github. I create a new Google Colab notebook, and I clone my github project into it using a simple !git clone <github_link> in the notebook. Now, I have a Jupyter notebook in my github project that I need to run on Google Colab. How do I do that? 回答1: There is not a real need of downloading the notebook. If you already have your Notebook in a GitHub repo, the only thing you need to do is: Open your Notebook file on GitHub in any browser (So the URL ends in