Python magic命令%store在Google Colab笔记本上不起作用
我正在尝试在两个不同的Google Colab笔记本电脑之间共享数据 谷歌Colab笔记本1: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时,我得到一条
(...)
data_structure = scaler.fit_transform(features)
%store data_structure
谷歌Colab笔记本2:
%store -r data_structure
print(data_structure)
运行Notebook 1后,我收到消息:存储的“数据结构”(ndarray)。但是,当我运行Notebook 2时,我得到一条错误消息:没有存储的变量数据\u结构。。。名称错误:未定义名称“数据结构”
由于笔记本在不同的目录中,我也尝试在同一个目录中运行它们。然而,我也遇到了同样的问题
有人能帮忙吗