我正在尝试在两个不同的 Google Colab 笔记本之间共享数据。
Google Colab 笔记本 1:
(...)
data_structure = scaler.fit_transform(features)
%store data_structure
Google Colab 笔记本 2:
%store -r data_structure
print(data_structure)
运行 Notebook 1 后,我收到消息:Stored 'data_structure' (ndarray)。但是,当我运行 Notebook 2 时,我收到消息错误:no stored variable data_structure ... NameError: name 'data_structure' is not defined。
由于笔记本在不同的目录中,我也尝试在同一目录中运行它们。但是,我遇到了同样的问题。
有人可以帮忙吗?