Skip to content

Commit

Permalink
additonal code stuff for the vis issue solution
Browse files Browse the repository at this point in the history
  • Loading branch information
NickVeld authored Feb 2, 2019
1 parent d9c4d91 commit 761d207
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions week01_intro/seminar_gym_interface.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -990,11 +990,7 @@
"\n",
"%matplotlib inline",
"\n",
"fig = plt.figure()",
"\n",
"ax = fig.add_subplot(111)",
"\n",
"fig.show()",
"from IPython.display import clear_output",
"\n",
"\n",
"\n",
Expand All @@ -1008,11 +1004,11 @@
"\n",
" # draw game image on display",
"\n",
" ax.clear()",
" clear_output(True)",
"\n",
" ax.imshow(env.render('rgb_array'))",
"\n",
" fig.canvas.draw()",
" plt.show()",
"\n",
"\n",
" if done:",
Expand All @@ -1023,7 +1019,7 @@
"\n",
"else:",
"\n",
" print(\"Time limit exceeded. Try again.\")"
" print(\"Time limit exceeded. Try again.\");"
]
},
{
Expand Down

0 comments on commit 761d207

Please sign in to comment.