Skip to content

Commit 991f868

Browse files
Merge pull request yandexdataschool#68 from NickVeld/patch-22
week10:reinforce_pytorch Replace %env magic with os.environ
2 parents 930ee6a + 3ca9a33 commit 991f868

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

week10_rl/reinforce_pytorch.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
"import os\n",
3535
"if type(os.environ.get(\"DISPLAY\")) is not str or len(os.environ.get(\"DISPLAY\")) == 0:\n",
3636
" !bash ../xvfb start\n",
37-
" %env DISPLAY = : 1"
37+
" os.environ['DISPLAY'] = ':1'"
3838
]
3939
},
4040
{

0 commit comments

Comments
 (0)