Skip to content

Instantly share code, notes, and snippets.

@ezwiefel
Last active June 27, 2019 20:06
Show Gist options
  • Save ezwiefel/6ff3dfa5d6a6212bcbf68baabbe30d84 to your computer and use it in GitHub Desktop.
Save ezwiefel/6ff3dfa5d6a6212bcbf68baabbe30d84 to your computer and use it in GitHub Desktop.
A notebook to configure JupyterLab on an AML Notebook VM to display the AML Widgets
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Step 0: (For AML Notebook VMs) - Upgrade pip"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"!pip install -U pip"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Step 1: Install `azureml-widgets` in the Python environment where JupyterLab is running"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"!pip install azureml-widgets"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Step 2: Install Jupyter Widgets Lab Extension\n",
"Instructions here: https://ipywidgets.readthedocs.io/en/stable/user_install.html#installing-the-jupyterlab-extension\n",
"\n",
"For JupyterLab in the AML Notebook VM, installation works best with the extension manager.\n",
"\n",
"1. In JupyterLab, go to \"Settings\" > \"Advanced Settings Editor\" > \"Extension Manager\"\n",
"1. On the right side of the screen (under \"User Overrides\") type: `{\"enabled\": true}` and press `Ctrl+S` to save\n",
"1. Read and accept (or not) the warning\n",
"1. Click on the puzzle piece icon in the tool bar\n",
"1. Search for and install `@jupyter-widgets/jupyterlab-manager`"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Step 3: Build JupyterLab\n",
"For AML Notebook VMs, reboot the VM."
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 3.6 - AzureML",
"language": "python",
"name": "python3-azureml"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 3
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.8"
}
},
"nbformat": 4,
"nbformat_minor": 2
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment