Last active
February 18, 2018 01:14
-
-
Save fengye/181f0e7acf0f779a4d5065d019146ccd to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# kaggle/python docker .bashrc for linux | |
kpython(){ | |
docker run -v $PWD:/tmp/working -w=/tmp/working --rm -it kaggle/python python "$@" | |
} | |
ikpython() { | |
docker run -v $PWD:/tmp/working -w=/tmp/working --rm -it kaggle/python ipython | |
} | |
kjupyter() { | |
# Replace the next line in macOS for: (sleep 3 && open "http://localhost:8888")& | |
(sleep 3 && xdg-open "http://localhost:8888")& | |
docker run -v $PWD:/tmp/working -w=/tmp/working -p 8888:8888 --rm -it kaggle/python jupyter notebook --no-browser --ip="0.0.0.0" --allow-root --notebook-dir=/tmp/working | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment