Skip to content

Commit 3ca9a33

Browse files
authored
Replace %env magic with os.environ
This ensures that future attempts to autoformat the code won't break it again. The change is originally made by @dniku in Practical_RL yandexdataschool/Practical_RL@dcc7fb8
1 parent 930ee6a commit 3ca9a33

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)