Skip to content

Commit

Permalink
Update Accessing-S3-via-SageMaker-notebooks.md
Browse files Browse the repository at this point in the history
  • Loading branch information
qualiaMachine authored Nov 6, 2024
1 parent 7b196cd commit f3ecae5
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions episodes/Accessing-S3-via-SageMaker-notebooks.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,15 +176,14 @@ We have added code to calculate bucket size to a helper function called `get_s3_
**Note**: Make sure you have already forked the lesson repo as described on the [setup page](). Replace "username" below with your GitHub username.

```python
!git clone https://github.com/username/ml-with-aws-sagemaker.git # downloads ML_with_Amazon_SageMaker folder/repo (refresh file explorer to see)
!git clone https://github.com/username/ML_with_Amazon_SageMaker.git # downloads ML_with_Amazon_SageMaker folder/repo (refresh file explorer to see)
```

Our AWS_helpers.py file can be found in `ML_with_Amazon_SageMaker/scripts/AWS_helpers.py`. With this file downloaded, you can call this function via...

```python
import ML_with_Amazon_SageMaker.scripts.AWS_helpers as helpers
helpers.get_s3_bucket_size(bucket_name)
=
```

{'size_mb': 0.060057640075683594, 'size_gb': 5.865003913640976e-05}
Expand Down

0 comments on commit f3ecae5

Please sign in to comment.