google-colaboratory

Can't find kaggle.json file in google colab

巧了我就是萌 提交于 2020-12-30 05:10:54
问题 I'm trying to download the kaggle imagenet object localization challenge data into google colab so that I can use it to train my model. Kaggle uses an API for easy and fast access to their datasets. (https://github.com/Kaggle/kaggle-api) However, when calling the command "kaggle competitions download -c imagenet-object-localization-challenge" in google colab, it can't find the kaggle.json file which contains my username and api-key. I haven't had this problem on my mac when running a jupyter

Can't find kaggle.json file in google colab

こ雲淡風輕ζ 提交于 2020-12-30 05:10:49
问题 I'm trying to download the kaggle imagenet object localization challenge data into google colab so that I can use it to train my model. Kaggle uses an API for easy and fast access to their datasets. (https://github.com/Kaggle/kaggle-api) However, when calling the command "kaggle competitions download -c imagenet-object-localization-challenge" in google colab, it can't find the kaggle.json file which contains my username and api-key. I haven't had this problem on my mac when running a jupyter

Can't find kaggle.json file in google colab

有些话、适合烂在心里 提交于 2020-12-30 05:09:31
问题 I'm trying to download the kaggle imagenet object localization challenge data into google colab so that I can use it to train my model. Kaggle uses an API for easy and fast access to their datasets. (https://github.com/Kaggle/kaggle-api) However, when calling the command "kaggle competitions download -c imagenet-object-localization-challenge" in google colab, it can't find the kaggle.json file which contains my username and api-key. I haven't had this problem on my mac when running a jupyter

How to read .txt files from github into Google colab

放肆的年华 提交于 2020-12-30 04:27:52
问题 I have folder in github which contains text files and when I tried to read below code in Google colab I'm getting error FileNotFoundError: [Errno 2] No such file or directory: 'https://github.com/Jainu-s/urldata/tree/master/al?raw=true' loc = 'https://github.com/Jainu-s/urldata/tree/master/al?raw=true' #uploaded = files.upload() os.chdir(loc) filelist = os.listdir() #print (len((pd.concat([pd.read_csv(item, names=[item[:-4]]) for item in filelist],axis=1)))) data = [] path = loc files = [f

How to use numba in Colaboratory

拜拜、爱过 提交于 2020-12-29 06:56:54
问题 Anybody tried to use numba in google collaboratory? I just can not figure out how to set it up in this environment. At the moment, I'm stuck with the error library nvvm not found . 回答1: Copy this code into cell. It works for me. !apt-get install nvidia-cuda-toolkit !pip3 install numba import os os.environ['NUMBAPRO_LIBDEVICE'] = "/usr/lib/nvidia-cuda-toolkit/libdevice" os.environ['NUMBAPRO_NVVM'] = "/usr/lib/x86_64-linux-gnu/libnvvm.so" from numba import cuda import numpy as np import time

Google Co-laboratory notebook PDF download

China☆狼群 提交于 2020-12-29 02:51:47
问题 Google Co-laboratory notebook doesn't have the "Download as" dropdown menu item in "File" menu like standalone Jupyter does. How to download the notebook as PDF? 回答1: You can also run the solution of mayurmadnani directly on CO. Therefor create a new Python workbook in CO and connect it to a runtime. Install the necessary packages into the virtual machine with: !apt-get install texlive texlive-xetex texlive-latex-extra pandoc !pip install pypandoc Mount your google drive to get access to your

Google Co-laboratory notebook PDF download

假如想象 提交于 2020-12-29 02:50:00
问题 Google Co-laboratory notebook doesn't have the "Download as" dropdown menu item in "File" menu like standalone Jupyter does. How to download the notebook as PDF? 回答1: You can also run the solution of mayurmadnani directly on CO. Therefor create a new Python workbook in CO and connect it to a runtime. Install the necessary packages into the virtual machine with: !apt-get install texlive texlive-xetex texlive-latex-extra pandoc !pip install pypandoc Mount your google drive to get access to your

pyodbc on google colab

泄露秘密 提交于 2020-12-26 18:51:17
问题 I am trying to connect to my SQL server on google colab by using pyodbc. However, it tells me that I cannot find the driver. Code to install packages (I replaced IP, port and password with x) ``` !sudo apt-get install unixodbc-dev !pip install pyodbc !pip install chart_studio ``` ``` import pyodbc conn = pyodbc.connect(DRIVER = '{ODBC Driver 17 for SQL Server}', SERVER = 'xxx.xxx.x.xx, xxxx', DATABASE = 'Database', UID = 'sa', PWD = 'xxxxxx') cursor = conn.cursor() ``` I get this error: ```--

pyodbc on google colab

余生长醉 提交于 2020-12-26 18:50:49
问题 I am trying to connect to my SQL server on google colab by using pyodbc. However, it tells me that I cannot find the driver. Code to install packages (I replaced IP, port and password with x) ``` !sudo apt-get install unixodbc-dev !pip install pyodbc !pip install chart_studio ``` ``` import pyodbc conn = pyodbc.connect(DRIVER = '{ODBC Driver 17 for SQL Server}', SERVER = 'xxx.xxx.x.xx, xxxx', DATABASE = 'Database', UID = 'sa', PWD = 'xxxxxx') cursor = conn.cursor() ``` I get this error: ```--

XGBoost with GPU support on Google Colab

我们两清 提交于 2020-12-13 03:04:50
问题 Is there a way to import the XGBoost with GPU support on Google Collab? At last, I tried yesterday and the loaded XGBoost does not have the GPU support. You could reach the notebook from this link: https://colab.research.google.com/drive/1YxCw7eVHZDrbVBFqSN0-t1mZ-fBJJI7h And the error is: XGBoostError: b'[19:15:28] src/learner.cc:151: XGBoost version not compiled with GPU support.\n\nStack trace returned 10 entries:\n[bt] (0) /usr/local/lib/python3.6/dist-packages/xgboost/./lib/libxgboost.so(