Skip to main content

Download File

The filesystem of the Notebook Lab is persistent. However the filesystem of the Kernel is ephemeral and is not linked to the filesystem of the Notebook Lab.

Any files that are created in the Kernel filesystem are deleted when the Kernel is restarted or shut down. You can download a file from the Kernel filesystem to your local filesystem using the download_file method.

import h2o_notebook

await h2o_notebook.Session().download_file("world.txt")

Otherwise you can use H2O Drive Python client to move files between the Kernel and H2O Drive.


Feedback