Updated on 2023-11-21 GMT+08:00

Uploading a Local File with a Size Ranging from 100 MB to 5 GB to JupyterLab

For a file that exceeds 100 MB but does not exceed 5 GB, upload the file to OBS (an object bucket or a parallel file system), and then download the file from OBS to the target notebook instance. After the download is complete, the file is automatically deleted from OBS.

For example, in the scenario shown in the following figure, upload the file through OBS.

Figure 1 Uploading a large file through OBS

To upload a large file through OBS, set an OBS path.

Figure 2 Uploading a file through OBS

Set an OBS path for uploading local files to JupyterLab. After the setting, this path is used by default in follow-up operations. To change the path, click in the lower left corner of the file upload window.

  • Method 1: Enter a valid OBS path in the text box and click OK.
    Figure 3 Configuring an OBS path
  • Method 2: Select an OBS path in OBS File Browser and click OK.
    Figure 4 OBS File Browser
  • Method 3: Use the default path.
    Figure 5 Using the default path to upload a file
    Figure 6 Setting an OBS path for uploading a local file

After the OBS path is set, upload a file.

Figure 7 Uploading a file

Decompressing a package

After a large file is uploaded to Notebook JupyterLab as a compressed package, you can decompress the package in Terminal.

unzip xxx.zip  # Directly decompress the package in the path where the package is stored.

For more details, search for the decompression command in mainstream search engines.