Uploading and Downloading Files in VS Code
Uploading Data to a Notebook Instance Using VS Code
If the data is less than or equal to 500 MB, directly copy the data to the local IDE.
If the data is larger than 500 MB, upload it to OBS and then to the notebook instance.
Procedure
- Upload data to OBS. For details, see Uploading an Object.
Alternatively, use ModelArts SDK in the terminal of local VS Code to upload data to OBS. To do so, click Terminal on the top menu bar. Enter python and press Enter in terminal to access the Python environment.
python
In the terminal of the local VS Code, use ModelArts SDK to upload the target local file to OBS. For details, Transferring Files.
- Upload the OBS file to the notebook instance. Use ModelArts SDK in the terminal of the remote VS Code environment to upload the file from OBS to a notebook instance.
Figure 1 Opening the terminal in the remote VS Code environment
# Manually access the development environment using the source command. cat /home/ma-user/README # Select the target environment. source /home/ma-user/miniconda3/bin/activate MindSpore-python3.7-aarch64 # Enter python and press Enter to access the Python environment. python
Then, perform OBS transfer operations by referring to Uploading a File to OBS.
Downloading Files from a Notebook Instance to a Local Directory
Files created in Notebook can be downloaded to a local path. In the Project directory of the local IDE, right-click the Notebook2.0 project and choose Download from the shortcut menu to download the project file to the local PC.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot