问题标签 [google-colaboratory]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
service-worker - Google Colaboratory ServiceWorker Error On Chrome
Whenever I open a Colaboratory Document I always get the same error message:
NotSupportedError: Failed to register a ServiceWorker: The user denied permission to use Service Worker.
This is happening on chrome and my browser allows for ServiceWorkers (chrome://serviceworker-internals/
), what's going on? Because the thing is all the code still runs.
r-tree - 如何在 Google Colaboratory 上安装 libspatialindex
为了使用 Python 高效地分析空间数据,我使用了 rtree 空间索引库,依赖于 libspatialindex C 库。
我能够使用!pip install rtree
.
正如预期的那样,这还不够,因为需要先安装 libspatialindex,import rtree
结果如下所示:
OSError: Could not find libspatialindex_c library file
我不确定是否以及如何在 Google Collaboratory 中安装外部库。按照https://github.com/libspatialindex/libspatialindex/wiki/1.-Getting-Started我设法运行!curl -L http://download.osgeo.org/libspatialindex/spatialindex-src-1.8.5.tar.gz | tar xz
但我没有配置权限:
!spatialindex-src-1.8.5/configure
/bin/sh: 1: spatialindex-src-1.8.5/configure: Permission denied
python - Google Colab 中的散景
Matplotlib 没有给我想要的可视化
我喜欢 Bokeh 的交互功能,我想看看是否有人能够让它在 Google Colab 中运行?
我安装了库(从笔记本本身),它显示安装成功
但是当我使用它时。它没有显示任何东西(甚至没有错误)。只是空白输出。当我检查 chrome 的 Javascript 控制台时,我看到了以下内容
Bokeh:错误:无法运行 BokehJS 代码,因为缺少 BokehJS 库
google-colaboratory - 在 Google colab 中更改目录(脱离 python 解释器)
因此,我正在尝试使用 Google 协作将 git clone 和 cd 放入该目录 - 但我无法 cd 进入该目录。我究竟做错了什么?
!rm -rf SwitchFrequencyAnalysis && git clone https://github.com/ACECentre/SwitchFrequencyAnalysis.git
!cd 开关频率分析
!ls 数据实验室/ SwitchFrequencyAnalysis/
您可能希望它输出 SwitchFrequencyAnalysis 的目录内容 - 但它是根目录。我觉得我遗漏了一些明显的东西——这与在 python 解释器中有关吗?(文档在哪里??)
google-colaboratory - Google 协作笔记本中未找到 Csv 文件错误
我正在尝试将存储在谷歌驱动器中的 csv 文件加载到 colab 笔记本中。当我尝试加载文件时,它显示“找不到文件”。将存储在谷歌驱动器中的文件加载到 colab 笔记本的过程是什么?
python - 如何在 Google Colab 中读取 csv 到数据框
我正在尝试读取我本地存储在我的机器上的 csv 文件。(仅供参考,这是来自 Kaggle 的泰坦尼克号数据,位于此处。)
从这个问题和答案中,我了解到您可以使用此代码导入数据,这对我来说效果很好。
我迷路的地方是如何从这里将其转换为数据框。上面答案中列出的示例谷歌笔记本页面没有谈论它。
我正在尝试uploaded
使用from_dict
命令将字典转换为数据框,但无法使其工作。这里有一些关于将 dict 转换为数据框的讨论,但解决方案不适用于我(我认为)。
总结一下,我的问题是:
如何将本地存储在我的文件中的 csv 文件转换为 Google Colaboratory 上的 pandas 数据框?
git - 在 Google Colab 中使用 Git 的方法
有没有推荐的方法将 git 与 colab 集成?
例如,是否可以处理来自谷歌源代码库或类似的代码?
谷歌驱动器和云存储都不能用于 git 功能。
所以我想知道是否有办法仍然这样做?
python - Google Colab:如何从我的谷歌驱动器中读取数据?
问题很简单:我在 gDrive 上有一些数据,例如在
/projects/my_project/my_data*
.
我还在 gColab 中有一个简单的笔记本。
所以,我想做类似的事情:
不幸的是,所有示例(例如 - https://colab.research.google.com/notebook#fileId=/v2/external/notebooks/io.ipynb)都建议仅主要将所有必要的数据加载到笔记本中。
但是,如果我有很多数据,它可能会非常复杂。有没有机会解决这个问题?
感谢帮助!
python - 尝试 SVD 时,Google-colaboratory 内核死机
我正在尝试在 google-colaboratory python 2 环境中对 MNIST 数据集执行 SVD。下面是我的代码,
运行上述代码后,内核将在以下消息后重新启动:
运行时死了。自动重启。
我做错什么了吗?任何帮助表示赞赏。
google-colaboratory - 将上传的数据导入 Google Collab Jupyter
如何将我已经上传的数据集导入到我的 Google Collab Juypter notebook?
我已使用以下方法成功上传了我的数据:google.colab.files 方法
但是当我尝试读取上传的数据(这里是 train.csv)时,它会抛出 FileNotFound 错误
也许默认情况下文件存储在其他目录中。关于如何导入数据的任何建议?感谢帮助!