Change xvfb comment

main
Aurélien Geron 2016-11-25 09:34:55 +01:00
parent 2ed288c391
commit 30ca2b86d7
1 changed files with 7 additions and 7 deletions

View File

@ -556,7 +556,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:"
]
},
{
@ -573,7 +573,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",
@ -1900,21 +1900,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": {