Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/330.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python magic命令%store在Google Colab笔记本上不起作用_Python_Jupyter Notebook_Google Colaboratory - Fatal编程技术网

Python magic命令%store在Google Colab笔记本上不起作用

Python magic命令%store在Google Colab笔记本上不起作用,python,jupyter-notebook,google-colaboratory,Python,Jupyter Notebook,Google Colaboratory,我正在尝试在两个不同的Google Colab笔记本电脑之间共享数据 谷歌Colab笔记本1: (...) data_structure = scaler.fit_transform(features) %store data_structure 谷歌Colab笔记本2: %store -r data_structure print(data_structure) 运行Notebook 1后,我收到消息:存储的“数据结构”(ndarray)。但是,当我运行Notebook 2时,我得到一条

我正在尝试在两个不同的Google Colab笔记本电脑之间共享数据

谷歌Colab笔记本1:

(...)
data_structure = scaler.fit_transform(features)
%store data_structure
谷歌Colab笔记本2:

%store -r data_structure 
print(data_structure)
运行Notebook 1后,我收到消息:存储的“数据结构”(ndarray)。但是,当我运行Notebook 2时,我得到一条错误消息:没有存储的变量数据\u结构。。。名称错误:未定义名称“数据结构”

由于笔记本在不同的目录中,我也尝试在同一个目录中运行它们。然而,我也遇到了同样的问题

有人能帮忙吗