Skip to content

Commit

Permalink
language tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
ateucher committed Apr 30, 2024
1 parent 8a56f48 commit 1a19c44
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions how-tos/using-s3-storage.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2333,7 +2333,7 @@
"id": "84f20657-a04a-45cd-a252-340d7b0a0c2a",
"metadata": {},
"source": [
"### Home directory\n",
"## Home directory\n",
"\n",
"Imagining this `ds_subset` object is now an important intermediate dataset, or the result of a complex analysis and we want to save it. Our default action might be to just save it to our `HOME` directory. This is simple, but we want to avoid this as it incurs significant storage costs, and using this data later will be slow."
]
Expand All @@ -2353,7 +2353,7 @@
"id": "2527d864-7297-4a98-9a6b-a0712a35a753",
"metadata": {},
"source": [
"### Use the s3fs package to interact with our S3 bucket.\n",
"## Use the s3fs package to interact with our S3 bucket.\n",
"\n",
"[s3fs](https://s3fs.readthedocs.io/en/latest/) is a Python library that allows us to interact with S3 objects in a file-system like manner."
]
Expand Down Expand Up @@ -3183,7 +3183,7 @@
"id": "e9bccda9-e106-4983-8d9f-020e429a970d",
"metadata": {},
"source": [
"### Move existing data from `HOME` to `PERSISTENT_BUCKET`\n",
"## Move existing data from `HOME` to `PERSISTENT_BUCKET`\n",
"\n",
"You may already have some data in your `HOME` directory that you would like to move out to a persistent bucket. You can do that using the `awsv2 s3` command line tool, which is already installed on the hub. You can open a terminal from the Hub Launcher - it will open in your `HOME` directory. You can then use the `awsv2 s3 mv` command to move a file to your bucket.\n",
"\n",
Expand All @@ -3196,7 +3196,7 @@
"metadata": {},
"source": [
"```bash\n",
"(notebook) jovyan@jupyter-ateucher:~$ awsv2 s3 mv my-big-file.nc $PERSISTENT_BUCKET/ # The trailing slash is important here\n",
"$ awsv2 s3 mv my-big-file.nc $PERSISTENT_BUCKET/ # The trailing slash is important here\n",
"move: ./my-big-file.nc to s3://openscapeshub-persistent/ateucher/my-big-file.nc\n",
"``` "
]
Expand All @@ -3211,14 +3211,14 @@
"List the contents of the local `results-data` directory:\n",
"\n",
"```bash\n",
"(notebook) jovyan@jupyter-ateucher:~$ ls results-data/\n",
"$ ls results-data/\n",
"my-big-file1.nc my-big-file2.nc\n",
"```\n",
"\n",
"Use `awsv2 s3 mv` with the `--recursive` flag to move all files in a directory to a new directory in `PERSISTENT_BUCKET`\n",
"\n",
"```bash\n",
"(notebook) jovyan@jupyter-ateucher:~$ awsv2 s3 mv --recursive results-data $PERSISTENT_BUCKET/results-data/\n",
"$ awsv2 s3 mv --recursive results-data $PERSISTENT_BUCKET/results-data/\n",
"move: results-data/my-big-file1.nc to s3://openscapeshub-persistent/ateucher/results-data/my-big-file1.nc\n",
"move: results-data/my-big-file2.nc to s3://openscapeshub-persistent/ateucher/results-data/my-big-file2.nc\n",
"```"
Expand Down

0 comments on commit 1a19c44

Please sign in to comment.