- Newest
- Most votes
- Most comments
Hello SG!
There's no such magics configuration available in Glue Interactive session on Jupyter Notebook.
However, if you would like to save your notebook on a S3 location, you can achieve this by using AWS CLI on Jupyter notebook. For example, if you have AWS CLI installed in your local environment, you can run below command in the last cell of your notebook:
!aws s3 cp YOUR_NOTEBOOK.ipynb s3://YOUR_BUCKET/YOUR_PREFIX/
If you don't want to install AWS CLI, another workaround is to use interactive session on Glue Studio Notebook instead, where you can specify the script location in the Job Details section. https://docs.aws.amazon.com/glue/latest/ug/notebook-getting-started.html#save-notebook
Hope it helps!
You don't have to use any magic to store the script or the notebook file (.ipynb). They are saved by default in a S3 location owner by your account. Notebook is saved under the notebook folder and script is saved in the scripts folder. The location is typically in s3://aws-glue-assets-<account-id>-<region>/scripts/
and s3://aws-glue-assets-<account-id>-<region>/Notebook/
**Reference: ** Check the guide, section - saving your notebook and job script
The magic commands are used to change/assign the role, add additional python files, etc. and we this default configuration is not controlled by the magics.
The issue is saving to custom S3 location (not the default location). It is not mentioned anywhere that it is not supported.
Relevant content
- asked a year ago
- asked 2 years ago
- asked 3 years ago
- asked 3 years ago
- AWS OFFICIALUpdated 2 months ago
- AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 2 months ago
The support also has said the same. Thanks for the clarification !