Synchronizing Files with OBS¶
If you specify Storage Path during notebook instance creation, your compiled code will be automatically stored in your specified OBS bucket. If code invocation among different .ipynb files is required, you can use the Sync OBS function.
The Sync OBS function is used to synchronize the objects selected in the list of notebook instance files from the OBS bucket to the current container directory ~/work.
Precautions¶
The maximum size of files to be synchronized at a time is 500 MB, and the maximum number of files to be synchronized at a time is 1,024.
The total size of objects to be synchronized cannot exceed 5 GB. For example, if 2 GB files exist in the ~/work container directory, you can use Sync OBS to synchronize a maximum of 3 GB files.
The Sync OBS function only takes effect on notebook instances for which Storage is OBS. For notebook instances whose Storage is not OBS, all files are read and written in the ~/work container directory.
Procedure¶
The Sync OBS function can be used in JupyterLab. The following describes how to use the function.
For example, Example-1.ipynb needs to invoke module in Example-2.ipynb. In File Browser on the left, select the two .ipynb files and click Sync OBS. In the dialog box that is displayed, click YES to complete synchronization. After the synchronization is successful, the code can be called mutually.