google-colaboratory

“Unable to connect to the local runtime” in google colab

自闭症网瘾萝莉.ら 提交于 2020-06-26 11:07:21
问题 I'm trying to connect local run time but it's not connecting, I used the troubleshooting dialog following commands: pip install jupyter_http_over_ws jupyter serverextension enable --py jupyter_http_over_ws jupyter notebook \ --NotebookApp.allow_origin='https://colab.research.google.com --port=8888 \--NotebookApp.port_retries=0 Have tried the same above steps as said in below URL https://research.google.com/colaboratory/local-runtimes.html Facing an issue 'Jupyter authentication cookie was not

How to read data from google drive using R in colab?

一个人想着一个人 提交于 2020-06-26 04:12:26
问题 I have to read data in csv format from google drive using R in colab. I know how to do it using python, however I am not getting relevant ways to do it in R. 回答1: You can use two R packages to accomplish this depending on how you want to open your google drive up to the world. I use this at work to grab data from shared files coworkers want me to analyze. The most base way to use it require(googlesheets4) require(googledrive) gs_file<- drive_get('name_of_sheet_on_google') gs_data <- read

Is it possible to connect vscode (on a local machine) with Google Colab (the free service) runtime?

半城伤御伤魂 提交于 2020-06-24 04:55:42
问题 I know on GCP, we can set up a vscode server and connect to that. But what I'm after here, is to know whether it is possible to connect to the runtime instance on Google Colab (the free one ie: https://colab.research.google.com) from a locally run vscode. If I'm not mistaken, we can connect to any remote Jupyter kernel in vscode instead of creating a new instance locally and connecting to it. So I want to know if it is possible to first create a Python 3 notebook and then from your local

TclError: no display name and no $DISPLAY environment variable in google's colab

£可爱£侵袭症+ 提交于 2020-06-21 05:06:28
问题 This error: TclError: no display name and no $DISPLAY environment variable arose when I tried to run a Python 3.6 program inside google's new colab facility (collaborative Jupyter notebooks). I am running colab in Chrome on a Windows 10 machine. I've seen this error reported in other threads on stackoverflow but not in the context of colab, and previously posted solutions either don't apply or don't seem to work. My code begins like this: from matplotlib.pyplot import * from matplotlib

How to disable autosave in Google Colab?

时光毁灭记忆、已成空白 提交于 2020-06-17 15:57:05
问题 I have very slow upload speeds and upload also interferes with my download so I need to disable autosave in Colab. 回答1: Open the notebook in playground mode using Tools -> Command pallet menu. Playground mode disables saves. In order to save manually, you'll need to create a copy of the notebook using the menu File -> Save a copy in Drive. 来源: https://stackoverflow.com/questions/58207750/how-to-disable-autosave-in-google-colab

Install RAPIDS library on Googe Colab notebook

三世轮回 提交于 2020-06-16 04:35:21
问题 I was wondering if I could install RAPIDS library (executing machine learning tasks entirely on GPU) in Google Colaboratory notebook? I've done some research but I've not been able to find the way to do that... 回答1: Looks like various subparts are not yet pip-installable so the only way to get them on colab would be to build them on colab, which might be more effort than you're interested in investing in this :) https://github.com/rapidsai/cudf/issues/285 is the issue to watch for rapidsai

Mask R-CNN for TPU on Google Colab

∥☆過路亽.° 提交于 2020-06-15 06:41:10
问题 We are trying to build an image segmentation deep learning model using Google Colab TPU. Our model is Mask R-CNN. TPU_WORKER = 'grpc://' + os.environ['COLAB_TPU_ADDR'] import tensorflow as tf tpu_model = tf.contrib.tpu.keras_to_tpu_model( model.keras_model, strategy=tf.contrib.tpu.TPUDistributionStrategy( tf.contrib.cluster_resolver.TPUClusterResolver(TPU_WORKER))) However I am running into issues while converting our Mask R-CNN model to TPU model as pasted below. ValueError: Layer <keras

How to hide secret keys in Google Colaboratory from users having the sharing link?

安稳与你 提交于 2020-06-12 02:38:11
问题 I written a script that extract some data from an API and build an Excel file. I'm not a dev, it is my first real program ever writted. I hosted the code on Google Colab. There is API secret keys in clear. I want to share it with a Google Drive sharing link to people needing to generate the Excel file so that they can execute it. However I would prefer not to include API secret keys in clear in order to avoid accidental sharings outside of the entreprise. I'm wondering how to hide this... Or

Google Colab: How can I mount a particular folder instead of mounting root folder?

十年热恋 提交于 2020-06-11 18:09:30
问题 I am able to mount Google drive using the code below: from google.colab import drive drive.mount('/content/drive') But the above mounts the Root folder enabling all file access within the drive. I want a particular folder in Google drive to to be mounted (for example just the dataset folder). How can I achieve that? 回答1: It's not possible to mount a subfolder, only top-level Drive. You can mount Drive in some out-of-the-way place and then symlink the folder you want someplace more central, e

Google Colab: How can I mount a particular folder instead of mounting root folder?

非 Y 不嫁゛ 提交于 2020-06-11 18:08:35
问题 I am able to mount Google drive using the code below: from google.colab import drive drive.mount('/content/drive') But the above mounts the Root folder enabling all file access within the drive. I want a particular folder in Google drive to to be mounted (for example just the dataset folder). How can I achieve that? 回答1: It's not possible to mount a subfolder, only top-level Drive. You can mount Drive in some out-of-the-way place and then symlink the folder you want someplace more central, e