Use docker image ageron/handson-ml-base which solves the issue with using OpenAI gym within Jupyter

This commit is contained in:
Aurélien Geron
2016-10-08 21:39:36 +02:00
parent f23154de87
commit 88aec2c6fc
3 changed files with 117 additions and 20 deletions

16
start-notebook.sh Executable file
View File

@@ -0,0 +1,16 @@
#!/bin/bash
OPTS=""
echo "$HOME/notebooks/index.ipynb: " $HOME/notebooks/index.ipynb
if [ -e $HOME/notebooks/index.ipynb ]; then
OPTS="$OPTS --NotebookApp.default_url=/tree/index.ipynb "
fi
if [ -e $HOME/.binder_start ]; then
source $HOME/.binder_start
fi
CMD="$OPTS $@"
echo "CMD: " $CMD
# Run Jupyter with xvfb-run so that it can render the CartPole
# environment without crashing:
xvfb-run -s "-screen 0 1400x900x24" jupyter notebook $CMD