mirror of
https://github.com/ArthurDanjou/handson-ml3.git
synced 2026-01-28 18:50:26 +01:00
Use docker image ageron/handson-ml-base which solves the issue with using OpenAI gym within Jupyter
This commit is contained in:
16
start-notebook.sh
Executable file
16
start-notebook.sh
Executable 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
|
||||
|
||||
Reference in New Issue
Block a user