Skip to content

Commit 4d598bb

Browse files
Expanded Colab compatibility and readme
1 parent 8791c90 commit 4d598bb

6 files changed

Lines changed: 306 additions & 5 deletions
7.51 KB
Loading
9.9 KB
Loading
Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"cell_type": "markdown",
1818
"metadata": {},
1919
"source": [
20-
"In this first cell, we import the required meraki and os modules, and open the Dashboard API connection using the SDK."
20+
"In this first cell, we install and import the required meraki and os modules, and open the Dashboard API connection using the SDK. Make sure you have [set up your environment variables first](https://github.com/meraki/dashboard-api-python/blob/master/notebooks/notebooksReadme.md)."
2121
]
2222
},
2323
{
@@ -29,11 +29,21 @@
2929
"outputs": [
3030
{
3131
"output_type": "stream",
32-
"name": "stderr",
33-
"text": "meraki: INFO > Meraki dashboard API session initialized with these parameters: {'version': '1.0.0b13', 'api_key': '************************************dfb9', 'base_url': 'https://api.meraki.com/api/v1', 'single_request_timeout': 60, 'certificate_path': '', 'requests_proxy': '', 'wait_on_rate_limit': True, 'nginx_429_retry_wait_time': 60, 'action_batch_retry_wait_time': 60, 'retry_4xx_error': False, 'retry_4xx_error_wait_time': 60, 'maximum_retries': 2, 'simulate': False, 'be_geo_id': None, 'caller': None}\n"
32+
"name": "stdout",
33+
"text": "Requirement already satisfied: meraki==1.0.0b15 in c:\\users\\john.kuchta\\appdata\\local\\programs\\python\\python38-32\\lib\\site-packages (1.0.0b15)\nRequirement already satisfied: aiohttp in c:\\users\\john.kuchta\\appdata\\local\\programs\\python\\python38-32\\lib\\site-packages (from meraki==1.0.0b15) (3.6.2)\nRequirement already satisfied: requests in c:\\users\\john.kuchta\\appdata\\local\\programs\\python\\python38-32\\lib\\site-packages (from meraki==1.0.0b15) (2.24.0)Note: you may need to restart the kernel to use updated packages.\nRequirement already satisfied: attrs>=17.3.0 in c:\\users\\john.kuchta\\appdata\\local\\programs\\python\\python38-32\\lib\\site-packages (from aiohttp->meraki==1.0.0b15) (19.3.0)\nRequirement already satisfied: multidict<5.0,>=4.5 in c:\\users\\john.kuchta\\appdata\\local\\programs\\python\\python38-32\\lib\\site-packages (from aiohttp->meraki==1.0.0b15) (4.7.6)\nRequirement already satisfied: chardet<4.0,>=2.0 in c:\\users\\john.kuchta\\appdata\\local\\programs\\python\\python38-32\\lib\\site-packages (from aiohttp->meraki==1.0.0b15) (3.0.4)\nRequirement already satisfied: async-timeout<4.0,>=3.0 in c:\\users\\john.kuchta\\appdata\\local\\programs\\python\\python38-32\\lib\\site-packages (from aiohttp->meraki==1.0.0b15) (3.0.1)\nRequirement already satisfied: yarl<2.0,>=1.0 in c:\\users\\john.kuchta\\appdata\\local\\programs\\python\\python38-32\\lib\\site-packages (from aiohttp->meraki==1.0.0b15) (1.4.2)\nRequirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in c:\\users\\john.kuchta\\appdata\\local\\programs\\python\\python38-32\\lib\\site-packages (from requests->meraki==1.0.0b15) (1.25.9)\nRequirement already satisfied: certifi>=2017.4.17 in c:\\users\\john.kuchta\\appdata\\local\\programs\\python\\python38-32\\lib\\site-packages (from requests->meraki==1.0.0b15) (2020.6.20)\nRequirement already satisfied: idna<3,>=2.5 in c:\\users\\john.kuchta\\appdata\\local\\programs\\python\\python38-32\\lib\\site-packages (from requests->meraki==1.0.0b15) (2.10)\n\nWARNING: You are using pip version 20.1.1; however, version 20.2.1 is available.\nYou should consider upgrading via the 'C:\\Users\\john.kuchta\\AppData\\Local\\Programs\\Python\\Python38-32\\python.exe -m pip install --upgrade pip' command.\nWARNING: You are using pip version 20.1.1; however, version 20.2.1 is available.\nYou should consider upgrading via the 'C:\\Users\\john.kuchta\\AppData\\Local\\Programs\\Python\\Python38-32\\python.exe -m pip install --upgrade pip' command.\nRequirement already satisfied: tablib in c:\\users\\john.kuchta\\appdata\\local\\programs\\python\\python38-32\\lib\\site-packages (2.0.0)\nNote: you may need to restart the kernel to use updated packages.\n meraki: INFO > Meraki dashboard API session initialized with these parameters: {'version': '1.0.0b15', 'api_key': '************************************dfb9', 'base_url': 'https://api.meraki.com/api/v1', 'single_request_timeout': 60, 'certificate_path': '', 'requests_proxy': '', 'wait_on_rate_limit': True, 'nginx_429_retry_wait_time': 60, 'action_batch_retry_wait_time': 60, 'retry_4xx_error': False, 'retry_4xx_error_wait_time': 60, 'maximum_retries': 2, 'simulate': False, 'be_geo_id': None, 'caller': None}\n"
3434
}
3535
],
3636
"source": [
37+
"# Install the relevant modules. If you are using a local editor (e.g. VS Code, rather than Colab) you can run these commands, without the preceding %, via a terminal. NB: Run `pip install meraki==` to find the latest version of the Meraki SDK.\n",
38+
"%pip install meraki==1.0.0b15\n",
39+
"%pip install tablib\n",
40+
"\n",
41+
"# If you are using Google Colab, please ensure you have set up your environment variables as linked above, then delete the two lines of ''' to activate the following code:\n",
42+
"'''\n",
43+
"%pip install colab-env -qU\n",
44+
"import colab_env\n",
45+
"'''\n",
46+
"\n",
3747
"# Rely on meraki SDK, os, and tablib -- more on tablib later\n",
3848
"import meraki\n",
3949
"import os\n",

notebooks/merakiSSIDLimitsChecker.ipynb

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"cell_type": "markdown",
2020
"metadata": {},
2121
"source": [
22-
"In this first cell, we import the required meraki and os modules, and open the Dashboard API connection using the SDK."
22+
"In this first cell, we install and import the required meraki and os modules, and open the Dashboard API connection using the SDK. Make sure you have [set up your environment variables first](https://github.com/meraki/dashboard-api-python/blob/master/notebooks/notebooksReadme.md)."
2323
]
2424
},
2525
{
@@ -30,6 +30,16 @@
3030
},
3131
"outputs": [],
3232
"source": [
33+
"# Install the relevant modules. If you are using a local editor (e.g. VS Code, rather than Colab) you can run these commands, without the preceding %, via a terminal. NB: Run `pip install meraki==` to find the latest version of the Meraki SDK.\n",
34+
"%pip install meraki==1.0.0b15\n",
35+
"%pip install tablib\n",
36+
"\n",
37+
"# If you are using Google Colab, please ensure you have set up your environment variables as linked above, then delete the two lines of ''' to activate the following code:\n",
38+
"'''\n",
39+
"%pip install colab-env -qU\n",
40+
"import colab_env\n",
41+
"'''\n",
42+
"\n",
3343
"# Rely on meraki SDK, os, and tablib -- more on tablib later\n",
3444
"import meraki\n",
3545
"import os\n",

0 commit comments

Comments
 (0)