Skip to content

Commit 8c4a176

Browse files
mckev-amazonJunLyu
authored andcommitted
Make install_r_notebook compatible with SageMaker Notebook Instance
* Use the Python3 kernel when installing R, aince we've hidden the JupyterSystemEnv "kernel", specify a working Kernel. * Install R Kernel in the environment where Jupyter sits. Jupyter runs in a "pristine" Conda environment which isn't affected by changes in the root environment. As a result, modifications to Jupyter (kernels, extensions, etc.) must be installed there too.
1 parent 5a8c9b2 commit 8c4a176

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

advanced_functionality/install_r_kernel/install_r_kernel.ipynb

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"metadata": {},
1616
"outputs": [],
1717
"source": [
18-
"!conda install -y -c r r-essentials"
18+
"!conda install --yes --name JupyterSystemEnv --channel r r-essentials"
1919
]
2020
},
2121
{
@@ -27,11 +27,10 @@
2727
}
2828
],
2929
"metadata": {
30-
"notice": "Copyright 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the \"License\"). You may not use this file except in compliance with the License. A copy of the License is located at http://aws.amazon.com/apache2.0/ or in the \"license\" file accompanying this file. This file is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.",
3130
"kernelspec": {
32-
"display_name": "Environment (conda_jupytersystemenv)",
31+
"display_name": "conda_python3",
3332
"language": "python",
34-
"name": "conda_jupytersystemenv"
33+
"name": "conda_python3"
3534
},
3635
"language_info": {
3736
"codemirror_mode": {
@@ -43,8 +42,9 @@
4342
"name": "python",
4443
"nbconvert_exporter": "python",
4544
"pygments_lexer": "ipython3",
46-
"version": "3.6.3"
47-
}
45+
"version": "3.6.2"
46+
},
47+
"notice": "Copyright 2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. Licensed under the Apache License, Version 2.0 (the \"License\"). You may not use this file except in compliance with the License. A copy of the License is located at http://aws.amazon.com/apache2.0/ or in the \"license\" file accompanying this file. This file is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License."
4848
},
4949
"nbformat": 4,
5050
"nbformat_minor": 2

0 commit comments

Comments
 (0)