From 1510e426be0f87eed1f3cf06e2363c495db62fa4 Mon Sep 17 00:00:00 2001
From: "Egli Adrian (IT-SCI-API-PFI)" <adrian.egli@sbb.ch>
Date: Wed, 5 Jun 2019 07:12:35 +0200
Subject: [PATCH] add a tag: QT_Rendering

---
 notebooks/Editor2.ipynb | 110 ++++++----------------------------------
 1 file changed, 16 insertions(+), 94 deletions(-)

diff --git a/notebooks/Editor2.ipynb b/notebooks/Editor2.ipynb
index 8a49f97e..de281fbe 100644
--- a/notebooks/Editor2.ipynb
+++ b/notebooks/Editor2.ipynb
@@ -58,10 +58,14 @@
    "metadata": {},
    "outputs": [
     {
-     "name": "stdout",
-     "output_type": "stream",
-     "text": [
-      "cairo installed: OK\n"
+     "ename": "SyntaxError",
+     "evalue": "invalid syntax (editor.py, line 761)",
+     "output_type": "error",
+     "traceback": [
+      "Traceback \u001b[1;36m(most recent call last)\u001b[0m:\n",
+      "  File \u001b[0;32m\"c:\\users\\u216993\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\IPython\\core\\interactiveshell.py\"\u001b[0m, line \u001b[0;32m3291\u001b[0m, in \u001b[0;35mrun_code\u001b[0m\n    exec(code_obj, self.user_global_ns, self.user_ns)\n",
+      "\u001b[1;36m  File \u001b[1;32m\"<ipython-input-4-cd594490df80>\"\u001b[1;36m, line \u001b[1;32m1\u001b[1;36m, in \u001b[1;35m<module>\u001b[1;36m\u001b[0m\n\u001b[1;33m    from flatland.utils.editor import EditorMVC, EditorModel, View, Controller\u001b[0m\n",
+      "\u001b[1;36m  File \u001b[1;32m\"c:\\users\\u216993\\appdata\\local\\programs\\python\\python36\\lib\\site-packages\\flatland_rl-0.1.1-py3.6.egg\\flatland\\utils\\editor.py\"\u001b[1;36m, line \u001b[1;32m761\u001b[0m\n\u001b[1;33m    else:\u001b[0m\n\u001b[1;37m       ^\u001b[0m\n\u001b[1;31mSyntaxError\u001b[0m\u001b[1;31m:\u001b[0m invalid syntax\n"
      ]
     }
    ],
@@ -71,28 +75,9 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 5,
+   "execution_count": null,
    "metadata": {},
-   "outputs": [
-    {
-     "name": "stdout",
-     "output_type": "stream",
-     "text": [
-      "<flatland.utils.graphics_pil.PILSVG object at 0x00000228826E5048> <class 'flatland.utils.graphics_pil.PILSVG'>\n",
-      "<super: <class 'PILSVG'>, <PILSVG object>> <class 'super'>\n",
-      "Clear rails\n"
-     ]
-    },
-    {
-     "data": {
-      "text/plain": [
-       "<Figure size 432x288 with 0 Axes>"
-      ]
-     },
-     "metadata": {},
-     "output_type": "display_data"
-    }
-   ],
+   "outputs": [],
    "source": [
     "mvc = EditorMVC(sGL=\"PILSVG\" ) # sGL=\"PIL\")"
    ]
@@ -117,74 +102,22 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 6,
+   "execution_count": null,
    "metadata": {
     "scrolled": false
    },
-   "outputs": [
-    {
-     "data": {
-      "application/vnd.jupyter.widget-view+json": {
-       "model_id": "a70b4e1bbe8a41cc85af8e0073862bf3",
-       "version_major": 2,
-       "version_minor": 0
-      },
-      "text/plain": [
-       "HBox(children=(Canvas(), VBox(children=(Text(value='temp.pkl', description='Filename'), Button(description='Re…"
-      ]
-     },
-     "metadata": {},
-     "output_type": "display_data"
-    },
-    {
-     "name": "stdout",
-     "output_type": "stream",
-     "text": [
-      "<flatland.utils.graphics_pil.PILSVG object at 0x0000022882FA48D0> <class 'flatland.utils.graphics_pil.PILSVG'>\n",
-      "<super: <class 'PILSVG'>, <PILSVG object>> <class 'super'>\n",
-      "<flatland.utils.graphics_pil.PILSVG object at 0x000002288301CEB8> <class 'flatland.utils.graphics_pil.PILSVG'>\n",
-      "<super: <class 'PILSVG'>, <PILSVG object>> <class 'super'>\n",
-      "<flatland.utils.graphics_pil.PILSVG object at 0x000002288318CD30> <class 'flatland.utils.graphics_pil.PILSVG'>\n",
-      "<super: <class 'PILSVG'>, <PILSVG object>> <class 'super'>\n",
-      "<flatland.utils.graphics_pil.PILSVG object at 0x0000022883001D30> <class 'flatland.utils.graphics_pil.PILSVG'>\n",
-      "<super: <class 'PILSVG'>, <PILSVG object>> <class 'super'>\n",
-      "<flatland.utils.graphics_pil.PILSVG object at 0x0000022882FCC438> <class 'flatland.utils.graphics_pil.PILSVG'>\n",
-      "<super: <class 'PILSVG'>, <PILSVG object>> <class 'super'>\n",
-      "<flatland.utils.graphics_pil.PILSVG object at 0x0000022886C20668> <class 'flatland.utils.graphics_pil.PILSVG'>\n",
-      "<super: <class 'PILSVG'>, <PILSVG object>> <class 'super'>\n",
-      "complex_rail_generator: num_agents > nr_start_goal, changing num_agents\n",
-      "complex_rail_generator: num_agents > nr_start_goal, changing num_agents\n",
-      "<flatland.utils.graphics_pil.PILSVG object at 0x0000022882DF7518> <class 'flatland.utils.graphics_pil.PILSVG'>\n",
-      "<super: <class 'PILSVG'>, <PILSVG object>> <class 'super'>\n"
-     ]
-    }
-   ],
+   "outputs": [],
    "source": [
     "mvc.view.display()"
    ]
   },
   {
    "cell_type": "code",
-   "execution_count": 7,
+   "execution_count": null,
    "metadata": {
     "scrolled": false
    },
-   "outputs": [
-    {
-     "data": {
-      "application/vnd.jupyter.widget-view+json": {
-       "model_id": "8fb6b8a5c8374de29ab80c6b62cd8fd9",
-       "version_major": 2,
-       "version_minor": 0
-      },
-      "text/plain": [
-       "Output()"
-      ]
-     },
-     "metadata": {},
-     "output_type": "display_data"
-    }
-   ],
+   "outputs": [],
    "source": [
     "mvc.view.wOutput.clear_output()\n",
     "mvc.view.wOutput"
@@ -192,20 +125,9 @@
   },
   {
    "cell_type": "code",
-   "execution_count": 8,
+   "execution_count": null,
    "metadata": {},
-   "outputs": [
-    {
-     "data": {
-      "text/plain": [
-       "(0, 0)"
-      ]
-     },
-     "execution_count": 8,
-     "metadata": {},
-     "output_type": "execute_result"
-    }
-   ],
+   "outputs": [],
    "source": [
     "len(mvc.editor.env.agents), len(mvc.editor.env.agents_static)"
    ]
-- 
GitLab