Skip to content

Commit

Permalink
Change xvfb comment
Browse files Browse the repository at this point in the history
  • Loading branch information
ageron committed Nov 25, 2016
1 parent 0611db2 commit cabe792
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions 16_reinforcement_learning.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -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:"
]
},
{
Expand All @@ -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",
Expand Down Expand Up @@ -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": {
Expand Down

0 comments on commit cabe792

Please sign in to comment.