JupyterHubUploadDownload: Difference between revisions
(Download a file) |
m (Download and upload) |
||
Line 1: | Line 1: | ||
{{PageTitle|OpenEarthscape JupyterHub: Uploading and Downloading Files}} | {{PageTitle|OpenEarthscape JupyterHub: Uploading and Downloading Files}} | ||
Uploading and downloading individual files from a JupyterHub is straightforward | Uploading and downloading individual files from a JupyterHub is straightforward, | ||
but the process for multiple files is trickier. | |||
We'll go over | We'll go over a few examples here. | ||
= Download a file = | = Download a file, upload a file = | ||
To download a file to your local computer, right-click on the file in the JupyterHub File Browser | |||
and select '''Download''', as shown in Figure 1 below. | |||
and select '''Download''', as shown in | |||
To upload a file from your local computer to the JupyterHub, click on the upload button at the top of the JupyterHub File Browser, as shown in Figure 2 below. | |||
<gallery> | |||
File:hub-download-button.png | Figure 1. Right-click to download a file. | |||
File:hub-upload-button.png | Figure 2. Click the upload button to upload a file. | |||
</gallery> | |||
= A problem and a solution = | = A problem and a solution = |
Revision as of 14:56, 26 April 2022
Uploading and downloading individual files from a JupyterHub is straightforward, but the process for multiple files is trickier. We'll go over a few examples here.
Download a file, upload a file
To download a file to your local computer, right-click on the file in the JupyterHub File Browser and select Download, as shown in Figure 1 below.
To upload a file from your local computer to the JupyterHub, click on the upload button at the top of the JupyterHub File Browser, as shown in Figure 2 below.
A problem and a solution
Problem: These menu buttons don't work for a directory of files. Solution: Group files in a directory and create a zip file. (Or a tarball, but zip works across platforms.)
Download a directory
First, an example of downloading a directory.
Open a terminal. Locate the directory you want to download. Zip it up. Use the download instructions above.
On you local machine you can either double click on the zip file in your file manager to uncompress it, or you can use unzip in a terminal.
Upload a directory
Second, an example of uploading a directory.
On your local machine, find the directory of files you'd like to upload. Zip the directory, either with the file manager or the zip command on a terminal. Use the upload instructions above. On the JupyterHub, open a terminal. Unzip the file.
Fin.