Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
sagemath
GitHub Repository: sagemath/sage
Path: blob/develop/docker/entrypoint.sh
4052 views
1
#!/bin/bash
2
if [ x"$1" = x"sage-jupyter" ]; then
3
# If "sage-jupyter" is given as a first argument, we start a jupyter notebook
4
# with reasonable default parameters for running it inside a container.
5
shift
6
exec sage -n jupyter --no-browser --ip='0.0.0.0' --port=8888 "$@"
7
else
8
exec sage -sh -c "$*"
9
fi
10
11