File tree 1 file changed +6
-1
lines changed 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 1
1
#! /bin/bash -l
2
2
# Very important to start with 'bash -l' - to escape SageMaker Studio notebook environment
3
3
4
+ if [ ! -f /opt/.sagemakerinternal/conda/bin/python ]; then
5
+ echo " sm-ssh-ide: ERROR: Must be running inside SageMaker Studio"
6
+ exit 2
7
+ fi
8
+
4
9
dir=$( dirname " $0 " )
5
10
source " $dir " /sm-helper-functions
6
11
@@ -196,7 +201,7 @@ elif [[ "$1" == "env-diagnostics" ]]; then
196
201
echo " Conda location: $( which conda || echo ' Not found' ) "
197
202
echo " Conda environments: $( conda env list || echo ' Not found' ) "
198
203
199
- echo " SageMaker Studio Python location: $( $0 get-studio-python-location || echo ' Not found' ) "
204
+ echo " SageMaker Studio Python location: $( $0 get-studio-python-path || echo ' Not found' ) "
200
205
echo " SageMaker Studio Python version: $( $0 get-studio-python-version || echo ' Not found' ) "
201
206
202
207
elif [[ " $1 " == " stop" ]]; then
You can’t perform that action at this time.
0 commit comments