Change xvfb comment

This commit is contained in:
Aurelien Geron
2016-11-25 09:34:55 +01:00
parent 0611db2e38
commit cabe792b23

View File

@@ -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": {