将私人数据导入Google Colaboratory笔记本的常用方法有哪些?是否可以导入非公开的Google表格?您无法从系统文件中读取.介绍性文档链接到使用BigQuery的指南,但这似乎有点......很多.
我正在尝试在 Google Colaboratory 中编写上传文件,我将编写如下代码。
from google.colab import files
uploaded = files.upload()
Run Code Online (Sandbox Code Playgroud)
但是我收到以下错误以在浏览器中运行代码。
消息错误:类型错误:无法读取未定义的属性“_uploadFiles”
请帮我解决问题。
我正在尝试从本地系统上传Google Colaboratory中的word2vec文件,并在代码中进一步使用它.
这是我使用的代码.
from google.colab import files
uploaded = files.upload()
Run Code Online (Sandbox Code Playgroud)
每次执行它时,都会显示以下错误.
上传小部件仅在当前浏览器会话中执行单元格时可用.请重新运行此单元格以启用
MessageError Traceback (most recent call last)
<ipython-input-1-292f82be1b7a> in <module>()
1 from google.colab import files
2
----> 3 uploaded = files.upload()`
4
5 for fn in uploaded.keys():
/usr/local/lib/python3.6/dist-packages/google/colab/files.py in upload()
59 result = output.eval_js(
60 'google.colab._files._uploadFiles("{input_id}", "{output_id}")'.format(
---> 61 input_id=input_id, output_id=output_id))
62 files = collections.defaultdict(six.binary_type)
63
/usr/local/lib/python3.6/dist-packages/google/colab/output/_js.py in
eval_js(script, ignore_result)
37 if ignore_result:
38 return
---> 39 return _message.read_reply_from_input(request_id)
40
41
/usr/local/lib/python3.6/dist-packages/google/colab/_message.py in
read_reply_from_input(message_id, timeout_sec)
84 reply.get('colab_msg_id') == message_id): …
Run Code Online (Sandbox Code Playgroud)