1#!/bin/bash 2if [ 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 "$@" 7else 8 exec sage -sh -c "$*" 9fi 10 11