From cabe792b2376b330c1bd764681045733853899aa Mon Sep 17 00:00:00 2001 From: Aurelien Geron Date: Fri, 25 Nov 2016 09:34:55 +0100 Subject: [PATCH] Change xvfb comment --- 16_reinforcement_learning.ipynb | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/16_reinforcement_learning.ipynb b/16_reinforcement_learning.ipynb index b044e907c..ecf17f4ac 100644 --- a/16_reinforcement_learning.ipynb +++ b/16_reinforcement_learning.ipynb @@ -3000,7 +3000,7 @@ "\n", " $ xvfb-run -s \"-screen 0 1400x900x24\" jupyter notebook\n", "\n", - "This does not seem to be possible using binder, so unfortunately we cannot use OpenAI gym's rendering function, we need to define our own." + "If you are running this notebook using Binder, then this has been taken care of for you. If not, and you don't want to worry about Xvfb, then you can just use the following rendering function for the Cart-Pole:" ] }, { @@ -3017,7 +3017,7 @@ " from pyglet.gl import gl_info\n", " openai_cart_pole_rendering = True # no problem, let's use OpenAI gym's rendering function\n", "except Exception:\n", - " openai_cart_pole_rendering = False # probably running on binder, let's use our own rendering function\n", + " openai_cart_pole_rendering = False # probably no X server available, let's use our own rendering function\n", "\n", "def render_cart_pole(env, obs):\n", " if openai_cart_pole_rendering:\n", @@ -11605,21 +11605,21 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 2", + "display_name": "Python 3", "language": "python", - "name": "python2" + "name": "python3" }, "language_info": { "codemirror_mode": { "name": "ipython", - "version": 2 + "version": 3 }, "file_extension": ".py", "mimetype": "text/x-python", "name": "python", "nbconvert_exporter": "python", - "pygments_lexer": "ipython2", - "version": "2.7.12" + "pygments_lexer": "ipython3", + "version": "3.5.2+" }, "nav_menu": {}, "toc": {