Last active
November 8, 2021 19:40
-
-
Save AnirudhDagar/926b9a9ee4a10d7020aac7fd583a251a to your computer and use it in GitHub Desktop.
Used to add metadata to run sagemaker notebooks with specific kernel by default
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
env_name="conda-env-.conda-d2l-py" | |
display_name="d2l" | |
for f in chapter*/*ipynb; do | |
sed -i s/\"language_info\":\ {/\"instance_type\":\ \"ml.g4dn.xlarge\",\ \"kernelspec\":\ {\"display_name\":\ \"$display_name\",\"language\":\ \"python\",\ \"name\":\ \"$env_name\"\},\"language_info\":\ {/g $f | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@goldmermaid @astonzhang
This should be run.