You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spot.apache.org by ev...@apache.org on 2017/03/29 16:51:51 UTC

[27/50] [abbrv] incubator-spot git commit: Bug fixing for Proxy Edge notebook

Bug fixing for Proxy Edge notebook


Project: http://git-wip-us.apache.org/repos/asf/incubator-spot/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-spot/commit/41c41325
Tree: http://git-wip-us.apache.org/repos/asf/incubator-spot/tree/41c41325
Diff: http://git-wip-us.apache.org/repos/asf/incubator-spot/diff/41c41325

Branch: refs/heads/SPOT-35_graphql_api
Commit: 41c41325325cce665acedaaa9cbc0af89e593873
Parents: 7abbab2
Author: LedaLima <le...@apache.org>
Authored: Thu Mar 9 17:58:03 2017 -0600
Committer: Diego Ortiz Huerta <di...@intel.com>
Committed: Wed Mar 15 11:49:48 2017 -0700

----------------------------------------------------------------------
 .../Edge_Investigation_master.ipynb             | 23 +++++++++++++++-----
 1 file changed, 18 insertions(+), 5 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-spot/blob/41c41325/spot-oa/oa/proxy/ipynb_templates/Edge_Investigation_master.ipynb
----------------------------------------------------------------------
diff --git a/spot-oa/oa/proxy/ipynb_templates/Edge_Investigation_master.ipynb b/spot-oa/oa/proxy/ipynb_templates/Edge_Investigation_master.ipynb
index 1251960..cf638b7 100644
--- a/spot-oa/oa/proxy/ipynb_templates/Edge_Investigation_master.ipynb
+++ b/spot-oa/oa/proxy/ipynb_templates/Edge_Investigation_master.ipynb
@@ -9,7 +9,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": null,
+   "execution_count": 4,
    "metadata": {
     "collapsed": false
    },
@@ -29,11 +29,24 @@
   },
   {
    "cell_type": "code",
-   "execution_count": null,
+   "execution_count": 5,
    "metadata": {
     "collapsed": false
    },
-   "outputs": [],
+   "outputs": [
+    {
+     "data": {
+      "application/javascript": [
+       "$('.widget-area > .widget-subarea > *').remove();"
+      ],
+      "text/plain": [
+       "<IPython.core.display.Javascript object>"
+      ]
+     },
+     "metadata": {},
+     "output_type": "display_data"
+    }
+   ],
    "source": [
     "try:\n",
     "    import ipywidgets as widgets # For jupyter/ipython >= 1.4\n",
@@ -102,7 +115,7 @@
     "    \n",
     "    scored = []\n",
     "    for item in score_values:\n",
-    "        scored.append(item[0])\n",
+    "        scored.append(urllib.quote_plus(item[0]))\n",
     "        \n",
     "    if not 'errors' in response: \n",
     "        for row in response['data']['proxy']['suspicious']:\n",
@@ -128,7 +141,7 @@
   },
   {
    "cell_type": "code",
-   "execution_count": null,
+   "execution_count": 6,
    "metadata": {
     "collapsed": false
    },