Skip to content

Instantly share code, notes, and snippets.

@TonsOfFun
Last active January 17, 2019 07:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TonsOfFun/514a5f9dc66e1b4dd64e53bb5c9d7c74 to your computer and use it in GitHub Desktop.
Save TonsOfFun/514a5f9dc66e1b4dd64e53bb5c9d7c74 to your computer and use it in GitHub Desktop.
open -a XQuartz
ip=$(ifconfig en0 | grep inet | awk '$1=="inet" {print $2}')
display_number=`ps -ef | grep "Xquartz :\d" | grep -v xinit | awk '{ print $9; }'`
/opt/X11/bin/xhost + $ip
docker run -it --rm -e DISPLAY=$ip:0 -v /tmp/.X11-unix:/tmp/.X11-unix tensorflow-notebook /bin/bash
range-detector --filter HSV --image work/test3.png --preview
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment