Windows 上的本地 JupyterLite 笔记本在哪里?

Where is JupyterLite notebook located locally on Windows?

我正在使用 jupyterlite 这是 JupyterLab 分布 runs entirely in the browser. 但是,在 clearingbrowser history 之后,文件不再可见。

请告诉我如何从我的 windows 机器上检索 *ipynb 文件。 我已经检查了 %AppData%,但没有看到任何 *ipynb 个文件。

文件存储在...浏览器中。具体在IndexDB or localStorage。这意味着磁盘上的物理位置将完全取决于您使用的浏览器,而不是操作系统,并且在不解码二进制 blob 的情况下可能无法访问(对于普通用户)。

例如,在 Chrome 中,您可以使用 chrome://version/(在 Profile Path 下)检查应用程序数据的路径,并且在该目录中应该有 IndexedDB 文件夹.然后你需要找到一个 sub-folder 取决于你访问 JupyterLite 的域,例如 https_jupyterlite.readthedocs.io_0.indexeddb.leveldb,在那里你会找到一个 LevelDB database file with .ldb extension and a MANIFEST file (with the pointer to the current version in the CURRENT file. The details of how to extract the blobs are outside of scope for this answer, but have a look at .

但是,您可以直接在 JupyterLite 中使用文件系统中的文件,而无需担心 in-browser 技术与 jupyterlab-filesystem-access extension which uses File System Access API 的关系,但是此 API 在 Firefox 上尚不可用。

正如@Wayne 所指出的,所有这些都还处于试验阶段(包括“使用最新的浏览器 APIs”和“开发团队仍在寻找前进的方向,请提供帮助反馈和贡献”)。