Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 Azure 笔记本来学习 python。最近我说要学习 MNIST 文本识别数据集。每次我关闭服务器并在数小时不活动后重新启动内核时,只需大约 10-15 分钟即可导入 MNIST 数据集。
无论如何,内核是否只记住我的数据集、输出、变量,以便为我节省大量时间。
谢谢
尝试使用dill库。
这将腌制任何 python 对象, dill 还提供了保存解释器会话状态的能力。